Skybound VisualStyles

ThemePaint.AdjustContentRectangle Method 

Returns the bounding rectangle in which content should be displayed on a part.

[Visual Basic]
Public Shared Function AdjustContentRectangle( _
   ByVal control As Control, _
   ByVal themeClass As String, _
   ByVal themePart As Integer, _
   ByVal themeState As Integer, _
   ByVal rect As Rectangle _
) As Rectangle
[C#]
public static Rectangle AdjustContentRectangle(
   Control control,
   string themeClass,
   int themePart,
   int themeState,
   Rectangle rect
);

Parameters

control
The Control to measure.
themeClass
Specifies the class of control.
themePart
The ID of the part for which the rectangle is adjusted.
themeState
The ID of the state for which the rectangle is adjusted.
rect
The bounding rectangle of the part.

Return Value

A Rectangle structure in which the content should be displayed on the part.

See Also

ThemePaint Class | Skybound.VisualStyles Namespace