Skybound VisualStyles

ThemePaint.Draw Method 

Draws a control or an element of a control that supports visual styles.

[Visual Basic]
Public Shared Sub Draw( _
   ByVal g As Graphics, _
   ByVal ctl As Control, _
   ByVal themeClass As String, _
   ByVal themePart As Integer, _
   ByVal themeState As Integer, _
   ByVal bounds As Rectangle, _
   ByVal clipBounds As Rectangle _
)
[C#]
public static void Draw(
   Graphics g,
   Control ctl,
   string themeClass,
   int themePart,
   int themeState,
   Rectangle bounds,
   Rectangle clipBounds
);

Parameters

g
The Graphics object to draw on.
ctl
The Control to draw.
themeClass
The class name of the control to draw (see ThemeClasses for a list of class names).
themePart
The ID of the part to draw (see ThemeParts for a list of parts).
themeState
The ID of the state to draw (see ThemeStates for a list of states).
bounds
The bounding rectangle of the control.
clipBounds
Specifies the clipping rectangle in which the control is drawn.

Remarks

Calling this method when visual styles are not enabled or not supported by the operating system has no effect.

See Also

ThemePaint Class | Skybound.VisualStyles Namespace