151 references to CommonProperties
System.Windows.Forms (151)
System\Windows\Forms\Control.ControlCollection.cs (1)
385
CommonProperties
.xClearAllPreferredSizeCaches(Owner);
System\Windows\Forms\Control.cs (33)
340
if (DefaultMargin !=
CommonProperties
.DefaultMargin)
345
if (DefaultMinimumSize !=
CommonProperties
.DefaultMinimumSize)
350
if (DefaultMaximumSize !=
CommonProperties
.DefaultMaximumSize)
363
CommonProperties
.xClearPreferredSizeCache(this);
589
[DefaultValue(
CommonProperties
.DefaultAnchor)]
601
[DefaultValue(
CommonProperties
.DefaultAutoSize)]
608
get =>
CommonProperties
.GetAutoSize(this);
616
CommonProperties
.SetAutoSize(this, value);
657
protected void SetAutoSizeMode(AutoSizeMode mode) =>
CommonProperties
.SetAutoSizeMode(this, mode);
659
protected AutoSizeMode GetAutoSizeMode() =>
CommonProperties
.GetAutoSizeMode(this);
1579
protected virtual Padding DefaultMargin =>
CommonProperties
.DefaultMargin;
1581
protected virtual Size DefaultMaximumSize =>
CommonProperties
.DefaultMaximumSize;
1583
protected virtual Size DefaultMinimumSize =>
CommonProperties
.DefaultMinimumSize;
1692
[DefaultValue(
CommonProperties
.DefaultDock)]
2053
return
CommonProperties
.xGetPreferredSizeCache(this);
2064
Size cachedSize =
CommonProperties
.xGetPreferredSizeCache(this);
2092
CommonProperties
.xSetPreferredSizeCache(this, preferredSize);
2102
return
CommonProperties
.GetSpecifiedBounds(this).Size;
2437
get =>
CommonProperties
.GetMargin(this);
2447
CommonProperties
.SetMargin(this, value);
2469
get { return
CommonProperties
.GetMaximumSize(this, DefaultMaximumSize); }
2474
CommonProperties
.ClearMaximumSize(this);
2480
CommonProperties
.SetMaximumSize(this, value);
2491
get { return
CommonProperties
.GetMinimumSize(this, DefaultMinimumSize); }
2497
CommonProperties
.SetMinimumSize(this, value);
3749
get { return
CommonProperties
.GetPadding(this, DefaultPadding); }
3754
CommonProperties
.SetPadding(this, value);
9076
CommonProperties
.ResetPadding(this);
9401
CommonProperties
.xClearPreferredSizeCache(this);
9409
CommonProperties
.xClearPreferredSizeCache(child);
10035
CommonProperties
.UpdateSpecifiedBounds(this, x, y, width, height, specified);
10089
CommonProperties
.xClearPreferredSizeCache(ParentInternal);
10781
CommonProperties
.xClearPreferredSizeCache(this);
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (1)
2688
CommonProperties
.xClearPreferredSizeCache(this);
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (1)
1023
int width =
CommonProperties
.GetSpecifiedBounds(this).Width;
System\Windows\Forms\Controls\Labels\Label.cs (2)
81
CommonProperties
.SetSelfAutoSizeInDefaultLayout(this, true);
665
private bool SelfSizing =>
CommonProperties
.ShouldSelfSize(this);
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (1)
2244
CommonProperties
.xClearPreferredSizeCache(this);
System\Windows\Forms\Controls\PictureBox\PictureBox.cs (2)
436
CommonProperties
.xClearPreferredSizeCache(this);
1036
return
CommonProperties
.GetSpecifiedBounds(this).Size;
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (1)
1375
CommonProperties
.xClearPreferredSizeCache(this);
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (2)
1374
CommonProperties
.xClearPreferredSizeCache(this);
1524
CommonProperties
.xClearPreferredSizeCache(this);
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (9)
201
Rectangle bounds =
CommonProperties
.GetSpecifiedBounds(this);
203
CommonProperties
.UpdateSpecifiedBounds(this, bounds.X, bounds.Y, bounds.Width, bounds.Height, BoundsSpecified.Location);
1975
CommonProperties
.xClearPreferredSizeCache(OverflowButton.DropDown);
1988
CommonProperties
.xClearPreferredSizeCache(this);
2258
CommonProperties
.xClearPreferredSizeCache(this);
2390
CommonProperties
.xClearPreferredSizeCache(toolStrip);
4028
CommonProperties
.SetMinimumSize(this, new Size(-1, -1));
4463
return (
CommonProperties
.GetMinimumSize(this, invalidDefaultSize) != invalidDefaultSize);
4574
Size size =
CommonProperties
.GetSpecifiedBounds(this).Size;
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (3)
43
CommonProperties
.UpdateSpecifiedBounds(c, bounds.X, bounds.Y, bounds.Width, bounds.Height);
364
CommonProperties
.UpdateSpecifiedBounds(_control, specifiedBounds.X, specifiedBounds.Y, specifiedBounds.Width, specifiedBounds.Height);
375
CommonProperties
.UpdateSpecifiedBounds(_control, bounds.X, bounds.Y, bounds.Width, bounds.Height);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (1)
1450
CommonProperties
.xClearPreferredSizeCache(this);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownItem.cs (1)
451
CommonProperties
.xClearPreferredSizeCache(DropDown);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownMenu.cs (1)
579
CommonProperties
.xClearPreferredSizeCache(this);
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (14)
156
CommonProperties
.SetAutoSize(this, true);
340
CommonProperties
.SetAutoSize(this, value);
596
[DefaultValue(
CommonProperties
.DefaultAnchor)]
602
return
CommonProperties
.xGetAnchor(this);
609
CommonProperties
.xSetAnchor(this, value);
622
[DefaultValue(
CommonProperties
.DefaultDock)]
628
return
CommonProperties
.xGetDock(this);
637
CommonProperties
.xSetDock(this, value);
1265
get =>
CommonProperties
.GetMargin(this);
1271
CommonProperties
.SetMargin(this, value);
1513
get =>
CommonProperties
.GetPadding(this, DefaultPadding);
1518
CommonProperties
.SetPadding(this, value);
3281
CommonProperties
.SetMargin(this, DefaultMargin);
3412
CommonProperties
.ResetPadding(this);
System\Windows\Forms\Controls\ToolStrips\ToolStripItemCollection.cs (1)
319
CommonProperties
.xClearPreferredSizeCache(_owner);
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelCell.cs (1)
55
CommonProperties
.SetAutoSize(this, true);
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.cs (5)
58
CommonProperties
.SetAutoSize(this, true);
199
get { return
CommonProperties
.GetMargin(this); }
204
CommonProperties
.SetMargin(this, value);
211
get { return
CommonProperties
.GetPadding(this, DefaultPadding); }
216
CommonProperties
.SetPadding(this, value);
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitStackLayout.cs (1)
205
return
CommonProperties
.GetAutoSize(container);
System\Windows\Forms\Controls\ToolStrips\ToolStripTextBox.cs (1)
92
Rectangle bounds =
CommonProperties
.GetSpecifiedBounds(TextBox);
System\Windows\Forms\Form.cs (3)
504
Size =
CommonProperties
.GetSpecifiedBounds(this).Size;
4459
CommonProperties
.xClearAllPreferredSizeCaches(this);
6126
CommonProperties
.xClearPreferredSizeCache(this);
System\Windows\Forms\Layout\ArrangedElement.cs (4)
71
get { return
CommonProperties
.GetMargin(this); }
77
{
CommonProperties
.SetMargin(this, value); }
83
get { return
CommonProperties
.GetPadding(this, DefaultPadding); }
89
{
CommonProperties
.SetPadding(this, value); }
System\Windows\Forms\Layout\CommonProperties.cs (1)
696
/// <see cref="ScrollableControl"/> checks if the layout bounds has been set in the <see cref="
CommonProperties
"/>
System\Windows\Forms\Layout\Containers\ContainerControl.cs (2)
1053
CommonProperties
.xClearPreferredSizeCache(start);
1376
CommonProperties
.xClearAllPreferredSizeCaches(this);
System\Windows\Forms\Layout\DefaultLayout.cs (33)
30
if (
CommonProperties
.xGetAutoSizedAndAnchored(element))
49
if (
CommonProperties
.GetAutoSizeMode(element) == AutoSizeMode.GrowAndShrink)
84
Debug.Assert(
CommonProperties
.GetAutoSizeMode(element) == AutoSizeMode.GrowAndShrink || (newSize.Height >= oldBounds.Height && newSize.Width >= oldBounds.Width),
101
Debug.Assert(
CommonProperties
.GetAutoSizeMode(element) == AutoSizeMode.GrowAndShrink || newBounds.Contains(oldBounds), "How did we resize in such a way we no longer contain our old bounds?");
353
if (
CommonProperties
.GetAutoSize(container) && ((displayRectangle.Width == 0) || (displayRectangle.Height == 0)))
364
if (!
CommonProperties
.GetNeedsAnchorLayout(element))
392
if (
CommonProperties
.GetNeedsDockLayout(element))
508
else if (dockStyle == DockStyle.Fill &&
CommonProperties
.GetAutoSize(element))
526
if (
CommonProperties
.GetAutoSize(element) && !
CommonProperties
.GetSelfAutoSizeInDefaultLayout(element))
574
if (
CommonProperties
.GetAutoSize(element))
607
return
CommonProperties
.GetAutoSize(container);
616
if (
CommonProperties
.GetNeedsDockAndAnchorLayout(element))
618
if (!dock &&
CommonProperties
.GetNeedsDockLayout(element))
623
if (!anchor &&
CommonProperties
.GetNeedsAnchorLayout(element))
628
if (!autoSize &&
CommonProperties
.xGetAutoSizedAndAnchored(element))
674
containerPadding =
CommonProperties
.GetPadding(container, Padding.Empty);
684
return
CommonProperties
.GetAutoSize(container);
829
if (!
CommonProperties
.GetNeedsAnchorLayout(control))
890
public static AnchorStyles GetAnchor(IArrangedElement element) =>
CommonProperties
.xGetAnchor(element);
897
if (
CommonProperties
.GetNeedsDockLayout(element))
903
CommonProperties
.xSetAnchor(element, value);
905
if (
CommonProperties
.GetNeedsAnchorLayout(element))
931
public static DockStyle GetDock(IArrangedElement element) =>
CommonProperties
.xGetDock(element);
941
bool dockNeedsLayout =
CommonProperties
.GetNeedsDockLayout(element);
942
CommonProperties
.xSetDock(element, value);
953
element.SetBounds(
CommonProperties
.GetSpecifiedBounds(element), BoundsSpecified.None);
956
if (
CommonProperties
.GetNeedsAnchorLayout(element))
965
element.SetBounds(
CommonProperties
.GetSpecifiedBounds(element), BoundsSpecified.All);
1025
if (
CommonProperties
.GetAutoSize(container))
1097
(
CommonProperties
.GetNeedsAnchorLayout(element) || (UseAnchorLayoutV2(element) && ((Control)element)._childControlsNeedAnchorLayout)))
1120
if (!
CommonProperties
.GetNeedsDockLayout(element) && element.ParticipatesInLayout)
1123
Padding margin =
CommonProperties
.GetMargin(element);
System\Windows\Forms\Layout\FlowLayout.cs (4)
19
CommonProperties
.SetLayoutBounds(container, TryCalculatePreferredSize(container, container.DisplayRectangle, measureOnly: false));
20
return
CommonProperties
.GetAutoSize(container);
261
else if (i + 1 < endIndex &&
CommonProperties
.GetFlowBreak(elementProxy.Element))
316
Padding margin =
CommonProperties
.GetMargin(container.Children[0]);
System\Windows\Forms\Layout\FlowLayout.ElementProxy.cs (4)
50
public bool AutoSize =>
CommonProperties
.GetAutoSize(_element!);
67
public virtual Padding Margin =>
CommonProperties
.GetMargin(Element!);
69
public virtual Size MinimumSize =>
CommonProperties
.GetMinimumSize(Element!, Size.Empty);
73
public virtual Size SpecifiedSize =>
CommonProperties
.GetSpecifiedBounds(_element!).Size;
System\Windows\Forms\Layout\LayoutTransaction.cs (6)
39
CommonProperties
.xClearPreferredSizeCache(controlCausingLayout);
49
CommonProperties
.xClearPreferredSizeCache(_controlToLayout);
79
CommonProperties
.xClearPreferredSizeCache(elementCausingLayout);
88
CommonProperties
.xClearPreferredSizeCache(elementCausingLayout);
91
CommonProperties
.xClearPreferredSizeCache(elementToLayout);
108
CommonProperties
.xClearPreferredSizeCache(elementCausingLayout);
System\Windows\Forms\Layout\TableLayout.ContainerInfo.cs (1)
376
Size cachedSize =
CommonProperties
.xGetPreferredSizeCache(Container);
System\Windows\Forms\Layout\TableLayout.cs (7)
119
CommonProperties
.SetLayoutBounds(containerInfo.Container, new Size(SumStrips(containerInfo.Columns, 0, containerInfo.Columns.Length),
122
return
CommonProperties
.GetAutoSize(container);
734
Padding margin =
CommonProperties
.GetMargin(element);
853
Padding margin =
CommonProperties
.GetMargin(element);
865
CommonProperties
.GetAutoSize(element)
867
:
CommonProperties
.GetSpecifiedBounds(element).Size;
1255
Padding elementMargin =
CommonProperties
.GetMargin(element);
System\Windows\Forms\Panels\FlowLayoutSettings.cs (2)
52
CommonProperties
.SetFlowBreak(element, value);
61
return
CommonProperties
.GetFlowBreak(element);
System\Windows\Forms\Scrolling\ScrollableControl.cs (2)
384
if (!defaultLayoutEngine &&
CommonProperties
.HasLayoutBounds(this))
386
Size layoutBounds =
CommonProperties
.GetLayoutBounds(this);