BCGControlBar Library for .NET
OnDraw Method (CommandObject)




The graphics to draw on.
The boundaries of the command object to draw.
Draws a command object on the specified graphics with a specified boundaries.
Syntax
'Declaration
 
Public Overridable Sub OnDraw( _
   ByVal graphics As Graphics, _
   ByVal rect As Rectangle _
) 
'Usage
 
Dim instance As CommandObject
Dim graphics As Graphics
Dim rect As Rectangle
 
instance.OnDraw(graphics, rect)
public virtual void OnDraw( 
   Graphics graphics,
   Rectangle rect
)
public: virtual void OnDraw( 
   Graphics* graphics,
   Rectangle rect
) 
public:
virtual void OnDraw( 
   Graphics^ graphics,
   Rectangle rect
) 

Parameters

graphics
The graphics to draw on.
rect
The boundaries of the command object to draw.
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

CommandObject Class
CommandObject Members

Send Feedback