BCGControlBar Library for .NET
OnDrawValue Method (PropertyListColorItem)




A graphics to be drawn on.
The boundaries of the area to place the value.
The font of the text to write a name of the property.
The color of the text to write a name of the property.

Draws the value of the color property. The value consists of the color rectangle and the name of the text.

Syntax
'Declaration
 
Public Overrides Sub OnDrawValue( _
   ByVal graphics As Graphics, _
   ByVal rect As Rectangle, _
   ByVal font As Font, _
   ByVal textColor As Color _
) 
'Usage
 
Dim instance As PropertyListColorItem
Dim graphics As Graphics
Dim rect As Rectangle
Dim font As Font
Dim textColor As Color
 
instance.OnDrawValue(graphics, rect, font, textColor)
public override void OnDrawValue( 
   Graphics graphics,
   Rectangle rect,
   Font font,
   Color textColor
)
public: void OnDrawValue( 
   Graphics* graphics,
   Rectangle rect,
   Font* font,
   Color textColor
) override 
public:
void OnDrawValue( 
   Graphics^ graphics,
   Rectangle rect,
   Font^ font,
   Color textColor
) override 

Parameters

graphics
A graphics to be drawn on.
rect
The boundaries of the area to place the value.
font
The font of the text to write a name of the property.
textColor
The color of the text to write a name of the property.
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

PropertyListColorItem Class
PropertyListColorItem Members
Base Implementation in OnDrawValue

Send Feedback