GoDigram for .NET Framework and .NET Core
Northwoods.Go.Instruments Namespace / GraduatedScale Class / PaintLabel Method
the reference point for where the label should be drawn, computed by GetLabelCenter
the text of the label to be drawn, computed by GetLabelString
In This Topic
    PaintLabel Method
    In This Topic
    Responsible for properly painting a label for the given value parameter.
    Syntax
    public virtual void PaintLabel( 
       Graphics g,
       GoView view,
       PointF p,
       string text
    )

    Parameters

    g
    view
    p
    the reference point for where the label should be drawn, computed by GetLabelCenter
    text
    the text of the label to be drawn, computed by GetLabelString
    Remarks
    If you override this method, you may also need to override ExpandPaintBounds to account for the potentially increased area where text or any other decorations may be drawn. An alternative way to change where a label is drawn is to override GetLabelCenter so that it returns the point you want.
    See Also