PushButtonState Enumeration

 
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.

Specifies the visual state of a button that is drawn with visual styles.

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

public enum PushButtonState

Member nameDescription
Default

The button has the default appearance.

Disabled

The button is disabled.

Hot

The button is hot.

Normal

The button has the normal appearance.

Pressed

The button is pressed.

The PushButtonState values correspond to the states of the VisualStyleElement objects exposed by the VisualStyleElement.Button.PushButton class. The PushButtonState values are also used as an argument in the ButtonRenderer.DrawButton method.

.NET Framework
Available since 2.0
Return to top
Show: