167 references to Percent
PresentationUI (10)
MS\Internal\Documents\CredentialManagerDialog.Designer.cs (3)
59this._mainDialogTableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); 101this._userInputtableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); 108this._userInputtableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
MS\Internal\Documents\RMEnrollmentPage2.Designer.cs (2)
149this._tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 71.5164F)); 150this._tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 28.48361F));
MS\Internal\Documents\RMEnrollmentPage3.Designer.cs (4)
50this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); 86this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); 93this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); 94this.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)
492colStyle.SizeType = (spring) ? SizeType.Percent : SizeType.AutoSize; 539rowStyle.SizeType = (spring) ? SizeType.Percent : SizeType.AutoSize;
System\Windows\Forms\Layout\TableLayout.ContainerInfo.cs (1)
343if (style.SizeType == SizeType.Percent)
System\Windows\Forms\Layout\TableLayout.cs (6)
768if (style.SizeType == SizeType.Percent) 787if (style.SizeType == SizeType.Percent) 929if (lastPercent < styles.Count && styles[lastPercent].SizeType == SizeType.Percent) 1038case SizeType.Percent: 1097if (sizeType == SizeType.Percent) 1129if (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)
35case 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)
63ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 100F)); 66RowStyles.Add(new RowStyle(SizeType.Percent, 100F));
System\Windows\Forms\Design\Behavior\TableLayoutPanelBehavior.cs (3)
307else if (_styles[rightIndex].SizeType == SizeType.Percent && 308_styles[leftIndex].SizeType == SizeType.Percent) 312if (_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)); 560else if (type == SizeType.Percent) 774case SizeType.Percent: 934UpdateTypeAndValue(SizeType.Percent, (float)_percentNumericUpDown.Value); 957UpdateTypeAndValue(SizeType.Percent, (float)_percentNumericUpDown.Value); 971if (_tableLayoutPanel.RowStyles[i].SizeType != SizeType.Percent) 980if (_tableLayoutPanel.ColumnStyles[i].SizeType != SizeType.Percent) 999if (_tableLayoutPanel.RowStyles[i].SizeType != SizeType.Percent) 1008if (_tableLayoutPanel.ColumnStyles[i].SizeType != SizeType.Percent) 1039UpdateTypeAndValue(SizeType.Percent, (float)_percentNumericUpDown.Value);
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (8)
654Table.ColumnStyles[0].SizeType = SizeType.Percent; 656Table.ColumnStyles[1].SizeType = SizeType.Percent; 660Table.RowStyles[0].SizeType = SizeType.Percent; 662Table.RowStyles[1].SizeType = SizeType.Percent; 1598case SizeType.Percent: 1982case SizeType.Percent: 1983styles[index].SizeType = SizeType.Percent; 2029private 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)
49Assert.Equal(SizeType.Percent, columnStyle.SizeType); 113Assert.Equal(SizeType.Percent, rowStyle.SizeType);
System.Windows.Forms.Tests (40)
SerializableTypesTests.cs (6)
281tableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50)); 282tableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50)); 283tableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50)); 319Assert.Equal(SizeType.Percent, result.ColumnStyles[0].SizeType); 320Assert.Equal(SizeType.Percent, result.ColumnStyles[1].SizeType); 321Assert.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)
868table.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50F)); 869table.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50F)); 870table.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50F));
System\Windows\Forms\Layout\TableLayoutSettingsTests.cs (6)
1673ColumnStyle columnStyle = new(SizeType.Percent, 1); 1674RowStyle rowStyle = new(SizeType.Percent, 2); 1709ColumnStyle columnStyle = new(SizeType.Percent, 1); 1710RowStyle rowStyle = new(SizeType.Percent, 2); 1776ColumnStyle columnStyle = new(SizeType.Percent, 1); 1777RowStyle rowStyle = new(SizeType.Percent, 2);
System\Windows\Forms\Layout\TableLayoutSettingsTypeConverterTests.cs (2)
56Assert.Equal(SizeType.Percent, settings.ColumnStyles[3].SizeType); 58Assert.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)
448ColumnStyle columnStyle = new(SizeType.Percent, 1); 449RowStyle rowStyle = new(SizeType.Percent, 1); 484ColumnStyle columnStyle = new(SizeType.Percent, 1); 485RowStyle rowStyle = new(SizeType.Percent, 1); 548settings.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 1)); 549settings.RowStyles.Add(new RowStyle(SizeType.Percent, 1)); 1026control.RowStyles.Add(new RowStyle(SizeType.Percent, 20)); 1029control.RowStyles.Add(new RowStyle(SizeType.Percent, 30)); 1032control.RowStyles.Add(new RowStyle(SizeType.Percent, 6)); 1049control.RowStyles.Add(new RowStyle(SizeType.Percent, 75)); 1069control.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)] 130yield return new object[] { new RowStyle(SizeType.Percent, 1), typeof(RowStyle).GetConstructor([typeof(SizeType), typeof(int)]), new object[] { SizeType.Percent, 1f } }; 133yield 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)
139this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); 140this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); 148this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); 149this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); 404this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); 405this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); 410this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); 411this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
WinFormsControlsTest (11)
Buttons.cs (5)
33table.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50F)); 34table.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50F)); 35table.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50F)); 36table.RowStyles.Add(new RowStyle(SizeType.Percent, 70.0f)); 37table.RowStyles.Add(new RowStyle(SizeType.Percent, 30.0f));
DragDrop.Designer.cs (6)
60tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 55.55556F)); 61tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 44.44445F)); 79tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Percent, 100F)); 163tableLayoutPanel2.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50F)); 164tableLayoutPanel2.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50F)); 171tableLayoutPanel2.RowStyles.Add(new RowStyle(SizeType.Percent, 50F));