VisualStyleRenderer Methods
.NET Framework 4
The VisualStyleRenderer type exposes the following members.
| Name | Description | |
|---|---|---|
|
DrawBackground(IDeviceContext, Rectangle) | Draws the background image of the current visual style element within the specified bounding rectangle. |
|
DrawBackground(IDeviceContext, Rectangle, Rectangle) | Draws the background image of the current visual style element within the specified bounding rectangle and clipped to the specified clipping rectangle. |
|
DrawEdge | Draws one or more edges of the specified bounding rectangle. |
|
DrawImage(Graphics, Rectangle, Image) | Draws the specified image within the specified bounds. |
|
DrawImage(Graphics, Rectangle, ImageList, Int32) | Draws the image from the specified ImageList within the specified bounds. |
|
DrawParentBackground | Draws the background of a control's parent in the specified area. |
|
DrawText(IDeviceContext, Rectangle, String) | Draws text in the specified bounds using default formatting. |
|
DrawText(IDeviceContext, Rectangle, String, Boolean) | Draws text in the specified bounds with the option of displaying disabled text. |
|
DrawText(IDeviceContext, Rectangle, String, Boolean, TextFormatFlags) | Draws text in the specified bounding rectangle with the option of displaying disabled text and applying other text formatting. |
|
Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
|
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
|
GetBackgroundContentRectangle | Returns the content area for the background of the current visual style element. |
|
GetBackgroundExtent | Returns the entire background area for the current visual style element. |
|
GetBackgroundRegion | Returns the region for the background of the current visual style element. |
|
GetBoolean | Returns the value of the specified Boolean property for the current visual style element. |
|
GetColor | Returns the value of the specified color property for the current visual style element. |
|
GetEnumValue | Returns the value of the specified enumerated type property for the current visual style element. |
|
GetFilename | Returns the value of the specified file name property for the current visual style element. |
|
GetFont | Returns the value of the specified font property for the current visual style element. |
|
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
|
GetInteger | Returns the value of the specified integer property for the current visual style element. |
|
GetMargins | Returns the value of the specified margins property for the current visual style element. |
|
GetPartSize(IDeviceContext, ThemeSizeType) | Returns the value of the specified size property of the current visual style part. |
|
GetPartSize(IDeviceContext, Rectangle, ThemeSizeType) | Returns the value of the specified size property of the current visual style part using the specified drawing bounds. |
|
GetPoint | Returns the value of the specified point property for the current visual style element. |
|
GetString | Returns the value of the specified string property for the current visual style element. |
|
GetTextExtent(IDeviceContext, String, TextFormatFlags) | Returns the size and location of the specified string when drawn with the font of the current visual style element. |
|
GetTextExtent(IDeviceContext, Rectangle, String, TextFormatFlags) | Returns the size and location of the specified string when drawn with the font of the current visual style element within the specified initial bounding rectangle. |
|
GetTextMetrics | Retrieves information about the font specified by the current visual style element. |
|
GetType | Gets the Type of the current instance. (Inherited from Object.) |
|
HitTestBackground(IDeviceContext, Rectangle, Point, HitTestOptions) | Returns a hit test code indicating whether a point is contained in the background of the current visual style element. |
|
HitTestBackground(Graphics, Rectangle, Region, Point, HitTestOptions) | Returns a hit test code indicating whether the point is contained in the background of the current visual style element and within the specified bounds. |
|
HitTestBackground(IDeviceContext, Rectangle, IntPtr, Point, HitTestOptions) | Returns a hit test code indicating whether the point is contained in the background of the current visual style element and within the specified region. |
|
IsBackgroundPartiallyTransparent | Indicates whether the background of the current visual style element has any semitransparent or alpha-blended pieces. |
|
IsElementDefined | Determines whether the specified visual style element is defined by the current visual style. |
|
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
|
SetParameters(VisualStyleElement) | Sets this VisualStyleRenderer to the visual style element represented by the specified VisualStyleElement. |
|
SetParameters(String, Int32, Int32) | Sets this VisualStyleRenderer to the visual style element represented by the specified class, part, and state values. |
|
ToString | Returns a string that represents the current object. (Inherited from Object.) |