File: System\Windows\Forms\Controls\Buttons\ButtonState.cs
Web Access
Project: src\src\System.Windows.Forms\src\System.Windows.Forms.csproj (System.Windows.Forms)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
 
namespace System.Windows.Forms;
 
/// <summary>
///  Specifies the appearance of a button.
/// </summary>
[Flags]
public enum ButtonState
{
    /// <summary>
    ///  The button has a checked or latched appearance. Use this appearance to
    ///  show that a toggle button has been pressed.
    /// </summary>
    Checked = (int)DFCS_STATE.DFCS_CHECKED,
 
    /// <summary>
    ///  The button has a flat, two-dimensional appearance.
    /// </summary>
    Flat = (int)DFCS_STATE.DFCS_FLAT,
 
    /// <summary>
    ///  The button is inactive (grayed).
    /// </summary>
    Inactive = (int)DFCS_STATE.DFCS_INACTIVE,
 
    /// <summary>
    ///  The button has its normal appearance (three-dimensional and not pressed).
    /// </summary>
    Normal = 0,
 
    /// <summary>
    ///  The button is currently pressed.
    /// </summary>
    Pushed = (int)DFCS_STATE.DFCS_PUSHED,
 
    /// <summary>
    ///  All viable flags in the bit mask are used.
    /// </summary>
    All = Flat | Checked | Pushed | Inactive,
}