150 references to CommonProperties
System.Windows.Forms (150)
System\Windows\Forms\Control.ControlCollection.cs (1)
385
CommonProperties
.xClearAllPreferredSizeCaches(Owner);
System\Windows\Forms\Control.cs (33)
341
if (DefaultMargin !=
CommonProperties
.DefaultMargin)
346
if (DefaultMinimumSize !=
CommonProperties
.DefaultMinimumSize)
351
if (DefaultMaximumSize !=
CommonProperties
.DefaultMaximumSize)
364
CommonProperties
.xClearPreferredSizeCache(this);
590
[DefaultValue(
CommonProperties
.DefaultAnchor)]
602
[DefaultValue(
CommonProperties
.DefaultAutoSize)]
609
get =>
CommonProperties
.GetAutoSize(this);
617
CommonProperties
.SetAutoSize(this, value);
658
protected void SetAutoSizeMode(AutoSizeMode mode) =>
CommonProperties
.SetAutoSizeMode(this, mode);
660
protected AutoSizeMode GetAutoSizeMode() =>
CommonProperties
.GetAutoSizeMode(this);
1580
protected virtual Padding DefaultMargin =>
CommonProperties
.DefaultMargin;
1582
protected virtual Size DefaultMaximumSize =>
CommonProperties
.DefaultMaximumSize;
1584
protected virtual Size DefaultMinimumSize =>
CommonProperties
.DefaultMinimumSize;
1693
[DefaultValue(
CommonProperties
.DefaultDock)]
2054
return
CommonProperties
.xGetPreferredSizeCache(this);
2065
Size cachedSize =
CommonProperties
.xGetPreferredSizeCache(this);
2093
CommonProperties
.xSetPreferredSizeCache(this, preferredSize);
2103
return
CommonProperties
.GetSpecifiedBounds(this).Size;
2438
get =>
CommonProperties
.GetMargin(this);
2448
CommonProperties
.SetMargin(this, value);
2470
get { return
CommonProperties
.GetMaximumSize(this, DefaultMaximumSize); }
2475
CommonProperties
.ClearMaximumSize(this);
2481
CommonProperties
.SetMaximumSize(this, value);
2492
get { return
CommonProperties
.GetMinimumSize(this, DefaultMinimumSize); }
2498
CommonProperties
.SetMinimumSize(this, value);
3750
get { return
CommonProperties
.GetPadding(this, DefaultPadding); }
3755
CommonProperties
.SetPadding(this, value);
9117
CommonProperties
.ResetPadding(this);
9442
CommonProperties
.xClearPreferredSizeCache(this);
9450
CommonProperties
.xClearPreferredSizeCache(child);
10068
CommonProperties
.UpdateSpecifiedBounds(this, x, y, width, height, specified);
10122
CommonProperties
.xClearPreferredSizeCache(ParentInternal);
10814
CommonProperties
.xClearPreferredSizeCache(this);
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (1)
2689
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)
1366
CommonProperties
.xClearPreferredSizeCache(this);
1516
CommonProperties
.xClearPreferredSizeCache(this);
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (8)
200
Rectangle bounds =
CommonProperties
.GetSpecifiedBounds(this);
202
CommonProperties
.UpdateSpecifiedBounds(this, bounds.X, bounds.Y, bounds.Width, bounds.Height, BoundsSpecified.Location);
1973
CommonProperties
.xClearPreferredSizeCache(OverflowButton.DropDown);
1986
CommonProperties
.xClearPreferredSizeCache(this);
2256
CommonProperties
.xClearPreferredSizeCache(this);
2388
CommonProperties
.xClearPreferredSizeCache(toolStrip);
4026
CommonProperties
.SetMinimumSize(this, new Size(-1, -1));
4463
return (
CommonProperties
.GetMinimumSize(this, invalidDefaultSize) != invalidDefaultSize);
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)
1447
CommonProperties
.xClearPreferredSizeCache(this);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownItem.cs (1)
451
CommonProperties
.xClearPreferredSizeCache(DropDown);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownMenu.cs (1)
575
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);
3273
CommonProperties
.SetMargin(this, DefaultMargin);
3404
CommonProperties
.ResetPadding(this);
System\Windows\Forms\Controls\ToolStrips\ToolStripItemCollection.cs (1)
326
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)
691
/// <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);
262
else if (i + 1 < endIndex &&
CommonProperties
.GetFlowBreak(elementProxy.Element))
317
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);
736
Padding margin =
CommonProperties
.GetMargin(element);
855
Padding margin =
CommonProperties
.GetMargin(element);
867
CommonProperties
.GetAutoSize(element)
869
:
CommonProperties
.GetSpecifiedBounds(element).Size;
1254
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);