Version

Draw(Graphics,Rectangle,Boolean,AlphaBlendMode,Size) Method

Draws the control after sizing the element to the specified size.
Syntax
'Declaration
 
Public Overloads Sub Draw( _
   ByVal graphics As Graphics, _
   ByVal invalidRectangle As Rectangle, _
   ByVal doubleBuffer As Boolean, _
   ByVal alphaBlendMode As AlphaBlendMode, _
   ByVal elementSize As Size _
) 

Parameters

graphics
System.Drawing.Graphics object to render into.
invalidRectangle
Invalid System.Drawing.Rectangle that will be drawn.
doubleBuffer
True creates an offscreen buffer System.Drawing.Graphics object. All rendering is done to that and the result is copied to the screen. False all drawing is done directly to the screen.
alphaBlendMode
Enumeration indicating the mode of alphablending to use when rendering the control
elementSize
The width and height that should be used to size the element. Pass Size.Empty to use the control size.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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