32 references to SelectionService
System.Windows.Forms.Design (32)
System\Windows\Forms\Design\ToolStripDesigner.cs (32)
419
if (ToolStrip.Visible != value && !
SelectionService
.GetComponentSelected(ToolStrip))
608
SelectionService
.SetSelectedComponents(null, SelectionTypes.Replace);
616
SelectionService
.SetSelectedComponents(new IComponent[] { item }, SelectionTypes.Replace);
625
SelectionService
.SetSelectedComponents(null, SelectionTypes.Replace);
713
object comp =
SelectionService
.PrimarySelection;
790
if (
SelectionService
.PrimarySelection is ToolStripDropDownItem selectedItem)
818
if (
SelectionService
.PrimarySelection is ToolStripItem toolItem)
889
if (
SelectionService
.PrimarySelection is ToolStripItem selectedItem)
946
object selectedItem =
SelectionService
.PrimarySelection;
1071
SelectionService
.SetSelectedComponents(null, SelectionTypes.Replace);
1075
SelectionService
.SetSelectedComponents(new IComponent[] { targetSelection }, SelectionTypes.Replace);
1236
IComponent selectedItem =
SelectionService
.PrimarySelection as IComponent;
1276
object primarySelection =
SelectionService
.PrimarySelection;
1354
ICollection selComponents =
SelectionService
.GetSelectedComponents();
1457
SelectionService
.SelectionChanging += SelSvc_SelectionChanging;
1458
SelectionService
.SelectionChanged += SelSvc_SelectionChanged;
1818
Component selComp =
SelectionService
.PrimarySelection as Component;
1958
SelectionService
.SetSelectedComponents(new IComponent[] { primaryItem }, SelectionTypes.Primary | SelectionTypes.Replace);
2018
if (!
SelectionService
.GetComponentSelected(ToolStrip))
2045
if (
SelectionService
.PrimarySelection is ToolStripItem curSel && curSel.IsOnOverflow)
2050
SelectionService
.SetSelectedComponents(new IComponent[] { nextItem }, SelectionTypes.Replace);
2075
if (!(
SelectionService
.PrimarySelection is ToolStripItem curSel) || (curSel is not null && !curSel.IsOnOverflow))
2080
SelectionService
.SetSelectedComponents(new IComponent[] { nextItem }, SelectionTypes.Replace);
2096
&&
SelectionService
.GetComponentSelected(item)
2178
if (
SelectionService
.PrimarySelection is ToolStripDropDownItem selectedItem)
2198
if (CheckIfItemSelected() ||
SelectionService
.GetComponentSelected(ToolStrip))
2210
if (
SelectionService
.GetComponentSelected(ToolStrip))
2344
if (!showToolStrip && !
SelectionService
.GetComponentSelected(ToolStrip))
2375
bool showToolStrip = itemSelected ||
SelectionService
.GetComponentSelected(ToolStrip);
2381
if (
SelectionService
.GetComponentSelected(ToolStrip))
2408
if (_editorNode is not null && (
SelectionService
.PrimarySelection == ToolStrip || itemSelected))
2521
if (!_addingDummyItem && !_disposed && (CheckIfItemSelected() ||
SelectionService
.GetComponentSelected(ToolStrip)))