Positioning the label of a MultiPortNode


#1

I am using the sample code that is included with GoDiagram to create a MultiPortNode. I wanted to add some space between the icons and the ports which was not a problem. However, with the ports moved out the text label partially obstructs the ports across the bottom of the node.



It seems like it should be a simple task to move the label down 5-10 points but I have been unable to find a way to do this. I did look at SetSpotLocation but that appears to take only pre-defined locations as parameters.



Could someone steer me in right direction?



Thanks


#2

Just set the LabelOffset property to the horizontal and vertical distances away from the Icon’s Position that you want.
If you have set the DraggableLabel property to true, users can drag the Label around, thereby setting the LabelOffset property too.