150 references to CommonProperties
System.Windows.Forms (150)
System\Windows\Forms\Control.ControlCollection.cs (1)
385CommonProperties.xClearAllPreferredSizeCaches(Owner);
System\Windows\Forms\Control.cs (33)
341if (DefaultMargin != CommonProperties.DefaultMargin) 346if (DefaultMinimumSize != CommonProperties.DefaultMinimumSize) 351if (DefaultMaximumSize != CommonProperties.DefaultMaximumSize) 364CommonProperties.xClearPreferredSizeCache(this); 590[DefaultValue(CommonProperties.DefaultAnchor)] 602[DefaultValue(CommonProperties.DefaultAutoSize)] 609get => CommonProperties.GetAutoSize(this); 617CommonProperties.SetAutoSize(this, value); 658protected void SetAutoSizeMode(AutoSizeMode mode) => CommonProperties.SetAutoSizeMode(this, mode); 660protected AutoSizeMode GetAutoSizeMode() => CommonProperties.GetAutoSizeMode(this); 1580protected virtual Padding DefaultMargin => CommonProperties.DefaultMargin; 1582protected virtual Size DefaultMaximumSize => CommonProperties.DefaultMaximumSize; 1584protected virtual Size DefaultMinimumSize => CommonProperties.DefaultMinimumSize; 1693[DefaultValue(CommonProperties.DefaultDock)] 2054return CommonProperties.xGetPreferredSizeCache(this); 2065Size cachedSize = CommonProperties.xGetPreferredSizeCache(this); 2093CommonProperties.xSetPreferredSizeCache(this, preferredSize); 2103return CommonProperties.GetSpecifiedBounds(this).Size; 2438get => CommonProperties.GetMargin(this); 2448CommonProperties.SetMargin(this, value); 2470get { return CommonProperties.GetMaximumSize(this, DefaultMaximumSize); } 2475CommonProperties.ClearMaximumSize(this); 2481CommonProperties.SetMaximumSize(this, value); 2492get { return CommonProperties.GetMinimumSize(this, DefaultMinimumSize); } 2498CommonProperties.SetMinimumSize(this, value); 3750get { return CommonProperties.GetPadding(this, DefaultPadding); } 3755CommonProperties.SetPadding(this, value); 9117CommonProperties.ResetPadding(this); 9442CommonProperties.xClearPreferredSizeCache(this); 9450CommonProperties.xClearPreferredSizeCache(child); 10068CommonProperties.UpdateSpecifiedBounds(this, x, y, width, height, specified); 10122CommonProperties.xClearPreferredSizeCache(ParentInternal); 10814CommonProperties.xClearPreferredSizeCache(this);
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (1)
2689CommonProperties.xClearPreferredSizeCache(this);
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (1)
1023int width = CommonProperties.GetSpecifiedBounds(this).Width;
System\Windows\Forms\Controls\Labels\Label.cs (2)
81CommonProperties.SetSelfAutoSizeInDefaultLayout(this, true); 665private bool SelfSizing => CommonProperties.ShouldSelfSize(this);
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (1)
2244CommonProperties.xClearPreferredSizeCache(this);
System\Windows\Forms\Controls\PictureBox\PictureBox.cs (2)
436CommonProperties.xClearPreferredSizeCache(this); 1036return CommonProperties.GetSpecifiedBounds(this).Size;
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (1)
1375CommonProperties.xClearPreferredSizeCache(this);
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (2)
1366CommonProperties.xClearPreferredSizeCache(this); 1516CommonProperties.xClearPreferredSizeCache(this);
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (8)
200Rectangle bounds = CommonProperties.GetSpecifiedBounds(this); 202CommonProperties.UpdateSpecifiedBounds(this, bounds.X, bounds.Y, bounds.Width, bounds.Height, BoundsSpecified.Location); 1973CommonProperties.xClearPreferredSizeCache(OverflowButton.DropDown); 1986CommonProperties.xClearPreferredSizeCache(this); 2256CommonProperties.xClearPreferredSizeCache(this); 2388CommonProperties.xClearPreferredSizeCache(toolStrip); 4026CommonProperties.SetMinimumSize(this, new Size(-1, -1)); 4463return (CommonProperties.GetMinimumSize(this, invalidDefaultSize) != invalidDefaultSize);
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (3)
43CommonProperties.UpdateSpecifiedBounds(c, bounds.X, bounds.Y, bounds.Width, bounds.Height); 364CommonProperties.UpdateSpecifiedBounds(_control, specifiedBounds.X, specifiedBounds.Y, specifiedBounds.Width, specifiedBounds.Height); 375CommonProperties.UpdateSpecifiedBounds(_control, bounds.X, bounds.Y, bounds.Width, bounds.Height);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (1)
1447CommonProperties.xClearPreferredSizeCache(this);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownItem.cs (1)
451CommonProperties.xClearPreferredSizeCache(DropDown);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownMenu.cs (1)
575CommonProperties.xClearPreferredSizeCache(this);
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (14)
156CommonProperties.SetAutoSize(this, true); 340CommonProperties.SetAutoSize(this, value); 596[DefaultValue(CommonProperties.DefaultAnchor)] 602return CommonProperties.xGetAnchor(this); 609CommonProperties.xSetAnchor(this, value); 622[DefaultValue(CommonProperties.DefaultDock)] 628return CommonProperties.xGetDock(this); 637CommonProperties.xSetDock(this, value); 1265get => CommonProperties.GetMargin(this); 1271CommonProperties.SetMargin(this, value); 1513get => CommonProperties.GetPadding(this, DefaultPadding); 1518CommonProperties.SetPadding(this, value); 3273CommonProperties.SetMargin(this, DefaultMargin); 3404CommonProperties.ResetPadding(this);
System\Windows\Forms\Controls\ToolStrips\ToolStripItemCollection.cs (1)
326CommonProperties.xClearPreferredSizeCache(_owner);
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelCell.cs (1)
55CommonProperties.SetAutoSize(this, true);
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.cs (5)
58CommonProperties.SetAutoSize(this, true); 199get { return CommonProperties.GetMargin(this); } 204CommonProperties.SetMargin(this, value); 211get { return CommonProperties.GetPadding(this, DefaultPadding); } 216CommonProperties.SetPadding(this, value);
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitStackLayout.cs (1)
205return CommonProperties.GetAutoSize(container);
System\Windows\Forms\Controls\ToolStrips\ToolStripTextBox.cs (1)
92Rectangle bounds = CommonProperties.GetSpecifiedBounds(TextBox);
System\Windows\Forms\Form.cs (3)
504Size = CommonProperties.GetSpecifiedBounds(this).Size; 4459CommonProperties.xClearAllPreferredSizeCaches(this); 6126CommonProperties.xClearPreferredSizeCache(this);
System\Windows\Forms\Layout\ArrangedElement.cs (4)
71get { return CommonProperties.GetMargin(this); } 77{ CommonProperties.SetMargin(this, value); } 83get { 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)
1053CommonProperties.xClearPreferredSizeCache(start); 1376CommonProperties.xClearAllPreferredSizeCaches(this);
System\Windows\Forms\Layout\DefaultLayout.cs (33)
30if (CommonProperties.xGetAutoSizedAndAnchored(element)) 49if (CommonProperties.GetAutoSizeMode(element) == AutoSizeMode.GrowAndShrink) 84Debug.Assert(CommonProperties.GetAutoSizeMode(element) == AutoSizeMode.GrowAndShrink || (newSize.Height >= oldBounds.Height && newSize.Width >= oldBounds.Width), 101Debug.Assert(CommonProperties.GetAutoSizeMode(element) == AutoSizeMode.GrowAndShrink || newBounds.Contains(oldBounds), "How did we resize in such a way we no longer contain our old bounds?"); 353if (CommonProperties.GetAutoSize(container) && ((displayRectangle.Width == 0) || (displayRectangle.Height == 0))) 364if (!CommonProperties.GetNeedsAnchorLayout(element)) 392if (CommonProperties.GetNeedsDockLayout(element)) 508else if (dockStyle == DockStyle.Fill && CommonProperties.GetAutoSize(element)) 526if (CommonProperties.GetAutoSize(element) && !CommonProperties.GetSelfAutoSizeInDefaultLayout(element)) 574if (CommonProperties.GetAutoSize(element)) 607return CommonProperties.GetAutoSize(container); 616if (CommonProperties.GetNeedsDockAndAnchorLayout(element)) 618if (!dock && CommonProperties.GetNeedsDockLayout(element)) 623if (!anchor && CommonProperties.GetNeedsAnchorLayout(element)) 628if (!autoSize && CommonProperties.xGetAutoSizedAndAnchored(element)) 674containerPadding = CommonProperties.GetPadding(container, Padding.Empty); 684return CommonProperties.GetAutoSize(container); 829if (!CommonProperties.GetNeedsAnchorLayout(control)) 890public static AnchorStyles GetAnchor(IArrangedElement element) => CommonProperties.xGetAnchor(element); 897if (CommonProperties.GetNeedsDockLayout(element)) 903CommonProperties.xSetAnchor(element, value); 905if (CommonProperties.GetNeedsAnchorLayout(element)) 931public static DockStyle GetDock(IArrangedElement element) => CommonProperties.xGetDock(element); 941bool dockNeedsLayout = CommonProperties.GetNeedsDockLayout(element); 942CommonProperties.xSetDock(element, value); 953element.SetBounds(CommonProperties.GetSpecifiedBounds(element), BoundsSpecified.None); 956if (CommonProperties.GetNeedsAnchorLayout(element)) 965element.SetBounds(CommonProperties.GetSpecifiedBounds(element), BoundsSpecified.All); 1025if (CommonProperties.GetAutoSize(container)) 1097(CommonProperties.GetNeedsAnchorLayout(element) || (UseAnchorLayoutV2(element) && ((Control)element)._childControlsNeedAnchorLayout))) 1120if (!CommonProperties.GetNeedsDockLayout(element) && element.ParticipatesInLayout) 1123Padding margin = CommonProperties.GetMargin(element);
System\Windows\Forms\Layout\FlowLayout.cs (4)
19CommonProperties.SetLayoutBounds(container, TryCalculatePreferredSize(container, container.DisplayRectangle, measureOnly: false)); 20return CommonProperties.GetAutoSize(container); 262else if (i + 1 < endIndex && CommonProperties.GetFlowBreak(elementProxy.Element)) 317Padding margin = CommonProperties.GetMargin(container.Children[0]);
System\Windows\Forms\Layout\FlowLayout.ElementProxy.cs (4)
50public bool AutoSize => CommonProperties.GetAutoSize(_element!); 67public virtual Padding Margin => CommonProperties.GetMargin(Element!); 69public virtual Size MinimumSize => CommonProperties.GetMinimumSize(Element!, Size.Empty); 73public virtual Size SpecifiedSize => CommonProperties.GetSpecifiedBounds(_element!).Size;
System\Windows\Forms\Layout\LayoutTransaction.cs (6)
39CommonProperties.xClearPreferredSizeCache(controlCausingLayout); 49CommonProperties.xClearPreferredSizeCache(_controlToLayout); 79CommonProperties.xClearPreferredSizeCache(elementCausingLayout); 88CommonProperties.xClearPreferredSizeCache(elementCausingLayout); 91CommonProperties.xClearPreferredSizeCache(elementToLayout); 108CommonProperties.xClearPreferredSizeCache(elementCausingLayout);
System\Windows\Forms\Layout\TableLayout.ContainerInfo.cs (1)
376Size cachedSize = CommonProperties.xGetPreferredSizeCache(Container);
System\Windows\Forms\Layout\TableLayout.cs (7)
119CommonProperties.SetLayoutBounds(containerInfo.Container, new Size(SumStrips(containerInfo.Columns, 0, containerInfo.Columns.Length), 122return CommonProperties.GetAutoSize(container); 736Padding margin = CommonProperties.GetMargin(element); 855Padding margin = CommonProperties.GetMargin(element); 867CommonProperties.GetAutoSize(element) 869: CommonProperties.GetSpecifiedBounds(element).Size; 1254Padding elementMargin = CommonProperties.GetMargin(element);
System\Windows\Forms\Panels\FlowLayoutSettings.cs (2)
52CommonProperties.SetFlowBreak(element, value); 61return CommonProperties.GetFlowBreak(element);
System\Windows\Forms\Scrolling\ScrollableControl.cs (2)
384if (!defaultLayoutEngine && CommonProperties.HasLayoutBounds(this)) 386Size layoutBounds = CommonProperties.GetLayoutBounds(this);