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