167 references to Percent
PresentationUI (10)
MS\Internal\Documents\CredentialManagerDialog.Designer.cs (3)
59
this._mainDialogTableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.
Percent
, 50F));
101
this._userInputtableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.
Percent
, 100F));
108
this._userInputtableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.
Percent
, 50F));
MS\Internal\Documents\RMEnrollmentPage2.Designer.cs (2)
149
this._tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.
Percent
, 71.5164F));
150
this._tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.
Percent
, 28.48361F));
MS\Internal\Documents\RMEnrollmentPage3.Designer.cs (4)
50
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.
Percent
, 50F));
86
this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.
Percent
, 50F));
93
this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.
Percent
, 50F));
94
this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.
Percent
, 50F));
MS\Internal\Documents\SigningDialog.Designer.cs (1)
73
_signatureControlInputLayoutTable.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.
Percent
, 50F));
System.Windows.Forms (17)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridErrorDialog.cs (2)
196
_buttonTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.
Percent
, 100F));
220
_pictureLabelTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.
Percent
, 100F));
System\Windows\Forms\Controls\ToolStrips\StatusStrip.cs (2)
492
colStyle.SizeType = (spring) ? SizeType.
Percent
: SizeType.AutoSize;
539
rowStyle.SizeType = (spring) ? SizeType.
Percent
: SizeType.AutoSize;
System\Windows\Forms\Layout\TableLayout.ContainerInfo.cs (1)
343
if (style.SizeType == SizeType.
Percent
)
System\Windows\Forms\Layout\TableLayout.cs (6)
768
if (style.SizeType == SizeType.
Percent
)
787
if (style.SizeType == SizeType.
Percent
)
929
if (lastPercent < styles.Count && styles[lastPercent].SizeType == SizeType.
Percent
)
1038
case SizeType.
Percent
:
1097
if (sizeType == SizeType.
Percent
)
1129
if (sizeType == SizeType.
Percent
)
System\Windows\Forms\MDI\MDIWindowDialog.cs (2)
125
_okCancelTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.
Percent
, 50F));
126
_okCancelTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.
Percent
, 50F));
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutSettings.StyleConverter.cs (1)
35
case SizeType.
Percent
:
System\Windows\Forms\Printing\PrintControllerWithStatusDialog.StatusDialog.cs (3)
66
_tableLayoutPanel.ColumnStyles.Add(new(SizeType.
Percent
, 100F));
67
_tableLayoutPanel.RowStyles.Add(new(SizeType.
Percent
, 50F));
68
_tableLayoutPanel.RowStyles.Add(new(SizeType.
Percent
, 50F));
System.Windows.Forms.Design (79)
System\ComponentModel\Design\BinaryEditor.BinaryUI.cs (9)
213
_radioButtonsTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.
Percent
, 25F));
214
_radioButtonsTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.
Percent
, 25F));
215
_radioButtonsTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.
Percent
, 25F));
216
_radioButtonsTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.
Percent
, 25F));
258
_okSaveTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.
Percent
, 50F));
259
_okSaveTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.
Percent
, 50F));
264
_okSaveTableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.
Percent
, 50F));
269
_overarchingTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.
Percent
, 50F));
274
_overarchingTableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.
Percent
, 100F));
System\ComponentModel\Design\ByteViewer.cs (2)
63
ColumnStyles.Add(new ColumnStyle(SizeType.
Percent
, 100F));
66
RowStyles.Add(new RowStyle(SizeType.
Percent
, 100F));
System\Windows\Forms\Design\Behavior\TableLayoutPanelBehavior.cs (3)
307
else if (_styles[rightIndex].SizeType == SizeType.
Percent
&&
308
_styles[leftIndex].SizeType == SizeType.
Percent
)
312
if (_styles[i].SizeType == SizeType.
Percent
)
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (3)
364
_okCancelTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.
Percent
, 50F));
365
_okCancelTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.
Percent
, 50F));
370
_okCancelTableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.
Percent
, 50F));
System\Windows\Forms\Design\DataGridViewCellStyleBuilder.cs (8)
159
_sampleViewGridsTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.
Percent
, 10F));
160
_sampleViewGridsTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.
Percent
, 30F));
161
_sampleViewGridsTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.
Percent
, 20F));
162
_sampleViewGridsTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.
Percent
, 30F));
163
_sampleViewGridsTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.
Percent
, 10F));
213
_okCancelTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.
Percent
, 50F));
214
_okCancelTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.
Percent
, 50F));
233
_overarchingTableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.
Percent
, 100F));
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (7)
534
_overarchingTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.
Percent
));
546
_overarchingTableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.
Percent
, 50F));
552
_addRemoveTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.
Percent
, 50F));
553
_addRemoveTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.
Percent
, 50F));
558
_addRemoveTableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.
Percent
, 50F));
584
_okCancelTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.
Percent
, 50F));
585
_okCancelTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.
Percent
, 50F));
System\Windows\Forms\Design\LinkAreaEditor.LinkAreaUI.cs (2)
88
_okCancelTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.
Percent
, 50F));
89
_okCancelTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.
Percent
, 50F));
System\Windows\Forms\Design\MaskDesignerDialog.cs (5)
215
_maskTryItTable.ColumnStyles.Add(new ColumnStyle(SizeType.
Percent
, 100F));
248
_overarchingTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.
Percent
, 50F));
256
_overarchingTableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.
Percent
, 50F));
263
_okCancelTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.
Percent
, 50F));
264
_okCancelTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.
Percent
, 50F));
System\Windows\Forms\Design\StyleEditorForm.cs (21)
198
_addRemoveInsertTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.
Percent
, 33F));
199
_addRemoveInsertTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.
Percent
, 33F));
200
_addRemoveInsertTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.
Percent
, 33F));
235
_okCancelTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.
Percent
, 50F));
236
_okCancelTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.
Percent
, 50F));
262
_overarchingTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.
Percent
, 100F));
273
_overarchingTableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.
Percent
, 50F));
280
_showTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.
Percent
, 50F));
332
_helperTextTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.
Percent
, 100F));
382
_sizeTypeTableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.
Percent
, 33.3F));
383
_sizeTypeTableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.
Percent
, 33.3F));
384
_sizeTypeTableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.
Percent
, 33.3F));
560
else if (type == SizeType.
Percent
)
774
case SizeType.
Percent
:
934
UpdateTypeAndValue(SizeType.
Percent
, (float)_percentNumericUpDown.Value);
957
UpdateTypeAndValue(SizeType.
Percent
, (float)_percentNumericUpDown.Value);
971
if (_tableLayoutPanel.RowStyles[i].SizeType != SizeType.
Percent
)
980
if (_tableLayoutPanel.ColumnStyles[i].SizeType != SizeType.
Percent
)
999
if (_tableLayoutPanel.RowStyles[i].SizeType != SizeType.
Percent
)
1008
if (_tableLayoutPanel.ColumnStyles[i].SizeType != SizeType.
Percent
)
1039
UpdateTypeAndValue(SizeType.
Percent
, (float)_percentNumericUpDown.Value);
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (8)
654
Table.ColumnStyles[0].SizeType = SizeType.
Percent
;
656
Table.ColumnStyles[1].SizeType = SizeType.
Percent
;
660
Table.RowStyles[0].SizeType = SizeType.
Percent
;
662
Table.RowStyles[1].SizeType = SizeType.
Percent
;
1598
case SizeType.
Percent
:
1982
case SizeType.
Percent
:
1983
styles[index].SizeType = SizeType.
Percent
;
2029
private void OnPercentClick(object sender, EventArgs e) => ChangeSizeType((bool)((ToolStripMenuItem)sender).Tag, SizeType.
Percent
);
System\Windows\Forms\Design\ToolStripCollectionEditor.ToolStripItemEditorForm.cs (5)
214
_tableLayoutPanel.ColumnStyles.Add(new(SizeType.
Percent
, 100F));
231
_tableLayoutPanel.RowStyles.Add(new(SizeType.
Percent
, 100F));
235
_addTableLayoutPanel.ColumnStyles.Add(new(SizeType.
Percent
, 100F));
258
_okCancelTableLayoutPanel.ColumnStyles.Add(new(SizeType.
Percent
, 50F));
259
_okCancelTableLayoutPanel.ColumnStyles.Add(new(SizeType.
Percent
, 50F));
System\Windows\Forms\Design\TreeNodeCollectionEditor.cs (6)
233
_okCancelPanel.ColumnStyles.Add(new ColumnStyle(SizeType.
Percent
, 50F));
234
_okCancelPanel.ColumnStyles.Add(new ColumnStyle(SizeType.
Percent
, 50F));
252
_nodeControlPanel.ColumnStyles.Add(new ColumnStyle(SizeType.
Percent
, 50F));
253
_nodeControlPanel.ColumnStyles.Add(new ColumnStyle(SizeType.
Percent
, 50F));
308
_overarchingTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.
Percent
, 100F));
312
_overarchingTableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.
Percent
, 100F));
System.Windows.Forms.Design.Tests (2)
System\ComponentModel\Design\ByteViewerTests.cs (2)
49
Assert.Equal(SizeType.
Percent
, columnStyle.SizeType);
113
Assert.Equal(SizeType.
Percent
, rowStyle.SizeType);
System.Windows.Forms.Tests (40)
SerializableTypesTests.cs (6)
281
tableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.
Percent
, 50));
282
tableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.
Percent
, 50));
283
tableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.
Percent
, 50));
319
Assert.Equal(SizeType.
Percent
, result.ColumnStyles[0].SizeType);
320
Assert.Equal(SizeType.
Percent
, result.ColumnStyles[1].SizeType);
321
Assert.Equal(SizeType.
Percent
, result.ColumnStyles[2].SizeType);
System\Windows\Forms\ColumnStyleTests.cs (2)
31
[InlineData(SizeType.
Percent
, 2)]
33
[InlineData((SizeType.
Percent
+ 1), 4)]
System\Windows\Forms\ControlTests.cs (3)
868
table.ColumnStyles.Add(new ColumnStyle(SizeType.
Percent
, 50F));
869
table.ColumnStyles.Add(new ColumnStyle(SizeType.
Percent
, 50F));
870
table.ColumnStyles.Add(new ColumnStyle(SizeType.
Percent
, 50F));
System\Windows\Forms\Layout\TableLayoutSettingsTests.cs (6)
1673
ColumnStyle columnStyle = new(SizeType.
Percent
, 1);
1674
RowStyle rowStyle = new(SizeType.
Percent
, 2);
1709
ColumnStyle columnStyle = new(SizeType.
Percent
, 1);
1710
RowStyle rowStyle = new(SizeType.
Percent
, 2);
1776
ColumnStyle columnStyle = new(SizeType.
Percent
, 1);
1777
RowStyle rowStyle = new(SizeType.
Percent
, 2);
System\Windows\Forms\Layout\TableLayoutSettingsTypeConverterTests.cs (2)
56
Assert.Equal(SizeType.
Percent
, settings.ColumnStyles[3].SizeType);
58
Assert.Equal(SizeType.
Percent
, settings.ColumnStyles[4].SizeType);
System\Windows\Forms\RowStyleTests.cs (2)
31
[InlineData(SizeType.
Percent
, 2)]
33
[InlineData((SizeType.
Percent
+ 1), 4)]
System\Windows\Forms\TableLayoutPanelTests.cs (11)
448
ColumnStyle columnStyle = new(SizeType.
Percent
, 1);
449
RowStyle rowStyle = new(SizeType.
Percent
, 1);
484
ColumnStyle columnStyle = new(SizeType.
Percent
, 1);
485
RowStyle rowStyle = new(SizeType.
Percent
, 1);
548
settings.ColumnStyles.Add(new ColumnStyle(SizeType.
Percent
, 1));
549
settings.RowStyles.Add(new RowStyle(SizeType.
Percent
, 1));
1026
control.RowStyles.Add(new RowStyle(SizeType.
Percent
, 20));
1029
control.RowStyles.Add(new RowStyle(SizeType.
Percent
, 30));
1032
control.RowStyles.Add(new RowStyle(SizeType.
Percent
, 6));
1049
control.RowStyles.Add(new RowStyle(SizeType.
Percent
, 75));
1069
control.RowStyles.Add(new RowStyle(SizeType.
Percent
, 75));
System\Windows\Forms\TableLayoutStyleTests.cs (8)
40
[InlineData(SizeType.
Percent
, 1)]
42
[InlineData((SizeType.
Percent
+ 1), 1)]
72
[InlineData(SizeType.
Percent
, 1)]
74
[InlineData((SizeType.
Percent
+ 1), 1)]
130
yield return new object[] { new RowStyle(SizeType.
Percent
, 1), typeof(RowStyle).GetConstructor([typeof(SizeType), typeof(int)]), new object[] { SizeType.
Percent
, 1f } };
133
yield return new object[] { new ColumnStyle(SizeType.
Percent
, 1), typeof(ColumnStyle).GetConstructor([typeof(SizeType), typeof(int)]), new object[] { SizeType.
Percent
, 1f } };
TestPassApp (8)
ContainerControls2.Designer.cs (8)
139
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.
Percent
, 50F));
140
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.
Percent
, 50F));
148
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.
Percent
, 50F));
149
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.
Percent
, 50F));
404
this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.
Percent
, 50F));
405
this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.
Percent
, 50F));
410
this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.
Percent
, 50F));
411
this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.
Percent
, 50F));
WinFormsControlsTest (11)
Buttons.cs (5)
33
table.ColumnStyles.Add(new ColumnStyle(SizeType.
Percent
, 50F));
34
table.ColumnStyles.Add(new ColumnStyle(SizeType.
Percent
, 50F));
35
table.ColumnStyles.Add(new ColumnStyle(SizeType.
Percent
, 50F));
36
table.RowStyles.Add(new RowStyle(SizeType.
Percent
, 70.0f));
37
table.RowStyles.Add(new RowStyle(SizeType.
Percent
, 30.0f));
DragDrop.Designer.cs (6)
60
tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.
Percent
, 55.55556F));
61
tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.
Percent
, 44.44445F));
79
tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.
Percent
, 100F));
163
tableLayoutPanel2.ColumnStyles.Add(new ColumnStyle(SizeType.
Percent
, 50F));
164
tableLayoutPanel2.ColumnStyles.Add(new ColumnStyle(SizeType.
Percent
, 50F));
171
tableLayoutPanel2.RowStyles.Add(new RowStyle(SizeType.
Percent
, 50F));