BCGControlBar Library for .NET
OnDrawDesign Method (ToolbarButton)




The graphics to draw on.

A Rectangle structure that represents the rectangle to draw.

Redraws the button in design mode.
Syntax
'Declaration
 
Public Overridable Sub OnDrawDesign( _
   ByVal graphics As Graphics, _
   ByVal rect As Rectangle _
) 
'Usage
 
Dim instance As ToolbarButton
Dim graphics As Graphics
Dim rect As Rectangle
 
instance.OnDrawDesign(graphics, rect)
public virtual void OnDrawDesign( 
   Graphics graphics,
   Rectangle rect
)
public: virtual void OnDrawDesign( 
   Graphics* graphics,
   Rectangle rect
) 
public:
virtual void OnDrawDesign( 
   Graphics^ graphics,
   Rectangle rect
) 

Parameters

graphics
The graphics to draw on.
rect

A Rectangle structure that represents the rectangle 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

ToolbarButton Class
ToolbarButton Members

Send Feedback