ButtonRenderer.DrawButton Method

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Draws a button control.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticDrawButton(Graphics, Rectangle, Boolean, PushButtonState)

Draws a button control in the specified state and bounds, and with an optional focus rectangle.

System_CAPS_pubmethodSystem_CAPS_staticDrawButton(Graphics, Rectangle, Image, Rectangle, Boolean, PushButtonState)

Draws a button control in the specified state and bounds, with the specified image, and with an optional focus rectangle.

System_CAPS_pubmethodSystem_CAPS_staticDrawButton(Graphics, Rectangle, PushButtonState)

Draws a button control in the specified state and bounds.

System_CAPS_pubmethodSystem_CAPS_staticDrawButton(Graphics, Rectangle, String, Font, Boolean, PushButtonState)

Draws a button control in the specified state and bounds, with the specified text, and with an optional focus rectangle.

System_CAPS_pubmethodSystem_CAPS_staticDrawButton(Graphics, Rectangle, String, Font, Image, Rectangle, Boolean, PushButtonState)

Draws a button control in the specified state and bounds, with the specified text and image, and with an optional focus rectangle.

System_CAPS_pubmethodSystem_CAPS_staticDrawButton(Graphics, Rectangle, String, Font, TextFormatFlags, Boolean, PushButtonState)

Draws a button control in the specified state and bounds, with the specified text and text formatting, and with an optional focus rectangle.

System_CAPS_pubmethodSystem_CAPS_staticDrawButton(Graphics, Rectangle, String, Font, TextFormatFlags, Image, Rectangle, Boolean, PushButtonState)

Draws a button control in the specified state and bounds; with the specified text, text formatting, and image; and with an optional focus rectangle.

Return to top
Show: