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)
177
IMenuCommandService menuService = (IMenuCommandService)
_component
.Site.GetService(typeof(IMenuCommandService));
201
IEventHandlerService ehs = (IEventHandlerService)
_component
.Site.GetService(typeof(IEventHandlerService));
212
IMenuCommandService menuService = (IMenuCommandService)
_component
.Site.GetService(typeof(IMenuCommandService));
232
IEventHandlerService ehs = (IEventHandlerService)
_component
.Site.GetService(typeof(IEventHandlerService));
274
BaseContextMenuStrip templateNodeContextMenu = new(
_component
.Site)
282
TemplateNodeCustomMenuItemCollection templateNodeCustomMenuItemCollection = new(
_component
.Site, _controlHost);
345
_toolStripKeyBoardService ??= (ToolStripKeyboardHandlingService)
_component
.Site.GetService(typeof(ToolStripKeyboardHandlingService));
358
_selectionService ??= (ISelectionService)
_component
.Site.GetService(typeof(ISelectionService));
368
_behaviorService ??= (BehaviorService)
_component
.Site.GetService(typeof(BehaviorService));
403
if (
_component
is ToolStrip && SelectionService is not null)
406
ToolStripDesigner designer = _designerHost.GetDesigner(
_component
) as ToolStripDesigner;
414
SelectionService.SetSelectedComponents(new object[] {
_component
});
522
SelectionService.SetSelectedComponents(new object[] {
_component
}, SelectionTypes.Replace);
533
IServiceProvider svcProvider =
_component
.Site;
537
if (
_component
is ToolStripItem currentItem)
688
if (
_component
is ToolStrip strip)
694
if (
_component
is ToolStripDropDownItem stripItem)
791
Type[] supportedTypes = ToolStripDesignerUtils.GetStandardItemTypes(
_component
);
992
if (
_component
.Site.GetService(typeof(ISplitWindowService)) is DesignerFrame designerFrame
1296
ToolStripDesignerUtils.GetCustomNewItemDropDown(_contextMenu,
_component
, null, new EventHandler(AddNewItemClick), false,
_component
.Site);
1314
_component
,
1318
_component
.Site,
1331
_component
,
1335
_component
.Site);
1338
if (
_component
is ToolStrip strip)
1344
if (
_component
is ToolStripDropDownItem stripItem)
1636
_currentItem = owner.
_component
;
1854
if (_owner.
_component
is MenuStrip or ToolStripDropDownItem)