1 override of ParentInternal
System.Windows.Forms (1)
winforms\Managed\System\WinForms\Form.cs (1)
2249
internal override Control
ParentInternal
{
4 writes to ParentInternal
System.Windows.Forms (4)
winforms\Managed\System\WinForms\Control.cs (1)
3438
ParentInternal
= value;
winforms\Managed\System\WinForms\Form.cs (1)
2257
base.
ParentInternal
= value;
winforms\Managed\System\WinForms\ToolStripPanel.cs (1)
953
toolStripToDrag.
ParentInternal
= this;
winforms\Managed\System\WinForms\ToolStripPanelRow.cs (1)
2228
control.
ParentInternal
= owner.ToolStripPanel;
346 references to ParentInternal
System.Windows.Forms (346)
winforms\Managed\System\WinForms\AxHost.cs (18)
597
if (
ParentInternal
!= null) {
598
ParentInternal
.CreateControl(true);
1878
if (
ParentInternal
!= null) { // ==> we are in a valid state
1891
if ((IsHandleCreated || value) &&
ParentInternal
!= null &&
ParentInternal
.Created) {
2317
return ContainingControl !=
ParentInternal
;
2341
control = control.
ParentInternal
;
2398
Control richParent =
ParentInternal
;
2469
Control parent =
ParentInternal
;
3345
if (
ParentInternal
== null) return;
3346
if (!
ParentInternal
.IsHandleCreated) return;
3347
ShowPropertyPages(
ParentInternal
);
3569
for (Control c = this; c != null; c = c.
ParentInternal
) {
3583
for (Control c = this; c != null; c = c.
ParentInternal
) {
4229
Control parent = host.
ParentInternal
;
4277
lpFrameInfo.hwndFrame = host.
ParentInternal
.Handle;
4447
Control p =
ParentInternal
;
5485
Control p = ctl.
ParentInternal
;
winforms\Managed\System\WinForms\Button.cs (4)
91
if(
ParentInternal
!= null) {
95
if(
ParentInternal
.LayoutEngine == DefaultLayout.Instance) {
96
ParentInternal
.LayoutEngine.InitLayout(this, BoundsSpecified.Size);
98
LayoutTransaction.DoLayout(
ParentInternal
, this, PropertyNames.AutoSize);
winforms\Managed\System\WinForms\ButtonBase.cs (8)
288
LayoutTransaction.DoLayoutIf(AutoSize,
ParentInternal
, this, PropertyNames.FlatStyle);
358
LayoutTransaction.DoLayoutIf(AutoSize,
ParentInternal
, this, PropertyNames.Image);
387
LayoutTransaction.DoLayoutIf(AutoSize,
ParentInternal
, this, PropertyNames.ImageAlign);
668
LayoutTransaction.DoLayoutIf(AutoSize,
ParentInternal
, this, PropertyNames.TextAlign);
694
LayoutTransaction.DoLayoutIf(AutoSize,
ParentInternal
, this, PropertyNames.TextImageRelation);
716
LayoutTransaction.DoLayoutIf(AutoSize,
ParentInternal
, this, PropertyNames.Text);
722
Animate(!DesignMode && Visible && Enabled &&
ParentInternal
!= null);
1056
using(LayoutTransaction.CreateTransactionIf(AutoSize,
ParentInternal
, this, PropertyNames.Text)) {
winforms\Managed\System\WinForms\CheckBox.cs (2)
122
using (LayoutTransaction.CreateTransactionIf(AutoSize, this.
ParentInternal
, this, PropertyNames.Appearance)) {
198
LayoutTransaction.DoLayoutIf(AutoSize,
ParentInternal
, this, PropertyNames.CheckAlign);
winforms\Managed\System\WinForms\ComboBox.cs (3)
2411
using (new LayoutTransaction(
ParentInternal
, this, PropertyNames.Bounds))
3452
if ((DropDownStyle == ComboBoxStyle.Simple) &&
ParentInternal
!= null) {
3455
Control p =
ParentInternal
;
winforms\Managed\System\WinForms\ContainerControl.cs (31)
362
if (
ParentInternal
!= null) {
363
return
ParentInternal
.FindFormInternal();
399
Control parent = this.
ParentInternal
;
498
else if (activeControl == null &&
ParentInternal
!= null)
502
cc =
ParentInternal
.GetContainerControlInternal() as ContainerControl;
529
Control parent = cc.
ParentInternal
;
687
Control parent = cc.
ParentInternal
;
1105
if (!excludedFactor.IsEmpty &&
ParentInternal
!= null) {
1116
ISite parentSite =
ParentInternal
.Site;
1145
group = activeControl.
ParentInternal
;
1218
if (
ParentInternal
== null) {
1327
Control current = ctl.
ParentInternal
;
1329
current = current.
ParentInternal
;
1356
if (
ParentInternal
!= null)
1358
IContainerControl c =
ParentInternal
.GetContainerControlInternal();
1393
if (value != null && value.
ParentInternal
!= null)
1395
cc = (value.
ParentInternal
.GetContainerControlInternal()) as ContainerControl;
1411
while (ccAncestor.
ParentInternal
!= null &&
1412
ccAncestor.
ParentInternal
.GetContainerControlInternal() is ContainerControl)
1414
ccAncestor = ccAncestor.
ParentInternal
.GetContainerControlInternal() as ContainerControl;
1483
Control parent = nextControlDown.
ParentInternal
;
1486
nextControlDown = nextControlDown.
ParentInternal
;
1523
if (!(innerMostFCC.
ParentInternal
!= null && innerMostFCC.
ParentInternal
is MdiClient))
1534
if (innerMostFCC.
ParentInternal
!= null)
1536
ContainerControl cc = (innerMostFCC.
ParentInternal
.GetContainerControlInternal()) as ContainerControl;
1552
pathControl = pathControl.
ParentInternal
;
1666
commonAncestor = commonAncestor.
ParentInternal
;
1819
currentValidatingControl = currentValidatingControl.
ParentInternal
;
1899
if (
ParentInternal
!= null) {
1900
IContainerControl c =
ParentInternal
.GetContainerControlInternal();
winforms\Managed\System\WinForms\Control.cs (85)
938
DefaultLayout.SetAnchor(
ParentInternal
, this, value);
955
if(
ParentInternal
!= null) {
959
if(value &&
ParentInternal
.LayoutEngine == DefaultLayout.Instance) {
960
ParentInternal
.LayoutEngine.InitLayout(this, BoundsSpecified.Size);
962
LayoutTransaction.DoLayout(
ParentInternal
, this, PropertyNames.AutoSize);
1088
Control p =
ParentInternal
;
1287
Control p =
ParentInternal
;
1938
Control parent = container.
ParentInternal
;
1969
Control parent = this.
ParentInternal
;
2058
Control p =
ParentInternal
;
2255
Control control =
ParentInternal
;
2263
control = control.
ParentInternal
;
2433
else if (
ParentInternal
== null)
2436
return
ParentInternal
.Enabled;
2566
using(new LayoutTransaction(
ParentInternal
, this, PropertyNames.Font)) {
2685
if (
ParentInternal
!= null &&
ParentInternal
.CanAccessProperties) {
2686
localFontHeight =
ParentInternal
.FontHeight;
2718
Control p =
ParentInternal
;
2767
if (
ParentInternal
!= null &&
ParentInternal
.CanAccessProperties)
2768
return
ParentInternal
.Font;
2993
Control parent =
ParentInternal
;
2995
while (parent.
ParentInternal
!= null ) {
2996
parent = parent.
ParentInternal
;
3435
return
ParentInternal
;
3750
Control parent =
ParentInternal
;
4064
for( Control ctl = this; ctl != null; ctl = ctl.
ParentInternal
) {
4134
control = control.
ParentInternal
;
4144
while (control.
ParentInternal
!= null) {
4145
control = control.
ParentInternal
;
4336
LayoutTransaction.DoLayoutIf(AutoSize,
ParentInternal
, this, PropertyNames.UseCompatibleTextRendering);
4778
using (new LayoutTransaction(
ParentInternal
, this, PropertyNames.Padding)) {
5534
if (
ParentInternal
!= null)
ParentInternal
.LayoutEngine.InitLayout(this, BoundsSpecified.All);
5665
for (Control ctl = bottom; ctl != null; ctl = ctl.
ParentInternal
) {
5708
ctl = ctl.
ParentInternal
;
5839
LayoutTransaction.DoLayout(
ParentInternal
, this, PropertyNames.Bounds);
5852
if (Properties.GetObject(PropBindingManager) == null &&
ParentInternal
!= null && !controlIsAlreadyCreated) {
6267
cur = cur.
ParentInternal
;
6285
Control p = c.
ParentInternal
;
6372
if (Focused && this.
ParentInternal
!= null) {
6373
IContainerControl c = this.
ParentInternal
.GetContainerControlInternal();
6548
c = c.
ParentInternal
;
6551
c = c.
ParentInternal
;
6654
else if (
ParentInternal
== null)
6657
return
ParentInternal
.GetVisibleCore();
7562
control = control.
ParentInternal
;
8089
if (
ParentInternal
!= null) {
8090
ParentInternal
.OnChildLayoutResuming(child, performLayout);
8402
Control parent =
ParentInternal
;
8413
if (ReflectParent ==
ParentInternal
) {
9048
if (
ParentInternal
!= null) {
9049
ParentInternal
.OnHelpRequested(hevent);
9138
if(parentRequiresLayout &&
ParentInternal
!= null) {
9143
ParentInternal
.SetState(STATE_LAYOUTISDIRTY, true);
9155
if (
ParentInternal
!= null) {
9156
ParentInternal
.OnChildLayoutResuming(this, performLayout);
9769
Control parent = this.
ParentInternal
;
9888
for (Control c = this.
ParentInternal
; c != null; c = c.
ParentInternal
) {
9984
if(
ParentInternal
!= null &&
ParentInternal
.GetState(STATE_LAYOUTISDIRTY)) {
9985
LayoutTransaction.DoLayout(
ParentInternal
, this, PropertyNames.PreferredSize);
11556
if (DpiHelper.EnableAnchorLayoutHighDpiImprovements && (
ParentInternal
!= null) && (
ParentInternal
.LayoutEngine == DefaultLayout.Instance)) {
11713
if (ContainsFocus &&
ParentInternal
!= null) {
11714
IContainerControl c =
ParentInternal
.GetContainerControlInternal();
11810
LayoutTransaction.DoLayout(
ParentInternal
, this, PropertyNames.Bounds);
11834
LayoutTransaction.DoLayout(
ParentInternal
, this, PropertyNames.Bounds);
11863
if (
ParentInternal
!= null) {
11867
ParentInternal
.SuspendLayout();
11914
if (
ParentInternal
!= null) {
11919
CommonProperties.xClearPreferredSizeCache(
ParentInternal
);
11925
ParentInternal
.LayoutEngine.InitLayout(this, specified);
11926
ParentInternal
.ResumeLayout( /* performLayout = */ true );
12598
LayoutTransaction.DoLayout(
ParentInternal
, this, PropertyNames.Bounds);
12794
if (
ParentInternal
!= null) {
13960
if (
ParentInternal
!= null) {
13961
parentVisible =
ParentInternal
.Visible;
14472
return
ParentInternal
;
15035
if (value.
ParentInternal
== owner) {
16157
Control controlParent = this.
ParentInternal
;
19525
Control parentControl = ownerControl.
ParentInternal
;
19782
Control parent = Owner.
ParentInternal
;
winforms\Managed\System\WinForms\Control.Ime.cs (1)
114
Control parent =
ParentInternal
;
winforms\Managed\System\WinForms\DataGrid.cs (1)
1615
if (this.ContainsFocus && this.
ParentInternal
== null) {
winforms\Managed\System\WinForms\DataGridTextBoxColumn.cs (4)
144
if (edit.
ParentInternal
!= null) {
145
edit.
ParentInternal
.Controls.Remove(edit);
628
if (edit.
ParentInternal
!= null) {
629
edit.
ParentInternal
.Controls.Remove(edit);
winforms\Managed\System\WinForms\DataGridView.cs (5)
1420
using (LayoutTransaction.CreateTransactionIf(this.AutoSize, this.
ParentInternal
, this, PropertyNames.BorderStyle))
2137
using (LayoutTransaction.CreateTransactionIf(this.AutoSize, this.
ParentInternal
, this, PropertyNames.ColumnHeadersVisible))
4276
using (LayoutTransaction.CreateTransactionIf(this.AutoSize, this.
ParentInternal
, this, PropertyNames.RowHeadersVisible))
4330
using (LayoutTransaction.CreateTransactionIf(this.AutoSize, this.
ParentInternal
, this, PropertyNames.RowHeadersWidth))
4576
using (LayoutTransaction.CreateTransactionIf(this.AutoSize, this.
ParentInternal
, this, PropertyNames.ScrollBars))
winforms\Managed\System\WinForms\DataGridViewCell.cs (12)
1316
if (dgv.EditingControl.
ParentInternal
!= null)
1333
Debug.Assert(dgv.EditingControl.
ParentInternal
== dgv.EditingPanel);
1336
Debug.Assert(dgv.EditingControl.
ParentInternal
== null);
1356
if (dgv.EditingPanel.
ParentInternal
!= null)
1358
Debug.Assert(dgv.EditingPanel.
ParentInternal
== dgv);
1361
Debug.Assert(dgv.EditingPanel.
ParentInternal
== null);
1364
Debug.Assert(dgv.EditingControl.
ParentInternal
== null);
1365
Debug.Assert(dgv.EditingPanel.
ParentInternal
== null);
2730
if (dgv.EditingControl.
ParentInternal
== null)
2738
Debug.Assert(dgv.EditingPanel.
ParentInternal
== null);
2743
Debug.Assert(dgv.EditingControl.
ParentInternal
== dgv.EditingPanel);
2744
Debug.Assert(dgv.EditingPanel.
ParentInternal
== dgv);
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (2)
1524
if (comboBox.
ParentInternal
!= null)
1526
h = comboBox.
ParentInternal
.Handle;
winforms\Managed\System\WinForms\DataGridViewMethods.cs (7)
13752
LayoutTransaction.DoLayout(this.
ParentInternal
, this, PropertyNames.Columns);
14987
LayoutTransaction.DoLayout(this.
ParentInternal
, this, PropertyNames.Columns);
18003
LayoutTransaction.DoLayout(this.
ParentInternal
, this, PropertyNames.Rows);
26801
using (LayoutTransaction.CreateTransactionIf(this.AutoSize, this.
ParentInternal
, this, PropertyNames.ColumnHeadersHeight))
29051
LayoutTransaction.DoLayout(this.
ParentInternal
, this, PropertyNames.Rows);
29095
LayoutTransaction.DoLayout(this.
ParentInternal
, this, PropertyNames.Rows);
29112
LayoutTransaction.DoLayout(this.
ParentInternal
, this, PropertyNames.Rows);
winforms\Managed\System\WinForms\ErrorProvider.cs (2)
1589
control.Visible && control.
ParentInternal
!= null &&
1591
window = provider.EnsureErrorWindow(control.
ParentInternal
);
winforms\Managed\System\WinForms\FlatButtonAppearance.cs (2)
55
if (owner != null && owner.
ParentInternal
!= null) {
56
LayoutTransaction.DoLayoutIf(owner.AutoSize, owner.
ParentInternal
, owner, PropertyNames.FlatAppearanceBorderSize);
winforms\Managed\System\WinForms\Form.cs (2)
2251
return base.
ParentInternal
;
3777
if (ctlClient != null && ctlClient.IsHandleCreated && ctlClient.
ParentInternal
== this){
winforms\Managed\System\WinForms\GroupBox.cs (4)
137
if(
ParentInternal
!= null) {
141
if(
ParentInternal
.LayoutEngine == DefaultLayout.Instance) {
142
ParentInternal
.LayoutEngine.InitLayout(this, BoundsSpecified.Size);
144
LayoutTransaction.DoLayout(
ParentInternal
, this, PropertyNames.AutoSize);
winforms\Managed\System\WinForms\Label.cs (10)
196
if (
ParentInternal
!= null) {
197
LayoutTransaction.DoLayoutIf(AutoSize,
ParentInternal
, this, PropertyNames.AutoEllipsis);
293
if (
ParentInternal
!= null) {
294
LayoutTransaction.DoLayoutIf(AutoSize,
ParentInternal
, this, PropertyNames.BorderStyle);
431
LayoutTransaction.DoLayoutIf(AutoSize,
ParentInternal
, this, PropertyNames.BorderStyle);
665
LayoutTransaction.DoLayoutIf(AutoSize,
ParentInternal
, this, PropertyNames.ImageAlign);
999
using (LayoutTransaction.CreateTransactionIf(AutoSize,
ParentInternal
, this, PropertyNames.Text)) {
1056
Animate(!DesignMode && Visible && Enabled &&
ParentInternal
!= null);
1481
using(LayoutTransaction.CreateTransactionIf(AutoSize,
ParentInternal
, this, PropertyNames.Text)) {
1643
Control parent =
ParentInternal
;
winforms\Managed\System\WinForms\Layout\TableLayout.cs (4)
708
if (tlp != null && tlp.
ParentInternal
!= null && tlp.
ParentInternal
.LayoutEngine == DefaultLayout.Instance) {
818
if (tlp != null && tlp.
ParentInternal
!= null && tlp.
ParentInternal
.LayoutEngine == DefaultLayout.Instance) {
winforms\Managed\System\WinForms\LinkLabel.cs (4)
264
LayoutTransaction.DoLayout(
ParentInternal
, this, PropertyNames.LinkArea);
2156
LayoutTransaction.DoLayout(this.owner.
ParentInternal
, this.owner, PropertyNames.Links);
2296
LayoutTransaction.DoLayout(this.owner.
ParentInternal
, this.owner, PropertyNames.Links);
2338
LayoutTransaction.DoLayout(this.owner.
ParentInternal
, this.owner, PropertyNames.Links);
winforms\Managed\System\WinForms\ListBox.cs (2)
451
LayoutTransaction.DoLayoutIf(AutoSize, this.
ParentInternal
, this, PropertyNames.DrawMode);
1857
if (this.
ParentInternal
!= null) {
winforms\Managed\System\WinForms\MDIClient.cs (20)
66
if (result == null &&
ParentInternal
!= null)
67
result =
ParentInternal
.BackgroundImage;
84
if (backgroundImage != null &&
ParentInternal
!= null)
87
if (imageLayout !=
ParentInternal
.BackgroundImageLayout)
90
return
ParentInternal
.BackgroundImageLayout;
121
ISite site = (
ParentInternal
== null) ? null :
ParentInternal
.Site;
127
if (this.RightToLeft == RightToLeft.Yes && this.
ParentInternal
!= null && this.
ParentInternal
.IsMirrored) {
191
ISite site = (
ParentInternal
== null) ? null :
ParentInternal
.Site;
238
ISite site = (
ParentInternal
== null) ? null :
ParentInternal
.Site;
356
if (
ParentInternal
!= null &&
ParentInternal
.Site != null &&
ParentInternal
.Site.DesignMode && Handle != IntPtr.Zero) {
362
InvokeGotFocus(
ParentInternal
, EventArgs.Empty);
364
if (
ParentInternal
is Form) {
365
childForm = ((Form)
ParentInternal
).ActiveMdiChildInternal;
381
InvokeLostFocus(
ParentInternal
, EventArgs.Empty);
winforms\Managed\System\WinForms\Panel.cs (4)
108
if(
ParentInternal
!= null) {
112
if(
ParentInternal
.LayoutEngine == DefaultLayout.Instance) {
113
ParentInternal
.LayoutEngine.InitLayout(this, BoundsSpecified.Size);
115
LayoutTransaction.DoLayout(
ParentInternal
, this, PropertyNames.AutoSize);
winforms\Managed\System\WinForms\PictureBox.cs (1)
1166
Animate(!DesignMode && Visible && Enabled &&
ParentInternal
!= null);
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (13)
2301
Control cParent = c.
ParentInternal
;
2307
cParent = cParent.
ParentInternal
;
2333
Control parent1 = c1.
ParentInternal
;
2334
Control parent2 = c2.
ParentInternal
;
2340
parent2 = parent2.
ParentInternal
;
3673
if (this.Disposing || this.
ParentInternal
== null || this.
ParentInternal
.Disposing) {
3690
if (this.Disposing || this.
ParentInternal
== null || this.
ParentInternal
.Disposing) {
3694
if (this.Visible && this.
ParentInternal
!= null) {
4920
while (topControl.
ParentInternal
!= null) {
4921
topControl = topControl.
ParentInternal
;
5503
cp.Parent = gridView.
ParentInternal
.Handle;
winforms\Managed\System\WinForms\RadioButton.cs (3)
135
using (LayoutTransaction.CreateTransactionIf(AutoSize, this.
ParentInternal
, this, PropertyNames.Appearance)) {
501
Control parent =
ParentInternal
;
525
Control parent =
ParentInternal
;
winforms\Managed\System\WinForms\RichTextBox.cs (2)
805
using (LayoutTransaction.CreateTransactionIf(AutoSize,
ParentInternal
, this, PropertyNames.ScrollBars)) {
1471
using(LayoutTransaction.CreateTransactionIf(AutoSize,
ParentInternal
, this, PropertyNames.Text)) {
winforms\Managed\System\WinForms\ScrollableControl.cs (2)
952
if (activeControl.
ParentInternal
!= this) {
954
bounds = this.RectangleToClient(activeControl.
ParentInternal
.RectangleToScreen(bounds));
winforms\Managed\System\WinForms\SplitContainer.cs (20)
372
if (this.
ParentInternal
!= null) {
373
if (this.
ParentInternal
is SplitterPanel) {
374
SplitContainer sc = (SplitContainer)((SplitterPanel)this.
ParentInternal
).Owner;
441
if (this.
ParentInternal
!= null) {
442
if (this.
ParentInternal
is SplitterPanel) {
443
SplitContainer sc = (SplitContainer)((SplitterPanel)this.
ParentInternal
).Owner;
1322
IContainerControl c = this.
ParentInternal
.GetContainerControlInternal();
1693
group = ActiveControl.
ParentInternal
;
1921
Control parent = this.
ParentInternal
;
1924
if (parent.SelectNextControl(this, forward, true, true, parent.
ParentInternal
== null)) {
1927
parent = parent.
ParentInternal
;
1942
if (!Contains(ctl) || !nested && ctl.
ParentInternal
!= this) ctl = null;
1956
if (!forward && firstPanel != null && ctl.
ParentInternal
!= firstPanel) {
1981
IContainerControl c = this.
ParentInternal
.GetContainerControlInternal();
2002
Control parent = this.
ParentInternal
;
2028
if (!Contains(ctl) || !nested && ctl.
ParentInternal
!= this) ctl = null;
2064
if (ctl == null || !(ctl.
ParentInternal
.Visible)) {
2081
if (container.
ParentInternal
!= null)
2083
IContainerControl c = container.
ParentInternal
.GetContainerControlInternal();
2464
IContainerControl c = this.
ParentInternal
.GetContainerControlInternal();
winforms\Managed\System\WinForms\Splitter.cs (8)
728
Control parent =
ParentInternal
;
772
IntPtr parentHandle =
ParentInternal
.Handle;
773
IntPtr dc = UnsafeNativeMethods.GetDCEx(new HandleRef(
ParentInternal
, parentHandle), NativeMethods.NullHandleRef, NativeMethods.DCX_CACHE | NativeMethods.DCX_LOCKWINDOWUPDATE);
775
IntPtr saveBrush = SafeNativeMethods.SelectObject(new HandleRef(
ParentInternal
, dc), new HandleRef(null, halftone));
776
SafeNativeMethods.PatBlt(new HandleRef(
ParentInternal
, dc), r.X, r.Y, r.Width, r.Height, NativeMethods.PATINVERT);
777
SafeNativeMethods.SelectObject(new HandleRef(
ParentInternal
, dc), new HandleRef(null, saveBrush));
779
UnsafeNativeMethods.ReleaseDC(new HandleRef(
ParentInternal
, parentHandle), new HandleRef(null, dc));
804
Control parent =
ParentInternal
;
winforms\Managed\System\WinForms\StatusBar.cs (1)
1111
Control parent =
ParentInternal
;
winforms\Managed\System\WinForms\TabPage.cs (9)
125
TabControl parent =
ParentInternal
as TabControl;
194
TabControl parent =
ParentInternal
as TabControl;
225
TabControl parent =
ParentInternal
as TabControl;
552
c = c.
ParentInternal
;
653
TabControl parent =
ParentInternal
as TabControl;
679
TabControl parent =
ParentInternal
as TabControl;
700
TabControl parent =
ParentInternal
as TabControl;
740
Control parent =
ParentInternal
;
775
TabControl parent =
ParentInternal
as TabControl;
winforms\Managed\System\WinForms\TextBoxBase.cs (3)
408
using(LayoutTransaction.CreateTransactionIf(AutoSize,
ParentInternal
, this, PropertyNames.BorderStyle)) {
845
using (LayoutTransaction.CreateTransactionIf(AutoSize,
ParentInternal
, this, PropertyNames.Multiline)) {
1353
using (LayoutTransaction.CreateTransactionIf(AutoSize,
ParentInternal
, this, PropertyNames.WordWrap)) {
winforms\Managed\System\WinForms\ToolStrip.cs (12)
483
Control p =
ParentInternal
;
704
DockStyle actualDock = (
ParentInternal
!= null) ?
ParentInternal
.Dock : DockStyle.Left;
722
if (IsInToolStripPanel &&
ParentInternal
!= null) {
723
dock =
ParentInternal
.Dock; // we want the orientation of the ToolStripPanel;
768
using (new LayoutTransaction(this.
ParentInternal
, this, PropertyNames.Dock)) {
3250
Debug.Assert(this.
ParentInternal
as ToolStripPanel != null, "Why is our parent not a toolstrip panel?");
3261
Debug.Assert(this.
ParentInternal
as ToolStripPanel != null, "Why is our parent not a toolstrip panel?");
4242
if (
ParentInternal
!= null) {
4243
IContainerControl c =
ParentInternal
.GetContainerControlInternal();
4657
if (this.
ParentInternal
!= null) {
4658
LayoutTransaction.DoLayout(this.
ParentInternal
, this, PropertyNames.Orientation);
winforms\Managed\System\WinForms\ToolStripContentPanel.cs (2)
118
if (this.
ParentInternal
is ToolStripContainer && value == Color.Transparent) {
119
this.
ParentInternal
.BackColor = Color.Transparent;
winforms\Managed\System\WinForms\ToolStripControlHost.cs (1)
851
= GetControlCollection(Control.
ParentInternal
as ToolStrip);
winforms\Managed\System\WinForms\ToolStripDropDown.cs (2)
1224
if ((ownerItem != null) && (ownerItem is ToolStripDropDownItem) && (
ParentInternal
!= null)) {
1225
parentClientPoint =
ParentInternal
.PointToClient(((ToolStripDropDownItem)ownerItem).DropDownLocation);
winforms\Managed\System\WinForms\ToolStripManager.cs (2)
334
if (start == null || start.
ParentInternal
== null) {
1577
activeControlInChain = activeControlInChain.
ParentInternal
;
winforms\Managed\System\WinForms\ToolStripOverflow.cs (1)
82
get { return
ParentInternal
; }
winforms\Managed\System\WinForms\ToolStripPanel.cs (4)
552
if (e.AffectedComponent !=
ParentInternal
&& e.AffectedComponent as Control != null) {
1207
if (
ParentInternal
!= null) {
1209
bounds.Width =
ParentInternal
.DisplayRectangle.Width;
1212
bounds.Height =
ParentInternal
.DisplayRectangle.Height;
winforms\Managed\System\WinForms\ToolStripPanelCell.cs (1)
111
if (Control != null && Control.
ParentInternal
== ToolStripPanelRow.ToolStripPanel) {
winforms\Managed\System\WinForms\ToolStripPanelRow.cs (6)
942
if ((!ToolStripPanel.Visible || LayoutUtils.IsZeroWidthOrHeight(raftingDisplayRectangle)) && (ToolStripPanel.
ParentInternal
!= null)){
945
displayRect.Width = ToolStripPanel.
ParentInternal
.DisplayRectangle.Width - (ToolStripPanel.Margin.Horizontal + ToolStripPanel.Padding.Horizontal) - Row.Margin.Horizontal;
1453
if ((!ToolStripPanel.Visible || LayoutUtils.IsZeroWidthOrHeight(raftingDisplayRectangle)) && (ToolStripPanel.
ParentInternal
!= null)){
1455
displayRect.Height = ToolStripPanel.
ParentInternal
.DisplayRectangle.Height - (ToolStripPanel.Margin.Vertical + ToolStripPanel.Padding.Vertical) - Row.Margin.Vertical;
2215
if (ToolStripPanel != null && ToolStripPanel.
ParentInternal
!= null) {
2216
layoutTransaction = new LayoutTransaction(ToolStripPanel, ToolStripPanel.
ParentInternal
, PropertyNames.Parent);
winforms\Managed\System\WinForms\ToolStripProfessionalRenderer.cs (2)
737
if (toolStrip.
ParentInternal
!= null) {
981
Control parent = control.
ParentInternal
;
winforms\Managed\System\WinForms\ToolTip.cs (4)
609
if (ctl != null && ctl.
ParentInternal
!= null) {
610
while (ctl.
ParentInternal
!= null) {
611
ctl = ctl.
ParentInternal
;
1313
current = current.
ParentInternal
;
winforms\Managed\System\WinForms\UpDownBase.cs (2)
1826
return Owner.
ParentInternal
.GetType().Name;
1919
return (((UpDownButtons)parent.Owner).
ParentInternal
).RectangleToScreen(bounds);
winforms\Managed\System\WinForms\UserControl.cs (2)
107
Control toLayout = DesignMode ||
ParentInternal
== null ? this :
ParentInternal
;
winforms\Managed\System\WinForms\WebBrowser.cs (2)
1512
if (this.
ParentInternal
!= null) {
1513
this.
ParentInternal
.Controls.Remove(this);
winforms\Managed\System\WinForms\WebBrowserBase.cs (2)
529
Control parent =
ParentInternal
;
1220
for (Control control = this; control != null; control = control.
ParentInternal
) {
winforms\Managed\System\WinForms\WebBrowserSiteBase.cs (2)
317
lpFrameInfo.hwndFrame = (this.Host.
ParentInternal
== null) ? IntPtr.Zero : this.Host.
ParentInternal
.Handle;