Export (0) Print
Expand All

VisualStyleRenderer Methods

The VisualStyleRenderer type exposes the following members.

  Name Description
Public method DrawBackground(IDeviceContext, Rectangle) Draws the background image of the current visual style element within the specified bounding rectangle.
Public method 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.
Public method DrawEdge Draws one or more edges of the specified bounding rectangle.
Public method DrawImage(Graphics, Rectangle, Image) Draws the specified image within the specified bounds.
Public method DrawImage(Graphics, Rectangle, ImageList, Int32) Draws the image from the specified ImageList within the specified bounds.
Public method DrawParentBackground Draws the background of a control's parent in the specified area.
Public method DrawText(IDeviceContext, Rectangle, String) Draws text in the specified bounds using default formatting.
Public method DrawText(IDeviceContext, Rectangle, String, Boolean) Draws text in the specified bounds with the option of displaying disabled text.
Public method 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.
Public method Equals(Object) Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public method GetBackgroundContentRectangle Returns the content area for the background of the current visual style element.
Public method GetBackgroundExtent Returns the entire background area for the current visual style element.
Public method GetBackgroundRegion Returns the region for the background of the current visual style element.
Public method GetBoolean Returns the value of the specified Boolean property for the current visual style element.
Public method GetColor Returns the value of the specified color property for the current visual style element.
Public method GetEnumValue Returns the value of the specified enumerated type property for the current visual style element.
Public method GetFilename Returns the value of the specified file name property for the current visual style element.
Public method GetFont Returns the value of the specified font property for the current visual style element.
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetInteger Returns the value of the specified integer property for the current visual style element.
Public method GetMargins Returns the value of the specified margins property for the current visual style element.
Public method GetPartSize(IDeviceContext, ThemeSizeType) Returns the value of the specified size property of the current visual style part.
Public method GetPartSize(IDeviceContext, Rectangle, ThemeSizeType) Returns the value of the specified size property of the current visual style part using the specified drawing bounds.
Public method GetPoint Returns the value of the specified point property for the current visual style element.
Public method GetString Returns the value of the specified string property for the current visual style element.
Public method GetTextExtent(IDeviceContext, String, TextFormatFlags) Returns the size and location of the specified string when drawn with the font of the current visual style element.
Public method 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.
Public method GetTextMetrics Retrieves information about the font specified by the current visual style element.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method 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.
Public method 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.
Public method 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.
Public method IsBackgroundPartiallyTransparent Indicates whether the background of the current visual style element has any semitransparent or alpha-blended pieces.
Public method Static member IsElementDefined Determines whether the specified visual style element is defined by the current visual style.
Public method SetParameters(VisualStyleElement) Sets this VisualStyleRenderer to the visual style element represented by the specified VisualStyleElement.
Public method SetParameters(String, Int32, Int32) Sets this VisualStyleRenderer to the visual style element represented by the specified class, part, and state values.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Top
Show:
© 2015 Microsoft