GoDiagram Web Reference
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
Responsible for properly painting a label for the given value parameter.
Syntax
'Declaration
 
Public Overridable Sub PaintLabel( _
   ByVal g As Graphics, _
   ByVal view As GoView, _
   ByVal p As PointF, _
   ByVal text As String _
) 
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.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

GraduatedScale Class
GraduatedScale Members

 

 


© 2013. Northwoods Software Corporation. All Rights Reserved.

Send Feedback