BCGControlBar Library for .NET
OnDrawValueString Method




The graphics to draw on.
The string represents the value of the property.
The bounding rectangle of the property value.
The font to draw the property value.
The color of the text to draw the value.
Called by the framework to display the property value specified by the parameter string.
Syntax
'Declaration
 
Public Overridable Sub OnDrawValueString( _
   ByVal graphics As Graphics, _
   ByVal string As String, _
   ByVal rect As Rectangle, _
   ByVal font As Font, _
   ByVal textColor As Color _
) 
'Usage
 
Dim instance As PropertyListItem
Dim graphics As Graphics
Dim string As String
Dim rect As Rectangle
Dim font As Font
Dim textColor As Color
 
instance.OnDrawValueString(graphics, string, rect, font, textColor)
public virtual void OnDrawValueString( 
   Graphics graphics,
   string string,
   Rectangle rect,
   Font font,
   Color textColor
)
public: virtual void OnDrawValueString( 
   Graphics* graphics,
   string* string,
   Rectangle rect,
   Font* font,
   Color textColor
) 
public:
virtual void OnDrawValueString( 
   Graphics^ graphics,
   String^ string,
   Rectangle rect,
   Font^ font,
   Color textColor
) 

Parameters

graphics
The graphics to draw on.
string
The string represents the value of the property.
rect
The bounding rectangle of the property value.
font
The font to draw the property value.
textColor
The color of the text to draw the value.
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

PropertyListItem Class
PropertyListItem Members

Send Feedback