ControlPaint Methods
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
| Name | Description | |
|---|---|---|
![]() ![]() | CreateHBitmap16Bit(Bitmap^, Color) | Creates a 16-bit color bitmap. |
![]() ![]() | CreateHBitmapColorMask(Bitmap^, IntPtr) | Creates a Win32 HBITMAP out of the image. |
![]() ![]() | CreateHBitmapTransparencyMask(Bitmap^) | Creates a color mask for the specified bitmap that indicates which color should be displayed as transparent. |
![]() ![]() | Dark(Color) | Creates a new dark color object for the control from the specified color. |
![]() ![]() | Dark(Color, Single) | Creates a new dark color object for the control from the specified color and darkens it by the specified percentage. |
![]() ![]() | DarkDark(Color) | Creates a new dark color object for the control from the specified color. |
![]() ![]() | DrawBorder(Graphics^, Rectangle, Color, ButtonBorderStyle) | Draws a border with the specified style and color, on the specified graphics surface, and within the specified bounds on a button-style control. |
![]() ![]() | DrawBorder(Graphics^, Rectangle, Color, Int32, ButtonBorderStyle, Color, Int32, ButtonBorderStyle, Color, Int32, ButtonBorderStyle, Color, Int32, ButtonBorderStyle) | Draws a border on a button-style control with the specified styles, colors, and border widths; on the specified graphics surface; and within the specified bounds. |
![]() ![]() | DrawBorder3D(Graphics^, Int32, Int32, Int32, Int32) | Draws a three-dimensional style border on the specified graphics surface and within the specified bounds on a control. |
![]() ![]() | DrawBorder3D(Graphics^, Int32, Int32, Int32, Int32, Border3DStyle) | Draws a three-dimensional style border with the specified style, on the specified graphics surface, and within the specified bounds on a control. |
![]() ![]() | DrawBorder3D(Graphics^, Int32, Int32, Int32, Int32, Border3DStyle, Border3DSide) | Draws a three-dimensional style border with the specified style, on the specified graphics surface and side, and within the specified bounds on a control. |
![]() ![]() | DrawBorder3D(Graphics^, Rectangle) | Draws a three-dimensional style border on the specified graphics surface and within the specified bounds on a control. |
![]() ![]() | DrawBorder3D(Graphics^, Rectangle, Border3DStyle) | Draws a three-dimensional style border with the specified style, on the specified graphics surface, and within the specified bounds on a control. |
![]() ![]() | DrawBorder3D(Graphics^, Rectangle, Border3DStyle, Border3DSide) | Draws a three-dimensional style border with the specified style, on the specified graphics surface and sides, and within the specified bounds on a control. |
![]() ![]() | DrawButton(Graphics^, Int32, Int32, Int32, Int32, ButtonState) | Draws a button control in the specified state, on the specified graphics surface, and within the specified bounds. |
![]() ![]() | DrawButton(Graphics^, Rectangle, ButtonState) | Draws a button control in the specified state, on the specified graphics surface, and within the specified bounds. |
![]() ![]() | DrawCaptionButton(Graphics^, Int32, Int32, Int32, Int32, CaptionButton, ButtonState) | Draws the specified caption button control in the specified state, on the specified graphics surface, and within the specified bounds. |
![]() ![]() | DrawCaptionButton(Graphics^, Rectangle, CaptionButton, ButtonState) | Draws the specified caption button control in the specified state, on the specified graphics surface, and within the specified bounds. |
![]() ![]() | DrawCheckBox(Graphics^, Int32, Int32, Int32, Int32, ButtonState) | Draws a check box control in the specified state, on the specified graphics surface, and within the specified bounds. |
![]() ![]() | DrawCheckBox(Graphics^, Rectangle, ButtonState) | Draws a check box control in the specified state, on the specified graphics surface, and within the specified bounds. |
![]() ![]() | DrawComboButton(Graphics^, Int32, Int32, Int32, Int32, ButtonState) | Draws a drop-down button on a combo box control in the specified state, on the specified graphics surface, and within the specified bounds. |
![]() ![]() | DrawComboButton(Graphics^, Rectangle, ButtonState) | Draws a drop-down button on a combo box control in the specified state, on the specified graphics surface, and within the specified bounds. |
![]() ![]() | DrawContainerGrabHandle(Graphics^, Rectangle) | Draws a container control grab handle glyph on the specified graphics surface and within the specified bounds. |
![]() ![]() | DrawFocusRectangle(Graphics^, Rectangle) | Draws a focus rectangle on the specified graphics surface and within the specified bounds. |
![]() ![]() | DrawFocusRectangle(Graphics^, Rectangle, Color, Color) | Draws a focus rectangle on the specified graphics surface and within the specified bounds. |
![]() ![]() | DrawGrabHandle(Graphics^, Rectangle, Boolean, Boolean) | Draws a standard selection grab handle glyph on the specified graphics surface, within the specified bounds, and in the specified state and style. |
![]() ![]() | DrawGrid(Graphics^, Rectangle, Size, Color) | 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. |
![]() ![]() | DrawImageDisabled(Graphics^, Image^, Int32, Int32, Color) | Draws the specified image in a disabled state. |
![]() ![]() | DrawLockedFrame(Graphics^, Rectangle, Boolean) | 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. |
![]() ![]() | DrawMenuGlyph(Graphics^, Int32, Int32, Int32, Int32, MenuGlyph) | Draws the specified menu glyph on a menu item control with the specified bounds and on the specified surface. |
![]() ![]() | DrawMenuGlyph(Graphics^, Int32, Int32, Int32, Int32, MenuGlyph, Color, Color) | |
![]() ![]() | DrawMenuGlyph(Graphics^, Rectangle, MenuGlyph) | Draws the specified menu glyph on a menu item control within the specified bounds and on the specified surface. |
![]() ![]() | DrawMenuGlyph(Graphics^, Rectangle, MenuGlyph, Color, Color) | |
![]() ![]() | DrawMixedCheckBox(Graphics^, Int32, Int32, Int32, Int32, ButtonState) | Draws a three-state check box control in the specified state, on the specified graphics surface, and within the specified bounds. |
![]() ![]() | DrawMixedCheckBox(Graphics^, Rectangle, ButtonState) | Draws a three-state check box control in the specified state, on the specified graphics surface, and within the specified bounds. |
![]() ![]() | DrawRadioButton(Graphics^, Int32, Int32, Int32, Int32, ButtonState) | Draws a radio button control in the specified state, on the specified graphics surface, and within the specified bounds. |
![]() ![]() | DrawRadioButton(Graphics^, Rectangle, ButtonState) | Draws a radio button control in the specified state, on the specified graphics surface, and within the specified bounds. |
![]() ![]() | DrawReversibleFrame(Rectangle, Color, FrameStyle) | Draws a reversible frame on the screen within the specified bounds, with the specified background color, and in the specified state. |
![]() ![]() | DrawReversibleLine(Point, Point, Color) | Draws a reversible line on the screen within the specified starting and ending points and with the specified background color. |
![]() ![]() | DrawScrollButton(Graphics^, Int32, Int32, Int32, Int32, ScrollButton, ButtonState) | Draws the specified scroll button on a scroll bar control in the specified state, on the specified graphics surface, and within the specified bounds. |
![]() ![]() | DrawScrollButton(Graphics^, Rectangle, ScrollButton, ButtonState) | Draws the specified scroll button on a scroll bar control in the specified state, on the specified graphics surface, and within the specified bounds. |
![]() ![]() | DrawSelectionFrame(Graphics^, Boolean, Rectangle, Rectangle, Color) | 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. |
![]() ![]() | DrawSizeGrip(Graphics^, Color, Int32, Int32, Int32, Int32) | Draws a size grip on a form with the specified bounds and background color and on the specified graphics surface. |
![]() ![]() | DrawSizeGrip(Graphics^, Color, Rectangle) | Draws a size grip on a form with the specified bounds and background color and on the specified graphics surface. |
![]() ![]() | DrawStringDisabled(Graphics^, String^, Font^, Color, RectangleF, StringFormat^) | Draws the specified string in a disabled state on the specified graphics surface; within the specified bounds; and in the specified font, color, and format. |
![]() ![]() | DrawStringDisabled(IDeviceContext^, String^, Font^, Color, Rectangle, TextFormatFlags) | Draws the specified string in a disabled state on the specified graphics surface, within the specified bounds, and in the specified font, color, and format, using the specified GDI-based TextRenderer. |
![]() ![]() | DrawVisualStyleBorder(Graphics^, Rectangle) | Draws a border in the style appropriate for disabled items. |
![]() | Equals(Object^) | Determines whether the specified object is equal to the current object.(Inherited from Object.) |
![]() ![]() | FillReversibleRectangle(Rectangle, Color) | Draws a filled, reversible rectangle on the screen. |
![]() | GetHashCode() | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType() | |
![]() ![]() | Light(Color) | Creates a new light color object for the control from the specified color. |
![]() ![]() | Light(Color, Single) | Creates a new light color object for the control from the specified color and lightens it by the specified percentage. |
![]() ![]() | LightLight(Color) | Creates a new light color object for the control from the specified color. |
![]() | ToString() | Returns a string that represents the current object.(Inherited from Object.) |

