48 references to RadioButtonState
System.Windows.Forms (36)
System\Windows\Forms\Controls\Buttons\RadioButtonRenderer.cs (36)
26
public static bool IsBackgroundPartiallyTransparent(
RadioButtonState
state)
49
/// <inheritdoc cref="DrawRadioButton(Graphics, Point, Rectangle, string?, Font?, TextFormatFlags, Image, Rectangle, bool,
RadioButtonState
)" />
50
public static void DrawRadioButton(Graphics g, Point glyphLocation,
RadioButtonState
state) =>
56
RadioButtonState
state,
67
RadioButtonState
state,
87
/// <inheritdoc cref="DrawRadioButton(Graphics, Point, Rectangle, string?, Font?, TextFormatFlags, Image, Rectangle, bool,
RadioButtonState
)" />
95
RadioButtonState
state)
102
/// <inheritdoc cref="DrawRadioButton(Graphics, Point, Rectangle, string?, Font?, TextFormatFlags, Image, Rectangle, bool,
RadioButtonState
)" />
111
RadioButtonState
state)
124
RadioButtonState
state,
155
/// <inheritdoc cref="DrawRadioButton(Graphics, Point, Rectangle, string?, Font?, TextFormatFlags, Image, Rectangle, bool,
RadioButtonState
)" />
165
RadioButtonState
state) => DrawRadioButton(
190
RadioButtonState
state) => DrawRadioButton(
213
RadioButtonState
state,
251
public static Size GetGlyphSize(Graphics g,
RadioButtonState
state)
257
internal static Size GetGlyphSize(HDC hdc,
RadioButtonState
state, HWND hwnd)
268
internal static ButtonState ConvertToButtonState(
RadioButtonState
state) => state switch
270
RadioButtonState
.CheckedNormal or
RadioButtonState
.CheckedHot => ButtonState.Checked,
271
RadioButtonState
.CheckedPressed => ButtonState.Checked | ButtonState.Pushed,
272
RadioButtonState
.CheckedDisabled => ButtonState.Checked | ButtonState.Inactive,
273
RadioButtonState
.UncheckedPressed => ButtonState.Pushed,
274
RadioButtonState
.UncheckedDisabled => ButtonState.Inactive,
278
internal static
RadioButtonState
ConvertFromButtonState(ButtonState state, bool isHot)
284
return
RadioButtonState
.CheckedPressed;
288
return
RadioButtonState
.CheckedDisabled;
292
return
RadioButtonState
.CheckedHot;
295
return
RadioButtonState
.CheckedNormal;
302
return
RadioButtonState
.UncheckedPressed;
306
return
RadioButtonState
.UncheckedDisabled;
310
return
RadioButtonState
.UncheckedHot;
313
return
RadioButtonState
.UncheckedNormal;
320
RadioButtonState
radioButtonState = (
RadioButtonState
)state;
323
&& (radioButtonState ==
RadioButtonState
.CheckedDisabled || radioButtonState ==
RadioButtonState
.UncheckedDisabled)
System.Windows.Forms.Tests (12)
System\Windows\Forms\RadioButtonRendererTests.cs (12)
13
[InlineData(
RadioButtonState
.CheckedNormal)]
14
[InlineData(
RadioButtonState
.CheckedPressed)]
15
public void RadioButtonRenderer_DrawRadioButton(
RadioButtonState
rBState)
44
[InlineData(
RadioButtonState
.CheckedNormal)]
45
[InlineData(
RadioButtonState
.CheckedPressed)]
46
public void RadioButtonRenderer_DrawRadioButton_OverloadWithSizeAndText(
RadioButtonState
rBState)
78
[InlineData(TextFormatFlags.Default,
RadioButtonState
.CheckedNormal)]
79
[InlineData(TextFormatFlags.Default,
RadioButtonState
.CheckedPressed)]
80
[InlineData(TextFormatFlags.PreserveGraphicsTranslateTransform,
RadioButtonState
.CheckedPressed)]
81
[InlineData(TextFormatFlags.TextBoxControl,
RadioButtonState
.UncheckedNormal)]
83
RadioButtonState
rBState)
126
RadioButtonState
.CheckedNormal,