1 write to _component
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\ToolStripTemplateNode.cs (1)
118
_component
= component;
29 references to _component
System.Windows.Forms.Design (29)
System\Windows\Forms\Design\ToolStripTemplateNode.cs (29)
171
IMenuCommandService menuService = (IMenuCommandService)
_component
.Site.GetService(typeof(IMenuCommandService));
195
IEventHandlerService ehs = (IEventHandlerService)
_component
.Site.GetService(typeof(IEventHandlerService));
203
IMenuCommandService menuService = (IMenuCommandService)
_component
.Site.GetService(typeof(IMenuCommandService));
223
IEventHandlerService ehs = (IEventHandlerService)
_component
.Site.GetService(typeof(IEventHandlerService));
265
BaseContextMenuStrip templateNodeContextMenu = new(
_component
.Site)
273
TemplateNodeCustomMenuItemCollection templateNodeCustomMenuItemCollection = new(
_component
.Site, _controlHost);
336
_toolStripKeyBoardService ??= (ToolStripKeyboardHandlingService)
_component
.Site.GetService(typeof(ToolStripKeyboardHandlingService));
349
_selectionService ??= (ISelectionService)
_component
.Site?.GetService(typeof(ISelectionService));
359
_behaviorService ??= (BehaviorService)
_component
.Site?.GetService(typeof(BehaviorService));
391
if (
_component
is ToolStrip && SelectionService is not null)
394
ToolStripDesigner designer = _designerHost.GetDesigner(
_component
) as ToolStripDesigner;
399
SelectionService.SetSelectedComponents(new object[] {
_component
});
492
SelectionService.SetSelectedComponents(new object[] {
_component
}, SelectionTypes.Replace);
503
IServiceProvider svcProvider =
_component
.Site;
507
if (
_component
is ToolStripItem currentItem)
658
if (
_component
is ToolStrip strip)
664
if (
_component
is ToolStripDropDownItem stripItem)
761
Type[] supportedTypes = ToolStripDesignerUtils.GetStandardItemTypes(
_component
);
959
if (
_component
.Site.GetService(typeof(ISplitWindowService)) is DesignerFrame designerFrame
1257
ToolStripDesignerUtils.GetCustomNewItemDropDown(_contextMenu,
_component
, null, new EventHandler(AddNewItemClick), false,
_component
.Site);
1275
_component
,
1279
_component
.Site,
1292
_component
,
1296
_component
.Site);
1299
if (
_component
is ToolStrip strip)
1305
if (
_component
is ToolStripDropDownItem stripItem)
1597
_currentItem = owner.
_component
;
1815
if (_owner.
_component
is MenuStrip or ToolStripDropDownItem)