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