1 write to _toolStripContainer
System.Windows.Forms.Design (1)
System\ComponentModel\Design\ToolStripContainerActionList.cs (1)
24
_toolStripContainer
= toolStripContainer;
22 references to _toolStripContainer
System.Windows.Forms.Design (22)
System\ComponentModel\Design\ToolStripContainerActionList.cs (22)
25
_serviceProvider =
_toolStripContainer
.Site;
91
PropertyDescriptor? dockProperty = TypeDescriptor.GetProperties(
_toolStripContainer
)["Dock"];
92
return dockProperty is null || (DockStyle?)dockProperty.GetValue(
_toolStripContainer
) == DockStyle.Fill;
101
&&
_toolStripContainer
.Parent == root
116
if (_designerHost.RootComponent is Control root &&
_toolStripContainer
.Parent is null)
118
root.Controls.Add(
_toolStripContainer
);
124
PropertyDescriptor? dockProp = TypeDescriptor.GetProperties(
_toolStripContainer
)["Dock"];
125
dockProp?.SetValue(
_toolStripContainer
, DockStyle.Fill);
136
||
_toolStripContainer
.Parent != root
142
Control newParent =
_toolStripContainer
.ContentPanel;
157
if (control ==
_toolStripContainer
|| control is MdiClient)
169
newParent = control is ToolStrip ? GetParent(control) :
_toolStripContainer
.ContentPanel;
221
Control newParent =
_toolStripContainer
.ContentPanel;
224
foreach (Control panel in
_toolStripContainer
.Controls)
241
get => (bool)(GetProperty(
_toolStripContainer
, nameof(ToolStripContainer.TopToolStripPanelVisible)) ?? false);
246
ChangeProperty(
_toolStripContainer
, "TopToolStripPanelVisible", value);
256
get => (bool)(GetProperty(
_toolStripContainer
, nameof(ToolStripContainer.BottomToolStripPanelVisible)) ?? false);
261
ChangeProperty(
_toolStripContainer
, "BottomToolStripPanelVisible", value);
271
get => (bool)(GetProperty(
_toolStripContainer
, nameof(ToolStripContainer.LeftToolStripPanelVisible)) ?? false);
276
ChangeProperty(
_toolStripContainer
, "LeftToolStripPanelVisible", value);
286
get => (bool)(GetProperty(
_toolStripContainer
, nameof(ToolStripContainer.RightToolStripPanelVisible)) ?? false);
291
ChangeProperty(
_toolStripContainer
, "RightToolStripPanelVisible", value);