147 references to CommonProperties
System.Windows.Forms (147)
winforms\Managed\System\WinForms\ArrangedElement.cs (4)
74
get { return
CommonProperties
.GetMargin(this); }
79
if (Margin != value ) {
CommonProperties
.SetMargin(this, value); }
85
get { return
CommonProperties
.GetPadding(this, DefaultPadding); }
89
if (Padding != value) {
CommonProperties
.SetPadding(this, value); }
winforms\Managed\System\WinForms\ComboBox.cs (1)
2786
CommonProperties
.xClearPreferredSizeCache(this);
winforms\Managed\System\WinForms\ContainerControl.cs (1)
1051
CommonProperties
.xClearPreferredSizeCache(start);
winforms\Managed\System\WinForms\Control.cs (34)
519
if(DefaultMargin !=
CommonProperties
.DefaultMargin) {
522
if(DefaultMinimumSize !=
CommonProperties
.DefaultMinimumSize) {
525
if(DefaultMaximumSize !=
CommonProperties
.DefaultMaximumSize) {
538
CommonProperties
.xClearPreferredSizeCache(this);
929
DefaultValue(
CommonProperties
.DefaultAnchor),
946
[DefaultValue(
CommonProperties
.DefaultAutoSize)]
951
get { return
CommonProperties
.GetAutoSize(this); }
954
CommonProperties
.SetAutoSize(this, value);
1007
CommonProperties
.SetAutoSizeMode(this, mode);
1011
return
CommonProperties
.GetAutoSizeMode(this);
2190
get { return
CommonProperties
.DefaultMargin; }
2195
get { return
CommonProperties
.DefaultMaximumSize; }
2200
get { return
CommonProperties
.DefaultMinimumSize; }
2345
DefaultValue(
CommonProperties
.DefaultDock),
2781
prefSize =
CommonProperties
.xGetPreferredSizeCache(this);
2791
Size cachedSize =
CommonProperties
.xGetPreferredSizeCache(this);
2831
CommonProperties
.xSetPreferredSizeCache(this, prefSize);
2840
return
CommonProperties
.GetSpecifiedBounds(this).Size;
3262
get { return
CommonProperties
.GetMargin(this); }
3272
CommonProperties
.SetMargin(this, value);
3302
get { return
CommonProperties
.GetMaximumSize(this, DefaultMaximumSize); }
3305
CommonProperties
.ClearMaximumSize(this);
3310
CommonProperties
.SetMaximumSize(this, value);
3322
get { return
CommonProperties
.GetMinimumSize(this, DefaultMinimumSize); }
3326
CommonProperties
.SetMinimumSize(this, value);
4771
get { return
CommonProperties
.GetPadding(this, DefaultPadding); }
4774
CommonProperties
.SetPadding(this, value);
10919
CommonProperties
.ResetPadding(this);
11215
CommonProperties
.xClearPreferredSizeCache(this);
11224
CommonProperties
.xClearPreferredSizeCache(controlsCollection[i]);
11871
CommonProperties
.UpdateSpecifiedBounds(this, x, y, width, height, specified);
11919
CommonProperties
.xClearPreferredSizeCache(ParentInternal);
12597
CommonProperties
.xClearPreferredSizeCache(this);
15135
CommonProperties
.xClearAllPreferredSizeCaches(owner);
winforms\Managed\System\WinForms\DateTimePicker.cs (1)
1193
int width =
CommonProperties
.GetSpecifiedBounds(this).Width;
winforms\Managed\System\WinForms\FlowLayoutSettings.cs (2)
52
CommonProperties
.SetFlowBreak(element, value);
58
return
CommonProperties
.GetFlowBreak(element);
winforms\Managed\System\WinForms\Form.cs (3)
665
this.Size =
CommonProperties
.GetSpecifiedBounds(this).Size;
5101
CommonProperties
.xClearAllPreferredSizeCaches(this);
6577
CommonProperties
.xClearPreferredSizeCache(this);
winforms\Managed\System\WinForms\Label.cs (2)
111
CommonProperties
.SetSelfAutoSizeInDefaultLayout(this,true);
828
return
CommonProperties
.ShouldSelfSize(this);
winforms\Managed\System\WinForms\Layout\CommonProperties.cs (2)
275
Rectangle originalBounds =
CommonProperties
.GetSpecifiedBounds(element);
332
CommonProperties
.xClearPreferredSizeCache(start);
winforms\Managed\System\WinForms\Layout\DockAndAnchorLayout.cs (30)
35
if(
CommonProperties
.xGetAutoSizedAndAnchored(element)) {
51
if (
CommonProperties
.GetAutoSizeMode(element) == AutoSizeMode.GrowAndShrink) {
78
Debug.Assert((
CommonProperties
.GetAutoSizeMode(element) == AutoSizeMode.GrowAndShrink || newSize.Height >= oldBounds.Height && newSize.Width >= oldBounds.Width),
93
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?");
234
if (
CommonProperties
.GetAutoSize(container) && ((displayRectangle.Width == 0) || (displayRectangle.Height == 0))) {
245
if (
CommonProperties
.GetNeedsAnchorLayout(element)) {
272
if (
CommonProperties
.GetNeedsDockLayout(element)) {
364
else if(dockStyle == DockStyle.Fill &&
CommonProperties
.GetAutoSize(element)) {
439
if (
CommonProperties
.GetAutoSize(element)) {
471
return
CommonProperties
.GetAutoSize(container);
482
if (
CommonProperties
.GetNeedsDockAndAnchorLayout(element)) {
483
if (!dock &&
CommonProperties
.GetNeedsDockLayout(element)) dock = true;
484
if (!anchor &&
CommonProperties
.GetNeedsAnchorLayout(element)) anchor = true;
485
if (!autoSize &&
CommonProperties
.xGetAutoSizedAndAnchored(element)) autoSize = true;
520
containerPadding =
CommonProperties
.GetPadding(container, Padding.Empty);
530
return
CommonProperties
.GetAutoSize(container);
553
if (
CommonProperties
.GetNeedsAnchorLayout(element) && element.Container != null) {
625
return
CommonProperties
.xGetAnchor(element);
631
if(
CommonProperties
.GetNeedsDockLayout(element)) {
636
CommonProperties
.xSetAnchor(element, value);
638
if (
CommonProperties
.GetNeedsAnchorLayout(element)) {
661
return
CommonProperties
.xGetDock(element);
674
bool dockNeedsLayout =
CommonProperties
.GetNeedsDockLayout(element);
675
CommonProperties
.xSetDock(element, value);
684
element.SetBounds(
CommonProperties
.GetSpecifiedBounds(element), BoundsSpecified.None);
692
element.SetBounds(
CommonProperties
.GetSpecifiedBounds(element), BoundsSpecified.All);
732
if (
CommonProperties
.GetAutoSize(container)) {
799
if(specified != BoundsSpecified.None &&
CommonProperties
.GetNeedsAnchorLayout(element)) {
828
if(!
CommonProperties
.GetNeedsDockLayout(element) && element.ParticipatesInLayout) {
830
Padding margin =
CommonProperties
.GetMargin(element);
winforms\Managed\System\WinForms\Layout\FlowLayout.cs (7)
41
CommonProperties
.SetLayoutBounds(container, xLayout(container, container.DisplayRectangle, /* measureOnly = */ false));
45
return
CommonProperties
.GetAutoSize(container);
259
else if (i+1 < endIndex &&
CommonProperties
.GetFlowBreak(elementProxy.Element)) {
549
get { return
CommonProperties
.GetAutoSize(_element); }
577
get { return
CommonProperties
.GetMargin(Element); }
581
get { return
CommonProperties
.GetMinimumSize(Element, Size.Empty); }
589
get { return
CommonProperties
.GetSpecifiedBounds(_element).Size; }
winforms\Managed\System\WinForms\Layout\LayoutUtils.cs (6)
681
CommonProperties
.xClearPreferredSizeCache(controlCausingLayout);
690
CommonProperties
.xClearPreferredSizeCache(_controlToLayout);
718
CommonProperties
.xClearPreferredSizeCache(elementCausingLayout);
727
CommonProperties
.xClearPreferredSizeCache(elementCausingLayout);
729
CommonProperties
.xClearPreferredSizeCache(elementToLayout);
745
CommonProperties
.xClearPreferredSizeCache(elementCausingLayout);
winforms\Managed\System\WinForms\Layout\TableLayout.cs (8)
208
CommonProperties
.SetLayoutBounds(containerInfo.Container, new Size(SumStrips(containerInfo.Columns, 0, containerInfo.Columns.Length),
211
return
CommonProperties
.GetAutoSize(container);
740
Padding margin =
CommonProperties
.GetMargin(element);
845
Padding margin =
CommonProperties
.GetMargin(element);
858
if(
CommonProperties
.GetAutoSize(element)) {
861
return
CommonProperties
.GetSpecifiedBounds(element).Size;
1219
Padding elementMargin =
CommonProperties
.GetMargin(element);
1779
Size cachedSize =
CommonProperties
.xGetPreferredSizeCache(Container);
winforms\Managed\System\WinForms\ListBox.cs (1)
2206
CommonProperties
.xClearPreferredSizeCache(this);
winforms\Managed\System\WinForms\PictureBox.cs (2)
535
CommonProperties
.xClearPreferredSizeCache(this);
1219
return
CommonProperties
.GetSpecifiedBounds(this).Size;
winforms\Managed\System\WinForms\RichTextBox.cs (1)
1495
CommonProperties
.xClearPreferredSizeCache(this);
winforms\Managed\System\WinForms\ScrollableControl.cs (2)
494
if (!defaultLayoutEngine &&
CommonProperties
.HasLayoutBounds(this)) {
496
Size layoutBounds =
CommonProperties
.GetLayoutBounds(this);
winforms\Managed\System\WinForms\TextBoxBase.cs (2)
1555
CommonProperties
.xClearPreferredSizeCache(this);
1736
CommonProperties
.xClearPreferredSizeCache(this);
winforms\Managed\System\WinForms\ToolStrip.cs (9)
267
Rectangle bounds =
CommonProperties
.GetSpecifiedBounds(this);
269
CommonProperties
.UpdateSpecifiedBounds(this, bounds.X, bounds.Y, bounds.Width, bounds.Height, BoundsSpecified.Location);
2168
CommonProperties
.xClearPreferredSizeCache(this.OverflowButton.DropDown);
2179
CommonProperties
.xClearPreferredSizeCache(this);
2465
CommonProperties
.xClearPreferredSizeCache(this);
2584
CommonProperties
.xClearPreferredSizeCache(toolStrip);
4138
CommonProperties
.SetMinimumSize(this, new Size(-1,-1));
4569
return (
CommonProperties
.GetMinimumSize(this, invalidDefaultSize) != invalidDefaultSize);
4696
Size size =
CommonProperties
.GetSpecifiedBounds(this).Size;
winforms\Managed\System\WinForms\ToolStripControlHost.cs (3)
58
CommonProperties
.UpdateSpecifiedBounds(c, bounds.X, bounds.Y, bounds.Width, bounds.Height);
475
CommonProperties
.UpdateSpecifiedBounds(control, specifiedBounds.X, specifiedBounds.Y, specifiedBounds.Width, specifiedBounds.Height);
485
CommonProperties
.UpdateSpecifiedBounds(control, bounds.X, bounds.Y, bounds.Width, bounds.Height);
winforms\Managed\System\WinForms\ToolStripDropDown.cs (1)
1685
CommonProperties
.xClearPreferredSizeCache(this);
winforms\Managed\System\WinForms\ToolStripDropDownItem.cs (1)
453
CommonProperties
.xClearPreferredSizeCache(DropDown);
winforms\Managed\System\WinForms\ToolStripDropDownMenu.cs (1)
607
CommonProperties
.xClearPreferredSizeCache(this);
winforms\Managed\System\WinForms\ToolStripItem.cs (14)
196
CommonProperties
.SetAutoSize(this,true);
407
CommonProperties
.SetAutoSize(this,value);
647
DefaultValue(
CommonProperties
.DefaultAnchor)
652
return
CommonProperties
.xGetAnchor(this);
659
CommonProperties
.xSetAnchor(this, value);
671
DefaultValue(
CommonProperties
.DefaultDock)
677
return
CommonProperties
.xGetDock(this);
686
CommonProperties
.xSetDock(this, value);
1519
get { return
CommonProperties
.GetMargin(this); }
1523
CommonProperties
.SetMargin(this, value);
1870
get { return
CommonProperties
.GetPadding(this, DefaultPadding); }
1873
CommonProperties
.SetPadding(this, value);
3653
CommonProperties
.SetMargin(this, DefaultMargin);
3817
CommonProperties
.ResetPadding(this);
winforms\Managed\System\WinForms\ToolStripItemCollection.cs (1)
369
CommonProperties
.xClearPreferredSizeCache(owner);
winforms\Managed\System\WinForms\ToolStripPanelCell.cs (1)
60
CommonProperties
.SetAutoSize(this, true);
winforms\Managed\System\WinForms\ToolStripPanelRow.cs (5)
80
CommonProperties
.SetAutoSize(this, true);
211
get { return
CommonProperties
.GetMargin(this); }
212
set { if (Margin != value )
CommonProperties
.SetMargin(this, value); }
217
get { return
CommonProperties
.GetPadding(this, DefaultPadding); }
219
if (Padding != value)
CommonProperties
.SetPadding(this, value);
winforms\Managed\System\WinForms\ToolStripSplitStackLayout.cs (1)
241
return
CommonProperties
.GetAutoSize(container);
winforms\Managed\System\WinForms\ToolStripTextBox.cs (1)
167
Rectangle bounds =
CommonProperties
.GetSpecifiedBounds(TextBox);