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