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