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)
168
IMenuCommandService menuService = (IMenuCommandService)
_component
.Site.GetService(typeof(IMenuCommandService));
192
IEventHandlerService ehs = (IEventHandlerService)
_component
.Site.GetService(typeof(IEventHandlerService));
200
IMenuCommandService menuService = (IMenuCommandService)
_component
.Site.GetService(typeof(IMenuCommandService));
220
IEventHandlerService ehs = (IEventHandlerService)
_component
.Site.GetService(typeof(IEventHandlerService));
262
BaseContextMenuStrip templateNodeContextMenu = new(
_component
.Site)
270
TemplateNodeCustomMenuItemCollection templateNodeCustomMenuItemCollection = new(
_component
.Site, _controlHost);
333
_toolStripKeyBoardService ??= (ToolStripKeyboardHandlingService)
_component
.Site.GetService(typeof(ToolStripKeyboardHandlingService));
346
_selectionService ??= (ISelectionService)
_component
.Site?.GetService(typeof(ISelectionService));
356
_behaviorService ??= (BehaviorService)
_component
.Site?.GetService(typeof(BehaviorService));
388
if (
_component
is ToolStrip && SelectionService is not null)
391
ToolStripDesigner designer = _designerHost.GetDesigner(
_component
) as ToolStripDesigner;
396
SelectionService.SetSelectedComponents(new object[] {
_component
});
489
SelectionService.SetSelectedComponents(new object[] {
_component
}, SelectionTypes.Replace);
500
IServiceProvider svcProvider =
_component
.Site;
504
if (
_component
is ToolStripItem currentItem)
652
if (
_component
is ToolStrip strip)
658
if (
_component
is ToolStripDropDownItem stripItem)
752
Type[] supportedTypes = ToolStripDesignerUtils.GetStandardItemTypes(
_component
);
950
if (
_component
.Site.GetService(typeof(ISplitWindowService)) is DesignerFrame designerFrame
1248
ToolStripDesignerUtils.GetCustomNewItemDropDown(_contextMenu,
_component
, null, new EventHandler(AddNewItemClick), false,
_component
.Site);
1266
_component
,
1270
_component
.Site,
1283
_component
,
1287
_component
.Site);
1290
if (
_component
is ToolStrip strip)
1296
if (
_component
is ToolStripDropDownItem stripItem)
1588
_currentItem = owner.
_component
;
1806
if (_owner.
_component
is MenuStrip or ToolStripDropDownItem)