GoXam for WPF v3
ComputeOffset Method
Northwoods.GoXam Namespace > LinkPanel Class : ComputeOffset Method
the label being positioned, either a child element of the LinkPanel or the VisualElement of a label Node
the segment of the link, or a negative value if the label should be at the MidPoint
the angle of the indexth segment, or the Route.MidAngle
the size of the label
the angle at which the label is rotated, from calling ComputeAngle
Compute the offset to use in determining the position of a label.
Syntax
protected virtual Point ComputeOffset( 
   UIElement elt,
   int index,
   double segangle,
   Size sz,
   double labelangle
)

Parameters

elt
the label being positioned, either a child element of the LinkPanel or the VisualElement of a label Node
index
the segment of the link, or a negative value if the label should be at the MidPoint
segangle
the angle of the indexth segment, or the Route.MidAngle
sz
the size of the label
labelangle
the angle at which the label is rotated, from calling ComputeAngle

Return Value

an offset that is rotated according to the angle of the segment; this will be added to the midpoint of the link or to the fractional point along the segment
See Also

Reference

LinkPanel Class
LinkPanel Members