64 references to PushButtonState
System.Windows.Forms (35)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonStandardAdapter.cs (8)
16private PushButtonState DetermineState(bool up) 18PushButtonState state = PushButtonState.Normal; 22state = PushButtonState.Pressed; 26state = PushButtonState.Hot; 30state = PushButtonState.Disabled; 34state = PushButtonState.Default; 48PushButtonState pbState = DetermineState(up);
System\Windows\Forms\Controls\Buttons\ButtonRenderer.cs (20)
37public static bool IsBackgroundPartiallyTransparent(PushButtonState state) 65/// <inheritdoc cref="DrawButton(Graphics, Rectangle, string?, Font?, TextFormatFlags, Image, Rectangle, bool, PushButtonState)"/> 66public static void DrawButton(Graphics g, Rectangle bounds, PushButtonState state) => 69internal static void DrawButton(IDeviceContext deviceContext, Rectangle bounds, PushButtonState state) 90PushButtonState state, 124/// <inheritdoc cref="DrawButton(Graphics, Rectangle, string?, Font?, TextFormatFlags, Image, Rectangle, bool, PushButtonState)"/> 125public static void DrawButton(Graphics g, Rectangle bounds, bool focused, PushButtonState state) => 128/// <inheritdoc cref="DrawButton(Graphics, Rectangle, string?, Font?, TextFormatFlags, Image, Rectangle, bool, PushButtonState)"/> 129public static void DrawButton(Graphics g, Rectangle bounds, string? buttonText, Font? font, bool focused, PushButtonState state) 141/// <inheritdoc cref="DrawButton(Graphics, Rectangle, string?, Font?, TextFormatFlags, Image, Rectangle, bool, PushButtonState)"/> 142public static void DrawButton(Graphics g, Rectangle bounds, string? buttonText, Font? font, TextFormatFlags flags, bool focused, PushButtonState state) 170/// <inheritdoc cref="DrawButton(Graphics, Rectangle, string?, Font?, TextFormatFlags, Image, Rectangle, bool, PushButtonState)"/> 172public static void DrawButton(Graphics g, Rectangle bounds, Image image, Rectangle imageBounds, bool focused, PushButtonState state) 197/// <inheritdoc cref="DrawButton(Graphics, Rectangle, string?, Font?, TextFormatFlags, Image, Rectangle, bool, PushButtonState)"/> 206PushButtonState state) => DrawButton( 229PushButtonState state) 241PushButtonState state) 281internal static ButtonState ConvertToButtonState(PushButtonState state) => state switch 283PushButtonState.Pressed => ButtonState.Pushed, 284PushButtonState.Disabled => ButtonState.Inactive,
System\Windows\Forms\Controls\Buttons\CheckBoxRenderer.cs (1)
24/// <inheritdoc cref="ButtonRenderer.IsBackgroundPartiallyTransparent(PushButtonState)"/>
System\Windows\Forms\Controls\Buttons\RadioButtonRenderer.cs (1)
25/// <inheritdoc cref="ButtonRenderer.IsBackgroundPartiallyTransparent(PushButtonState)"/>
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.cs (5)
723PushButtonState pbState = PushButtonState.Normal; 726pbState = PushButtonState.Pressed; 731pbState = PushButtonState.Hot; 736pbState |= PushButtonState.Default;
System.Windows.Forms.Design (29)
System\ComponentModel\Design\CollectionEditor.SplitButton.cs (20)
14private PushButtonState _state; 46private PushButtonState State 88if (State is not (PushButtonState.Pressed or PushButtonState.Disabled)) 90State = PushButtonState.Default; 116if (State is not (PushButtonState.Pressed or PushButtonState.Disabled)) 118State = PushButtonState.Normal; 136State = PushButtonState.Pressed; 148if (State is not (PushButtonState.Pressed or PushButtonState.Disabled)) 150State = PushButtonState.Hot; 162if (State is not (PushButtonState.Pressed or PushButtonState.Disabled)) 164State = Focused ? PushButtonState.Default : PushButtonState.Normal; 262State = PushButtonState.Pressed; 284State = PushButtonState.Hot; 288State = PushButtonState.Default; 292State = PushButtonState.Normal;
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.EditorButton.cs (9)
60PushButtonState buttonState = PushButtonState.Normal; 63buttonState = PushButtonState.Pressed; 67buttonState = PushButtonState.Hot; 97PushButtonState buttonState = PushButtonState.Normal; 102buttonState = PushButtonState.Pressed; 106buttonState = PushButtonState.Hot; 111buttonState = PushButtonState.Disabled;