68 references to AutoSizeMode
System.Windows.Forms (60)
winforms\Managed\System\WinForms\Button.cs (7)
75DefaultValue(AutoSizeMode.GrowOnly), 79public AutoSizeMode AutoSizeMode { 85if (!ClientUtils.IsEnumValid(value, (int)value, (int)AutoSizeMode.GrowAndShrink, (int)AutoSizeMode.GrowOnly)){ 86throw new InvalidEnumArgumentException("value", (int)value, typeof(AutoSizeMode)); 119return AutoSizeMode == AutoSizeMode.GrowAndShrink ? prefSize : LayoutUtils.UnionSizes(prefSize, Size); 139return AutoSizeMode == AutoSizeMode.GrowAndShrink ? paddedSize : LayoutUtils.UnionSizes(paddedSize, Size);
winforms\Managed\System\WinForms\CheckBox.cs (1)
82SetAutoSizeMode(AutoSizeMode.GrowAndShrink);
winforms\Managed\System\WinForms\Control.cs (2)
1006protected void SetAutoSizeMode(AutoSizeMode mode) { 1010protected AutoSizeMode GetAutoSizeMode() {
winforms\Managed\System\WinForms\Form.cs (7)
698DefaultValue(AutoSizeMode.GrowOnly), 701public AutoSizeMode AutoSizeMode { 707if (!ClientUtils.IsEnumValid(value, (int)value, (int)AutoSizeMode.GrowAndShrink, (int)AutoSizeMode.GrowOnly)){ 708throw new InvalidEnumArgumentException("value", (int)value, typeof(AutoSizeMode)); 4816Size adjustedSize = AutoSizeMode == AutoSizeMode.GrowAndShrink ? prefSize : LayoutUtils.UnionSizes(prefSize, Size); 7384if (AutoSizeMode == AutoSizeMode.GrowAndShrink)
winforms\Managed\System\WinForms\GroupBox.cs (5)
123DefaultValue(AutoSizeMode.GrowOnly), 126public AutoSizeMode AutoSizeMode { 131if (!ClientUtils.IsEnumValid(value, (int)value, (int)AutoSizeMode.GrowAndShrink, (int)AutoSizeMode.GrowOnly)){ 132throw new InvalidEnumArgumentException("value", (int)value, typeof(AutoSizeMode));
winforms\Managed\System\WinForms\Layout\CommonProperties.cs (5)
377internal static AutoSizeMode GetAutoSizeMode(IArrangedElement element) { 379return state[_autoSizeModeSection] == 0 ? AutoSizeMode.GrowOnly : AutoSizeMode.GrowAndShrink; 445internal static void SetAutoSizeMode(IArrangedElement element, AutoSizeMode mode) { 447state[_autoSizeModeSection] = mode == AutoSizeMode.GrowAndShrink ? 1 : 0;
winforms\Managed\System\WinForms\Layout\DockAndAnchorLayout.cs (3)
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?");
winforms\Managed\System\WinForms\Panel.cs (5)
95DefaultValue(AutoSizeMode.GrowOnly), 98public virtual AutoSizeMode AutoSizeMode { 103if (!ClientUtils.IsEnumValid(value, (int)value, (int)AutoSizeMode.GrowAndShrink, (int)AutoSizeMode.GrowOnly)){ 104throw new InvalidEnumArgumentException("value", (int)value, typeof(AutoSizeMode));
winforms\Managed\System\WinForms\PropertyGridInternal\GridErrorDlg.cs (3)
201this.overarchingTableLayoutPanel.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; 260this.pictureLabelTableLayoutPanel.AutoSizeMode = Forms.AutoSizeMode.GrowOnly; 291this.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
winforms\Managed\System\WinForms\RadioButton.cs (1)
82SetAutoSizeMode(AutoSizeMode.GrowAndShrink);
winforms\Managed\System\WinForms\SplitterPanel.cs (2)
97public override AutoSizeMode AutoSizeMode { 99return AutoSizeMode.GrowOnly;
winforms\Managed\System\WinForms\TabPage.cs (2)
66public override AutoSizeMode AutoSizeMode { 68return AutoSizeMode.GrowOnly;
winforms\Managed\System\WinForms\ToolStrip.cs (1)
224SetAutoSizeMode(AutoSizeMode.GrowAndShrink);
winforms\Managed\System\WinForms\ToolStripContentPanel.cs (2)
50public override AutoSizeMode AutoSizeMode { 52return AutoSizeMode.GrowOnly;
winforms\Managed\System\WinForms\TrustManagerMoreInformation.cs (3)
212this.tableLayoutPanel.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; 323this.btnClose.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; 336this.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
winforms\Managed\System\WinForms\TrustManagerPromptUI.cs (6)
186this.tableLayoutPanelOuter.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; 204this.warningTextTableLayoutPanel.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; 266this.btnInstall.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; 275this.btnCancel.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; 285this.tableLayoutPanelInfo.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; 363this.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
winforms\Managed\System\WinForms\UserControl.cs (5)
92DefaultValue(AutoSizeMode.GrowOnly), 95public AutoSizeMode AutoSizeMode { 100if (!ClientUtils.IsEnumValid(value, (int)value, (int)AutoSizeMode.GrowAndShrink, (int)AutoSizeMode.GrowOnly)) 102throw new InvalidEnumArgumentException("value", (int)value, typeof(AutoSizeMode));
System.Workflow.ComponentModel (8)
AuthoringOM\Design\FreeFormDesigner.cs (8)
90private AutoSizeMode autoSizeMode = AutoSizeMode.GrowOnly; 147[DefaultValue(AutoSizeMode.GrowOnly)] 148public AutoSizeMode AutoSizeMode 351if (AutoSize && AutoSizeMode == AutoSizeMode.GrowAndShrink) 789if (AutoSizeMode == AutoSizeMode.GrowOnly) 818if (AutoSizeMode == AutoSizeMode.GrowOnly) 929if (AutoSizeMode == AutoSizeMode.GrowOnly)