ComponentOne Chart for WPF and Silverlight
C1.WPF.C1Chart Namespace / PieSlice Class / AutoPosition Method
Size of the label.
Hot point (coordinates of the data point) of l.
Offset of the label from the hot point.


In This Topic
    AutoPosition Method (PieSlice)
    In This Topic
    Calculates automatic position of data label.
    Syntax
    'Declaration
     
    
    Protected Overridable Function AutoPosition( _
       ByVal labelSize As Size, _
       ByRef hot As Point, _
       ByRef offset As Point _
    ) As LabelAlignment
    'Usage
     
    
    Dim instance As PieSlice
    Dim labelSize As Size
    Dim hot As Point
    Dim offset As Point
    Dim value As LabelAlignment
     
    value = instance.AutoPosition(labelSize, hot, offset)
    protected virtual LabelAlignment AutoPosition( 
       Size labelSize,
       ref Point hot,
       ref Point offset
    )

    Parameters

    labelSize
    Size of the label.
    hot
    Hot point (coordinates of the data point) of l.
    offset
    Offset of the label from the hot point.

    Return Value

    The alignment of the label.
    See Also