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