31 references to SelectionService
System.Windows.Forms.Design (31)
System\Windows\Forms\Design\ToolStripDesigner.cs (31)
450
if (ToolStrip.Visible != value && !
SelectionService
.GetComponentSelected(ToolStrip))
644
SelectionService
.SetSelectedComponents(null, SelectionTypes.Replace);
652
SelectionService
.SetSelectedComponents(new IComponent[] { item }, SelectionTypes.Replace);
661
SelectionService
.SetSelectedComponents(null, SelectionTypes.Replace);
749
object comp =
SelectionService
.PrimarySelection;
826
if (
SelectionService
.PrimarySelection is ToolStripDropDownItem selectedItem)
854
if (
SelectionService
.PrimarySelection is ToolStripItem toolItem)
909
if (
SelectionService
.PrimarySelection is ToolStripItem selectedItem)
966
object selectedItem =
SelectionService
.PrimarySelection;
1094
SelectionService
.SetSelectedComponents(null, SelectionTypes.Replace);
1098
SelectionService
.SetSelectedComponents(new IComponent[] { targetSelection }, SelectionTypes.Replace);
1229
IComponent selectedItem =
SelectionService
.PrimarySelection as IComponent;
1269
object primarySelection =
SelectionService
.PrimarySelection;
1347
ICollection selComponents =
SelectionService
.GetSelectedComponents();
1772
Component selComp =
SelectionService
.PrimarySelection as Component;
1918
SelectionService
.SetSelectedComponents(new IComponent[] { primaryItem }, SelectionTypes.Primary | SelectionTypes.Replace);
1976
if (!
SelectionService
.GetComponentSelected(ToolStrip))
2003
if (
SelectionService
.PrimarySelection is ToolStripItem curSel && curSel.IsOnOverflow)
2008
SelectionService
.SetSelectedComponents(new IComponent[] { nextItem }, SelectionTypes.Replace);
2033
if (!(
SelectionService
.PrimarySelection is ToolStripItem curSel) || (curSel is not null && !curSel.IsOnOverflow))
2038
SelectionService
.SetSelectedComponents(new IComponent[] { nextItem }, SelectionTypes.Replace);
2053
&&
SelectionService
.GetComponentSelected(item)
2135
if (
SelectionService
.PrimarySelection is ToolStripDropDownItem selectedItem)
2155
if (CheckIfItemSelected() ||
SelectionService
.GetComponentSelected(ToolStrip))
2167
if (
SelectionService
.GetComponentSelected(ToolStrip))
2306
if (!showToolStrip && !
SelectionService
.GetComponentSelected(ToolStrip))
2340
bool showToolStrip = itemSelected ||
SelectionService
.GetComponentSelected(ToolStrip);
2346
if (
SelectionService
.GetComponentSelected(ToolStrip))
2373
if (_editorNode is not null && (
SelectionService
.PrimarySelection == ToolStrip || itemSelected))
2388
if (
SelectionService
.PrimarySelection is not ToolStripItem)
2495
if (!_addingDummyItem && !_disposed && (CheckIfItemSelected() ||
SelectionService
.GetComponentSelected(ToolStrip)))