2 overrides of Selected
System.Windows.Forms (2)
winforms\Managed\System\WinForms\ToolStripControlHost.cs (1)
454
public override bool
Selected
{
winforms\Managed\System\WinForms\ToolStripSplitButton.cs (1)
719
public override bool
Selected
{
48 references to Selected
System.Windows.Forms (48)
winforms\Managed\System\WinForms\Printing\PrintPreviewDialog.cs (1)
1732
if (item != null && !item.
Selected
)
winforms\Managed\System\WinForms\ToolStrip.cs (4)
2007
if (DisplayedItems[i].
Selected
) {
2606
if (DisplayedItems[i].
Selected
) {
3234
else if (item.
Selected
) {
3235
Debug.WriteLineIf(SelectionDebug.TraceVerbose, "[SelectDBG NotifySelectionChange] Notify selection change: " + item.ToString() + ": " + item.
Selected
.ToString());
winforms\Managed\System\WinForms\ToolStripButton.cs (1)
317
if (!ownerItem.Enabled && ownerItem.
Selected
) {
winforms\Managed\System\WinForms\ToolStripDropDownButton.cs (1)
183
if (
Selected
&& !Pressed && AccessibilityImprovements.Level2 && SystemInformation.HighContrast) {
winforms\Managed\System\WinForms\ToolStripHighContrastRenderer.cs (8)
116
checkColorMap[0].NewColor = ((e.Item.
Selected
|| e.Item.Pressed) && e.Item.Enabled) ?
148
else if (item.
Selected
) {
154
Color arrowColor = AccessibilityImprovements.Level2 && item.
Selected
&& !item.Pressed ? SystemColors.HighlightText : SystemColors.ControlText;
196
if (AccessibilityImprovements.Level2 && e.Item.
Selected
&& (!e.Item.Pressed || e.Item is ToolStripButton)) {
201
if (e.Item.
Selected
|| e.Item.Pressed) {
362
if (IsHighContrastWhiteOnBlack() && !(FillWhenSelected && (e.Item.Pressed || e.Item.
Selected
))) {
398
if (button.
Selected
&& AccessibilityImprovements.Level1) {
430
else if (e.Item.
Selected
) {
winforms\Managed\System\WinForms\ToolStripItem.cs (6)
2883
if (Enabled && CanSelect && !
Selected
) {
3545
if (!
Selected
) {
4182
return ownerItem.
Selected
;
4256
if (ownerItem.
Selected
&& ownerItem is ToolStripMenuItem) {
4264
if (ownerItem.
Selected
&& ownerItem is ToolStripMenuItem) {
4279
if (ownerItem.
Selected
|| ownerItem.Pressed) {
winforms\Managed\System\WinForms\ToolStripLabel.cs (1)
326
else if (this.
Selected
) {
winforms\Managed\System\WinForms\ToolStripMenuItem.cs (5)
1007
if (this.ParentInternal != null && this.ParentInternal.MenuAutoExpand &&
Selected
) {
1065
if (
Selected
|| Pressed) {
1114
Color arrowColor = (
Selected
||Pressed) ? SystemColors.HighlightText : SystemColors.MenuText;
1389
bool rollup = forceClose || (CurrentItem != null && CurrentItem != lastSelected && CurrentItem.
Selected
);
1429
if (CurrentItem != null && !CurrentItem.IsDisposed && CurrentItem.
Selected
&& CurrentItem.Enabled && ToolStripManager.ModalMenuFilter.InMenuMode) {
winforms\Managed\System\WinForms\ToolStripProfessionalRenderer.cs (14)
249
Rectangle fillRect = (item.
Selected
) ? item.ContentRectangle : bounds;
253
bool buttonPressedOrSelected = (item.Pressed || item.ButtonPressed || item.
Selected
|| item.ButtonSelected);
320
Rectangle fillRect = (item.
Selected
) ? item.ContentRectangle :bounds;
327
if (item.
Selected
) {
340
if (item.
Selected
) {
508
if (item.
Selected
) {
546
else if (item.
Selected
) {
628
if (e.Item is ToolStripMenuItem && (e.Item.
Selected
|| e.Item.Pressed)) {
804
else if (item.
Selected
) {
914
Color fill = (e.Item.
Selected
) ? ColorTable.CheckSelectedBackground : ColorTable.CheckBackground;
960
Rectangle fillRect = (item.
Selected
) ? item.ContentRectangle :bounds;
1084
else if (item.
Selected
) {
1374
Rectangle fillRect = (item.
Selected
) ? item.ContentRectangle :bounds;
1384
else if (item.
Selected
) {
winforms\Managed\System\WinForms\ToolStripSplitButton.cs (3)
244
return this.
Selected
;
723
return owner.
Selected
;
725
return base.
Selected
;
winforms\Managed\System\WinForms\ToolStripSystemRenderer.cs (4)
150
if (((ToolStripButton)item).
Selected
&& AccessibilityImprovements.Level1) {
160
else if (item.
Selected
) {
399
if (item.
Selected
|| item.Pressed) {
520
Rectangle fillRect = (splitButton.
Selected
) ? splitButton.ContentRectangle :bounds;