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