This documentation is archived and is not being maintained.

ControlPaint Members

Provides methods used to paint common Windows controls and their elements. This class cannot be inherited.

The following tables list the members exposed by the ControlPaint type.

  Name Description
Public property Static ContrastControlDark Gets the color to use as the ControlDark color.
Top

(see also Protected Methods )
  Name Description
Public method Static CreateHBitmap16Bit Creates a 16-bit color bitmap.
Public method Static CreateHBitmapColorMask Creates a Win32 HBITMAP out of the image.
Public method Static CreateHBitmapTransparencyMask Creates a color mask for the specified bitmap that indicates which color should be displayed as transparent.
Public method Static Dark Overloaded. Creates a new dark color object for the control.
Public method Static DarkDark Creates a new dark color object for the control from the specified color.
Public method Static DrawBorder Overloaded. Draws a border on a button-style control.
Public method Static DrawBorder3D Overloaded. Draws a three-dimensional style border on a control.
Public method Static DrawButton Overloaded. Draws a button control.
Public method Static DrawCaptionButton Overloaded. Draws a caption button control.
Public method Static DrawCheckBox Overloaded. Draws a check box control.
Public method Static DrawComboButton Overloaded. Draws a drop-down button on a combo box control.
Public method Static DrawContainerGrabHandle Draws a container control grab handle glyph on the specified graphics surface and within the specified bounds.
Public method Static DrawFocusRectangle Overloaded. Draws a focus rectangle.
Public method Static DrawGrabHandle Draws a standard selection grab handle glyph on the specified graphics surface, within the specified bounds, and in the specified state and style.
Public method Static DrawGrid Draws a grid of one-pixel dots with the specified spacing, within the specified bounds, on the specified graphics surface, and in the specified color.
Public method Static DrawImageDisabled Draws the specified image in a disabled state.
Public method Static DrawLockedFrame Draws a locked selection frame on the screen within the specified bounds and on the specified graphics surface. Specifies whether to draw the frame with the primary selected colors.
Public method Static DrawMenuGlyph Overloaded. Draws a menu glyph on a menu item control.
Public method Static DrawMixedCheckBox Overloaded. Draws a three-state check box control.
Public method Static DrawRadioButton Overloaded. Draws a radio button control.
Public method Static DrawReversibleFrame Draws a reversible frame on the screen within the specified bounds, with the specified background color, and in the specified state.
Public method Static DrawReversibleLine Draws a reversible line on the screen within the specified starting and ending points and with the specified background color.
Public method Static DrawScrollButton Overloaded. Draws a scroll button on a scroll bar control.
Public method Static DrawSelectionFrame Draws a standard selection frame in the specified state, on the specified graphics surface, with the specified inner and outer dimensions, and with the specified background color.
Public method Static DrawSizeGrip Overloaded. Draws a size grip on a form.
Public method Static DrawStringDisabled Overloaded. Draws the specified string in a disabled state.
Public method Static DrawVisualStyleBorder Draws a border in the style appropriate for disabled items.
Public method Equals  Overloaded. Determines whether two Object instances are equal. (inherited from Object)
Public method Static FillReversibleRectangle Draws a filled, reversible rectangle on the screen.
Public method GetHashCode  Serves as a hash function for a particular type. (inherited from Object)
Public method GetType  Gets the Type of the current instance. (inherited from Object)
Public method Static Light Overloaded. Creates a new light color object for the control.
Public method Static LightLight Creates a new light color object for the control from the specified color.
Public method Static ReferenceEquals  Determines whether the specified Object instances are the same instance. (inherited from Object)
Public method ToString  Returns a String that represents the current Object. (inherited from Object)
Top

  Name Description
Protected method Finalize  Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (inherited from Object)
Protected method MemberwiseClone  Creates a shallow copy of the current Object. (inherited from Object)
Top
Show: