62 references to CanFocus
System.Windows.Forms (6)
System\Windows\Forms\Control.cs (1)
5103
if (
CanFocus
)
System\Windows\Forms\Controls\DataGridView\DataGridView.AccessibleObject.cs (2)
223
return (VARIANT)(this.TryGetOwnerAs(out owner) && owner.
CanFocus
);
377
if (this.IsOwnerHandleCreated(out DataGridView? owner) && owner.
CanFocus
)
System\Windows\Forms\Controls\DataGridView\DataGridView.DataGridViewEditingPanelAccessibleObject.cs (1)
68
if (this.IsOwnerHandleCreated(out Panel? owner) && owner.
CanFocus
)
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.ToolStripPanelAccessibleObject.cs (1)
21
UIA_PROPERTY_ID.UIA_IsKeyboardFocusablePropertyId => (VARIANT)(this.TryGetOwnerAs(out ToolStripPanel? owner) && owner.
CanFocus
),
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (1)
961
if (TextBox.
CanFocus
)
System.Windows.Forms.Design.Tests (1)
System\ComponentModel\Design\ByteViewerTests.cs (1)
37
Assert.False(control.
CanFocus
);
System.Windows.Forms.Tests (55)
System\Windows\Forms\AxHostTests.cs (2)
44
Assert.False(control.
CanFocus
);
138
Assert.False(control.
CanFocus
);
System\Windows\Forms\ButtonBaseTests.cs (1)
36
Assert.False(control.
CanFocus
);
System\Windows\Forms\ButtonTests.cs (1)
38
Assert.False(control.
CanFocus
);
System\Windows\Forms\CheckBoxTests.cs (1)
37
Assert.False(control.
CanFocus
);
System\Windows\Forms\ComboBoxTests.cs (1)
41
Assert.False(control.
CanFocus
);
System\Windows\Forms\ContainerControlTests.cs (1)
43
Assert.False(control.
CanFocus
);
System\Windows\Forms\ControlTests.cs (5)
31
Assert.False(control.
CanFocus
);
120
Assert.False(control.
CanFocus
);
216
Assert.False(control.
CanFocus
);
312
Assert.False(control.
CanFocus
);
408
Assert.False(control.
CanFocus
);
System\Windows\Forms\ControlTests.Properties.cs (1)
3053
Assert.False(control.
CanFocus
);
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (1)
40
Assert.False(control.
CanFocus
);
System\Windows\Forms\DateTimePickerTests.cs (1)
44
Assert.False(control.
CanFocus
);
System\Windows\Forms\Design\ComponentEditorFormTests.cs (1)
51
Assert.False(control.
CanFocus
);
System\Windows\Forms\Design\ComponentEditorPageTests.cs (1)
38
Assert.False(control.
CanFocus
);
System\Windows\Forms\DomainUpDownTests.cs (1)
51
_sub.
CanFocus
.Should().BeFalse();
System\Windows\Forms\FlowLayoutPanelTests.cs (1)
37
Assert.False(control.
CanFocus
);
System\Windows\Forms\FormTests.cs (1)
49
Assert.False(control.
CanFocus
);
System\Windows\Forms\GroupBoxTests.cs (1)
34
Assert.False(control.
CanFocus
);
System\Windows\Forms\HScrollBarTests.cs (1)
34
Assert.False(control.
CanFocus
);
System\Windows\Forms\LabelTests.cs (1)
34
Assert.False(control.
CanFocus
);
System\Windows\Forms\ListBoxTests.cs (1)
35
Assert.False(control.
CanFocus
);
System\Windows\Forms\ListControlTests.cs (1)
35
Assert.False(control.
CanFocus
);
System\Windows\Forms\ListViewTests.cs (1)
42
Assert.False(control.
CanFocus
);
System\Windows\Forms\MdiClientTests.cs (1)
32
Assert.False(control.
CanFocus
);
System\Windows\Forms\MenuStripTests.cs (1)
37
Assert.False(control.
CanFocus
);
System\Windows\Forms\MonthCalendarTests.cs (1)
43
Assert.False(control.
CanFocus
);
System\Windows\Forms\PanelTests.cs (1)
38
Assert.False(control.
CanFocus
);
System\Windows\Forms\PictureBoxTests.cs (1)
37
Assert.False(control.
CanFocus
);
System\Windows\Forms\ProgressBarTests.cs (1)
33
Assert.False(control.
CanFocus
);
System\Windows\Forms\PropertyGridTests.cs (1)
50
Assert.False(control.
CanFocus
);
System\Windows\Forms\RadioButtonTests.cs (1)
37
Assert.False(control.
CanFocus
);
System\Windows\Forms\RichTextBoxTests.cs (1)
46
Assert.False(control.
CanFocus
);
System\Windows\Forms\ScrollableControlTests.cs (1)
37
Assert.False(control.
CanFocus
);
System\Windows\Forms\ScrollBarTests.cs (1)
32
Assert.False(control.
CanFocus
);
System\Windows\Forms\SplitterPanelTests.cs (1)
43
Assert.False(control.
CanFocus
);
System\Windows\Forms\SplitterTests.cs (1)
33
Assert.False(control.
CanFocus
);
System\Windows\Forms\StatusStripTests.cs (1)
37
Assert.False(control.
CanFocus
);
System\Windows\Forms\TabControlTests.cs (1)
35
Assert.False(control.
CanFocus
);
System\Windows\Forms\TableLayoutPanelTests.cs (1)
39
Assert.False(control.
CanFocus
);
System\Windows\Forms\TabPageTests.cs (2)
42
Assert.False(control.
CanFocus
);
151
Assert.False(control.
CanFocus
);
System\Windows\Forms\ToolStripContentPanelTests.cs (1)
40
Assert.False(control.
CanFocus
);
System\Windows\Forms\ToolStripDropDownTests.cs (1)
41
Assert.False(control.
CanFocus
);
System\Windows\Forms\ToolStripPanelTests.cs (1)
39
Assert.False(control.
CanFocus
);
System\Windows\Forms\ToolStripTests.cs (2)
41
Assert.False(control.
CanFocus
);
199
Assert.False(control.
CanFocus
);
System\Windows\Forms\TreeViewTests.cs (1)
33
Assert.False(control.
CanFocus
);
System\Windows\Forms\UpDownBaseTests.cs (1)
38
Assert.False(control.
CanFocus
);
System\Windows\Forms\UserControlTests.cs (1)
43
Assert.False(control.
CanFocus
);
System\Windows\Forms\VScrollBarTests.cs (1)
33
Assert.False(control.
CanFocus
);
TextBoxTests.cs (1)
39
Assert.False(control.
CanFocus
);
TrackBarTests.cs (1)
34
Assert.False(control.
CanFocus
);