5 overrides of CanSelect
System.Windows.Forms (4)
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (1)
88
public override bool
CanSelect
=> _control is not null && (DesignMode || _control.CanSelect);
System\Windows\Forms\Controls\ToolStrips\ToolStripGrip.cs (1)
27
public override bool
CanSelect
=> false;
System\Windows\Forms\Controls\ToolStrips\ToolStripLabel.cs (1)
65
public override bool
CanSelect
System\Windows\Forms\Controls\ToolStrips\ToolStripSeparator.cs (1)
48
public override bool
CanSelect
=> DesignMode;
System.Windows.Forms.Tests (1)
System\Windows\Forms\ToolStripItemTests.cs (1)
15475
public override bool
CanSelect
=> false;
27 references to CanSelect
System.Windows.Forms (9)
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (6)
581
internal virtual bool CanKeyboardSelect =>
CanSelect
;
1586
public virtual bool Pressed =>
CanSelect
&& _state[s_statePressed];
1765
=>
CanSelect
&& !DesignMode && (_state[s_stateSelected] ||
2494
if (Enabled &&
CanSelect
&& !Selected)
3023
if (!
CanSelect
|| !Enabled || DesignMode)
3120
if (!
CanSelect
)
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.ToolStripItemAccessibleObject.cs (2)
112
UIA_PROPERTY_ID.UIA_IsKeyboardFocusablePropertyId => (VARIANT)_ownerItem.
CanSelect
,
164
if (!_ownerItem.
CanSelect
)
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.cs (1)
202
if (item.
CanSelect
)
System.Windows.Forms.Tests (18)
System\Windows\Forms\ToolStripButtonTests.cs (7)
34
Assert.True(item.
CanSelect
);
115
Assert.True(item.
CanSelect
);
202
Assert.True(item.
CanSelect
);
292
Assert.True(item.
CanSelect
);
380
Assert.True(item.
CanSelect
);
478
Assert.True(item.
CanSelect
);
1067
Assert.Equal(item.
CanSelect
, item.Selected);
System\Windows\Forms\ToolStripDropDownItemTests.cs (4)
33
Assert.True(item.
CanSelect
);
122
Assert.True(item.
CanSelect
);
221
Assert.True(item.
CanSelect
);
321
Assert.True(item.
CanSelect
);
System\Windows\Forms\ToolStripItemTests.cs (5)
36
Assert.True(item.
CanSelect
);
121
Assert.True(item.
CanSelect
);
216
Assert.True(item.
CanSelect
);
14263
Assert.Equal(item.
CanSelect
, item.Selected);
14267
Assert.Equal(item.
CanSelect
, item.Selected);
System\Windows\Forms\ToolStripMenuItemTests.cs (1)
34
Assert.True(item.
CanSelect
);
System\Windows\Forms\ToolStripTests.cs (1)
5832
Assert.Equal(item.
CanSelect
, item.Selected);