151 references to CommonProperties
System.Windows.Forms (151)
System\Windows\Forms\Control.ControlCollection.cs (1)
385CommonProperties.xClearAllPreferredSizeCaches(Owner);
System\Windows\Forms\Control.cs (33)
340if (DefaultMargin != CommonProperties.DefaultMargin) 345if (DefaultMinimumSize != CommonProperties.DefaultMinimumSize) 350if (DefaultMaximumSize != CommonProperties.DefaultMaximumSize) 363CommonProperties.xClearPreferredSizeCache(this); 589[DefaultValue(CommonProperties.DefaultAnchor)] 601[DefaultValue(CommonProperties.DefaultAutoSize)] 608get => CommonProperties.GetAutoSize(this); 616CommonProperties.SetAutoSize(this, value); 657protected void SetAutoSizeMode(AutoSizeMode mode) => CommonProperties.SetAutoSizeMode(this, mode); 659protected AutoSizeMode GetAutoSizeMode() => CommonProperties.GetAutoSizeMode(this); 1579protected virtual Padding DefaultMargin => CommonProperties.DefaultMargin; 1581protected virtual Size DefaultMaximumSize => CommonProperties.DefaultMaximumSize; 1583protected virtual Size DefaultMinimumSize => CommonProperties.DefaultMinimumSize; 1692[DefaultValue(CommonProperties.DefaultDock)] 2053return CommonProperties.xGetPreferredSizeCache(this); 2064Size cachedSize = CommonProperties.xGetPreferredSizeCache(this); 2092CommonProperties.xSetPreferredSizeCache(this, preferredSize); 2102return CommonProperties.GetSpecifiedBounds(this).Size; 2437get => CommonProperties.GetMargin(this); 2447CommonProperties.SetMargin(this, value); 2469get { return CommonProperties.GetMaximumSize(this, DefaultMaximumSize); } 2474CommonProperties.ClearMaximumSize(this); 2480CommonProperties.SetMaximumSize(this, value); 2491get { return CommonProperties.GetMinimumSize(this, DefaultMinimumSize); } 2497CommonProperties.SetMinimumSize(this, value); 3749get { return CommonProperties.GetPadding(this, DefaultPadding); } 3754CommonProperties.SetPadding(this, value); 9076CommonProperties.ResetPadding(this); 9401CommonProperties.xClearPreferredSizeCache(this); 9409CommonProperties.xClearPreferredSizeCache(child); 10035CommonProperties.UpdateSpecifiedBounds(this, x, y, width, height, specified); 10089CommonProperties.xClearPreferredSizeCache(ParentInternal); 10781CommonProperties.xClearPreferredSizeCache(this);
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (1)
2688CommonProperties.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)
1374CommonProperties.xClearPreferredSizeCache(this); 1524CommonProperties.xClearPreferredSizeCache(this);
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (9)
201Rectangle bounds = CommonProperties.GetSpecifiedBounds(this); 203CommonProperties.UpdateSpecifiedBounds(this, bounds.X, bounds.Y, bounds.Width, bounds.Height, BoundsSpecified.Location); 1975CommonProperties.xClearPreferredSizeCache(OverflowButton.DropDown); 1988CommonProperties.xClearPreferredSizeCache(this); 2258CommonProperties.xClearPreferredSizeCache(this); 2390CommonProperties.xClearPreferredSizeCache(toolStrip); 4028CommonProperties.SetMinimumSize(this, new Size(-1, -1)); 4463return (CommonProperties.GetMinimumSize(this, invalidDefaultSize) != invalidDefaultSize); 4574Size size = CommonProperties.GetSpecifiedBounds(this).Size;
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)
1450CommonProperties.xClearPreferredSizeCache(this);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownItem.cs (1)
451CommonProperties.xClearPreferredSizeCache(DropDown);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownMenu.cs (1)
579CommonProperties.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); 3281CommonProperties.SetMargin(this, DefaultMargin); 3412CommonProperties.ResetPadding(this);
System\Windows\Forms\Controls\ToolStrips\ToolStripItemCollection.cs (1)
319CommonProperties.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)
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)
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); 261else if (i + 1 < endIndex && CommonProperties.GetFlowBreak(elementProxy.Element)) 316Padding 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); 734Padding margin = CommonProperties.GetMargin(element); 853Padding margin = CommonProperties.GetMargin(element); 865CommonProperties.GetAutoSize(element) 867: CommonProperties.GetSpecifiedBounds(element).Size; 1255Padding 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);