3 types derived from RadioButton
System.Windows.Forms.Design (1)
System\Drawing\SelectionPanelBase.SelectionPanelRadioButton.cs (1)
10protected class SelectionPanelRadioButton : RadioButton
System.Windows.Forms.Tests (2)
System\Windows\Forms\RadioButtonTests.cs (2)
1525private class SubRadioButton : RadioButton 1622private class TestRadioButton : RadioButton
65 instantiations of RadioButton
Accessibility_Core_App (14)
CommonControl2.Designer.cs (1)
49this.radioButton1 = new System.Windows.Forms.RadioButton();
ContainerControls.Designer.cs (6)
48this.radioButton6 = new System.Windows.Forms.RadioButton(); 49this.radioButton5 = new System.Windows.Forms.RadioButton(); 50this.radioButton4 = new System.Windows.Forms.RadioButton(); 52this.radioButton3 = new System.Windows.Forms.RadioButton(); 53this.radioButton2 = new System.Windows.Forms.RadioButton(); 56this.radioButton1 = new System.Windows.Forms.RadioButton();
ContainerControls2.Designer.cs (6)
39this.radioButton6 = new System.Windows.Forms.RadioButton(); 40this.radioButton5 = new System.Windows.Forms.RadioButton(); 41this.radioButton4 = new System.Windows.Forms.RadioButton(); 43this.radioButton3 = new System.Windows.Forms.RadioButton(); 44this.radioButton2 = new System.Windows.Forms.RadioButton(); 47this.radioButton1 = new System.Windows.Forms.RadioButton();
DataBindingExample.Designer.cs (1)
40this.radioButton1 = new System.Windows.Forms.RadioButton();
PresentationUI (5)
MS\Internal\Documents\RMEnrollmentPage2.Designer.cs (2)
47this._networkRadioButton = new System.Windows.Forms.RadioButton(); 49this._passportRadioButton = new System.Windows.Forms.RadioButton();
MS\Internal\Documents\RMPublishingDialog.Designer.cs (3)
36this.radioButtonUnrestricted = new System.Windows.Forms.RadioButton(); 37this.radioButtonPermissions = new System.Windows.Forms.RadioButton(); 38this.radioButtonTemplate = new System.Windows.Forms.RadioButton();
System.Windows.Forms.Design (9)
System\ComponentModel\Design\BinaryEditor.BinaryUI.cs (4)
157_radioUnicode = new RadioButton(); 158_radioAuto = new RadioButton(); 159_radioAnsi = new RadioButton(); 160_radioHex = new RadioButton();
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (2)
261_dataBoundColumnRadioButton = new RadioButton(); 272_unboundColumnRadioButton = new RadioButton();
System\Windows\Forms\Design\StyleEditorForm.cs (3)
177_absoluteRadioButton = new RadioButton(); 180_percentRadioButton = new RadioButton(); 181_autoSizedRadioButton = new RadioButton();
System.Windows.Forms.Design.Tests (3)
System\Windows\Forms\Design\RadioButtonDesignerTests.cs (3)
12using RadioButton radioButton = new(); 22using RadioButton radioButton = new(); 32using RadioButton radioButton = new();
System.Windows.Forms.Tests (27)
SerializableTypesTests.cs (1)
291tableLayoutPanel.Controls.Add(new RadioButton() { Name = "radioButton01" }, 0, 1);
System\Windows\Forms\AccessibleObjects\RadioButton.RadioButtonAccessibleObjectTests.cs (15)
21using RadioButton radioButton = new(); 32using RadioButton radioButton = new() 47using RadioButton radioButton = new() 61using RadioButton radioButton = new() 76using RadioButton radioButton = new() 91using RadioButton radioButton = new() { Text = "TestText" }; 102using RadioButton radioButton = new() { Text = "&TestText", UseMnemonic = useMnemonic }; 113using RadioButton radioButton = new() { Text = "&RadioButton", UseMnemonic = useMnemonic }; 122using RadioButton radioButton = new() 137using RadioButton radioButton = new(); 150using RadioButton radioButton = new(); 171using RadioButton radioButton = new(); 194using RadioButton radioButton = new() 213using RadioButton radioButton = new() 244using RadioButton radioButton = new();
System\Windows\Forms\BinaryFormat\WinFormsBinaryFormattedObjectTests.cs (1)
262{ new RadioButton(), new string[] { "DataContext: Object", "Tag: Object" } },
System\Windows\Forms\ControlTests.cs (2)
876using RadioButton radioButton1 = new() { Checked = true }; 878using RadioButton radioButton2 = new() { Checked = false };
System\Windows\Forms\RadioButtonRendererTests.cs (1)
149protected override ButtonBase CreateButton() => new RadioButton();
System\Windows\Forms\RadioButtonTests.cs (7)
171using RadioButton control = new(); 192using RadioButton control = new(); 205using RadioButton control = new() 227using RadioButton control = new(); 263using RadioButton control = new() 1511using RadioButton control = new(); 1518using RadioButton control = new()
WinFormsControlsTest (7)
Buttons.cs (1)
50radioButton = new RadioButton
MultipleControls.Designer.cs (2)
47this.radioButton2 = new System.Windows.Forms.RadioButton(); 48this.radioButton1 = new System.Windows.Forms.RadioButton();
ToolStripTests.cs (2)
15toolStrip1.Items.Add(new ToolStripControlHost(new RadioButton() { Text = "RadioButton" })); // RadioButton supports UIA 17statusStrip1.Items.Add(new ToolStripControlHost(new RadioButton() { Text = "RadioButton" })); // RadioButton supports UIA
TrackBars.Designer.cs (2)
35this.rbHorizontal = new System.Windows.Forms.RadioButton(); 36this.rbVertical = new System.Windows.Forms.RadioButton();
164 references to RadioButton
Accessibility_Core_App (14)
CommonControl2.Designer.cs (1)
295private System.Windows.Forms.RadioButton radioButton1;
ContainerControls.Designer.cs (6)
873private System.Windows.Forms.RadioButton radioButton6; 874private System.Windows.Forms.RadioButton radioButton5; 875private System.Windows.Forms.RadioButton radioButton4; 877private System.Windows.Forms.RadioButton radioButton3; 878private System.Windows.Forms.RadioButton radioButton2; 881private System.Windows.Forms.RadioButton radioButton1;
ContainerControls2.Designer.cs (6)
461private System.Windows.Forms.RadioButton radioButton6; 462private System.Windows.Forms.RadioButton radioButton5; 463private System.Windows.Forms.RadioButton radioButton4; 465private System.Windows.Forms.RadioButton radioButton3; 466private System.Windows.Forms.RadioButton radioButton2; 469private System.Windows.Forms.RadioButton radioButton1;
DataBindingExample.Designer.cs (1)
304private System.Windows.Forms.RadioButton radioButton1;
DesignSurface (4)
MainForm.cs (4)
136RadioButton rb1 = surface.CreateControl<RadioButton>(new Size(120, 22), new Point(12, 10)); 138RadioButton rb2 = surface.CreateControl<RadioButton>(new Size(120, 22), new Point(12, 35));
PresentationUI (5)
MS\Internal\Documents\RMEnrollmentPage2.Designer.cs (2)
247private System.Windows.Forms.RadioButton _networkRadioButton; 248private System.Windows.Forms.RadioButton _passportRadioButton;
MS\Internal\Documents\RMPublishingDialog.Designer.cs (3)
401private System.Windows.Forms.RadioButton radioButtonUnrestricted; 402private System.Windows.Forms.RadioButton radioButtonPermissions; 403private System.Windows.Forms.RadioButton radioButtonTemplate;
System.Windows.Forms (14)
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckableControlBaseAdapter.cs (1)
50if (Control is RadioButton radioButton)
System\Windows\Forms\Controls\Buttons\ButtonInternal\RadioButtonBaseAdapter.cs (2)
12protected new RadioButton Control => (RadioButton)base.Control;
System\Windows\Forms\Controls\Buttons\RadioButton.cs (3)
39/// Initializes a new instance of the <see cref="RadioButton"/> class. 415if (children[i] is RadioButton radioButton 438if (children[i] is RadioButton button)
System\Windows\Forms\Controls\Buttons\RadioButton.RadioButtonAccessibleObject.cs (8)
11public class RadioButtonAccessibleObject(RadioButton owner) : ControlAccessibleObject(owner) 14this.TryGetOwnerAs(out RadioButton? owner) && owner.AccessibleDefaultActionDescription is { } description 23this.TryGetOwnerAs(out RadioButton? owner) && owner.Checked 27internal override bool IsItemSelected => this.TryGetOwnerAs(out RadioButton? owner) && owner.Checked; 31if (this.IsOwnerHandleCreated(out RadioButton? owner)) 39UIA_PROPERTY_ID.UIA_HasKeyboardFocusPropertyId => (VARIANT)(this.TryGetOwnerAs(out RadioButton? owner) && owner.Focused), 53public override string? KeyboardShortcut => this.TryGetOwnerAs(out RadioButton? owner) 61if (!this.TryGetOwnerAs(out RadioButton? owner))
System.Windows.Forms.Design (65)
System\ComponentModel\Design\BinaryEditor.BinaryUI.cs (4)
16private RadioButton _radioAuto; 21private RadioButton _radioHex; 22private RadioButton _radioAnsi; 26private RadioButton _radioUnicode;
System\Drawing\Design\ContentAlignmentEditor.ContentUI.cs (10)
279protected override RadioButton ProcessDownKey(RadioButton checkedControl) 319protected override RadioButton ProcessUpKey(RadioButton checkedControl) 359protected override RadioButton ProcessRightKey(RadioButton checkedControl) 399protected override RadioButton ProcessLeftKey(RadioButton checkedControl) 429protected override RadioButton ProcessTabKey(Keys keyData) 443if (Controls[i] is RadioButton button && Controls[i].TabIndex == nextTabIndex)
System\Drawing\Design\SelectionPanelBase.cs (17)
12private RadioButton? _checkedControl; 15protected RadioButton CheckedControl 49CheckedControl = (RadioButton)sender!; 63var radioButton = (RadioButton)sender!; 65RadioButton target; 108protected abstract RadioButton ProcessDownKey(RadioButton checkedControl); 110protected abstract RadioButton ProcessLeftKey(RadioButton checkedControl); 112protected abstract RadioButton ProcessRightKey(RadioButton checkedControl); 114protected abstract RadioButton ProcessTabKey(Keys keyData); 116protected abstract RadioButton ProcessUpKey(RadioButton checkedControl); 122foreach (RadioButton radioButton in SelectionOptions) 136foreach (RadioButton radioButton in SelectionOptions)
System\Windows\Forms\Design\ButtonBaseDesigner.cs (1)
69if (Control is CheckBox or RadioButton)
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (2)
14private RadioButton _dataBoundColumnRadioButton; 19private RadioButton _unboundColumnRadioButton;
System\Windows\Forms\Design\DockEditor.DockUI.cs (22)
19private readonly RadioButton _fill; 20private readonly RadioButton _left; 21private readonly RadioButton[] _leftRightOrder; 22private readonly RadioButton _none; 23private readonly RadioButton _right; 24private readonly RadioButton[] _tabOrder; 25private readonly RadioButton _top; 26private readonly RadioButton _bottom; 27private readonly RadioButton[] _upDownOrder; 222protected override RadioButton ProcessDownKey(RadioButton checkedControl) 225protected override RadioButton ProcessLeftKey(RadioButton checkedControl) 228private RadioButton ProcessLeftRight(RadioButton checkedControl, bool leftDirection) 244protected override RadioButton ProcessRightKey(RadioButton checkedControl) => ProcessLeftRight(checkedControl, false); 246protected override RadioButton ProcessTabKey(Keys keyData) 261protected override RadioButton ProcessUpKey(RadioButton checkedControl) => ProcessUpDown(checkedControl, true); 263private RadioButton ProcessUpDown(RadioButton checkedControl, bool upDirection)
System\Windows\Forms\Design\NavigationalTableLayoutPanel.cs (6)
10private List<RadioButton> RadioButtons 14List<RadioButton> radioButtons = []; 17RadioButton radioButton = (RadioButton)control; 35List<RadioButton> radioButtons = RadioButtons; 39RadioButton radioButton = radioButtons[i];
System\Windows\Forms\Design\StyleEditorForm.cs (3)
55private RadioButton _absoluteRadioButton; 56private RadioButton _percentRadioButton; 57private RadioButton _autoSizedRadioButton;
System.Windows.Forms.Design.Tests (3)
System\Windows\Forms\Design\RadioButtonDesignerTests.cs (3)
12using RadioButton radioButton = new(); 22using RadioButton radioButton = new(); 32using RadioButton radioButton = new();
System.Windows.Forms.Tests (54)
System\Windows\Forms\AccessibleObjects\Control.ControlAccessibleObjectTests.cs (1)
1652yield return new object[] { typeof(RadioButton) };
System\Windows\Forms\AccessibleObjects\RadioButton.RadioButtonAccessibleObjectTests.cs (16)
6using RadioButtonAccessibleObject = System.Windows.Forms.RadioButton.RadioButtonAccessibleObject; 21using RadioButton radioButton = new(); 32using RadioButton radioButton = new() 47using RadioButton radioButton = new() 61using RadioButton radioButton = new() 76using RadioButton radioButton = new() 91using RadioButton radioButton = new() { Text = "TestText" }; 102using RadioButton radioButton = new() { Text = "&TestText", UseMnemonic = useMnemonic }; 113using RadioButton radioButton = new() { Text = "&RadioButton", UseMnemonic = useMnemonic }; 122using RadioButton radioButton = new() 137using RadioButton radioButton = new(); 150using RadioButton radioButton = new(); 171using RadioButton radioButton = new(); 194using RadioButton radioButton = new() 213using RadioButton radioButton = new() 244using RadioButton radioButton = new();
System\Windows\Forms\ControlTests.cs (2)
876using RadioButton radioButton1 = new() { Checked = true }; 878using RadioButton radioButton2 = new() { Checked = false };
System\Windows\Forms\RadioButtonRendererTests.cs (8)
18using RadioButton control = (RadioButton)CreateButton(); 49using RadioButton control = (RadioButton)CreateButton(); 86using RadioButton control = (RadioButton)CreateButton(); 107using RadioButton control = (RadioButton)CreateButton();
System\Windows\Forms\RadioButtonTests.cs (27)
171using RadioButton control = new(); 192using RadioButton control = new(); 205using RadioButton control = new() 227using RadioButton control = new(); 263using RadioButton control = new() 407RadioButton.RadioButtonAccessibleObject instance = Assert.IsType<RadioButton.RadioButtonAccessibleObject>(control.CreateAccessibilityInstance()); 428RadioButton.RadioButtonAccessibleObject instance = Assert.IsType<RadioButton.RadioButtonAccessibleObject>(control.CreateAccessibilityInstance()); 451RadioButton.RadioButtonAccessibleObject instance = Assert.IsType<RadioButton.RadioButtonAccessibleObject>(control.CreateAccessibilityInstance()); 473RadioButton.RadioButtonAccessibleObject instance = Assert.IsType<RadioButton.RadioButtonAccessibleObject>(control.CreateAccessibilityInstance()); 515RadioButton.RadioButtonAccessibleObject instance = Assert.IsType<RadioButton.RadioButtonAccessibleObject>(control.CreateAccessibilityInstance()); 538RadioButton.RadioButtonAccessibleObject instance = Assert.IsType<RadioButton.RadioButtonAccessibleObject>(control.CreateAccessibilityInstance()); 560RadioButton.RadioButtonAccessibleObject instance = Assert.IsType<RadioButton.RadioButtonAccessibleObject>(control.CreateAccessibilityInstance()); 588RadioButton.RadioButtonAccessibleObject instance = Assert.IsType<RadioButton.RadioButtonAccessibleObject>(control.CreateAccessibilityInstance()); 609RadioButton.RadioButtonAccessibleObject instance = Assert.IsType<RadioButton.RadioButtonAccessibleObject>(control.CreateAccessibilityInstance()); 1511using RadioButton control = new(); 1518using RadioButton control = new() 1630private class SubRadioButtonAccessibleObject : RadioButton.RadioButtonAccessibleObject 1632public SubRadioButtonAccessibleObject(RadioButton owner) : base(owner)
WinFormsControlsTest (5)
Buttons.cs (1)
47RadioButton radioButton;
MultipleControls.Designer.cs (2)
345private System.Windows.Forms.RadioButton radioButton2; 346private System.Windows.Forms.RadioButton radioButton1;
TrackBars.Designer.cs (2)
280private System.Windows.Forms.RadioButton rbHorizontal; 281private System.Windows.Forms.RadioButton rbVertical;