33 writes to Height
System.Windows.Forms (2)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (1)
482
Rows[rowIndex].
Height
= preferredHeight; // un-sharing the row to be resized
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.cs (1)
1736
Height
= DefaultHeight;
System.Windows.Forms.Design (3)
System\Windows\Forms\Design\DataGridViewCellStyleBuilder.cs (3)
306
_sampleDataGridView.Rows[0].
Height
= _sampleDataGridView.Height;
309
_sampleDataGridViewSelected.Rows[0].
Height
= _sampleDataGridViewSelected.Height;
332
dataGridView.Rows[0].
Height
= dataGridView.Height;
System.Windows.Forms.Tests (28)
System\Windows\Forms\AccessibleObjects\DataGridViewRowsAccessibleObjectTests.cs (10)
20
dataGridView.Rows[0].
Height
= 20;
21
dataGridView.Rows[1].
Height
= 20;
22
dataGridView.Rows[2].
Height
= 20;
23
dataGridView.Rows[3].
Height
= 20;
24
dataGridView.Rows[4].
Height
= 20;
49
dataGridView.Rows[0].
Height
= 20;
50
dataGridView.Rows[1].
Height
= 20;
51
dataGridView.Rows[2].
Height
= 20;
52
dataGridView.Rows[3].
Height
= 20;
53
dataGridView.Rows[4].
Height
= 20;
System\Windows\Forms\DataGridViewCellTests.cs (1)
4874
row.
Height
= 11;
System\Windows\Forms\DataGridViewHeaderCellTests.cs (3)
3176
row.
Height
= 11;
3199
row.
Height
= 11;
3223
row.
Height
= 11;
System\Windows\Forms\DataGridViewRowHeightInfoNeededEventArgsTests.cs (1)
75
row.
Height
= 10;
System\Windows\Forms\DataGridViewRowTests.cs (13)
1915
Height
= value
1920
row.
Height
= value;
1961
row.
Height
= value;
1966
row.
Height
= value;
1991
row.
Height
= 4;
1996
row.
Height
= 4;
2001
row.
Height
= 3;
2007
row.
Height
= 4;
2017
Assert.Throws<ArgumentOutOfRangeException>("value", () => row.
Height
= value);
2053
Assert.Throws<InvalidOperationException>(() => row.
Height
= -1);
3937
Height
= 5,
3980
Height
= 5,
4027
source.
Height
= 5;
33 references to Height
PresentationUI (1)
MS\Internal\Documents\RMPublishingDialog.RightsTable.cs (1)
487
Height = this.RowTemplate.
Height
* 4 + this.ColumnHeadersHeight + 2;
System.Windows.Forms (5)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (1)
480
if (Rows.SharedRow(rowIndex).
Height
< preferredHeight)
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (2)
2727
int width = GetPreferredWidth(rowIndex, OwningRow.
Height
);
2730
if (OwningColumn.Width < width || OwningRow.
Height
< height)
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.cs (2)
220
throw new InvalidOperationException(string.Format(SR.DataGridView_InvalidPropertySetOnSharedRow, nameof(
Height
)));
1817
return
Height
!= DefaultHeight;
System.Windows.Forms.Tests (27)
System\Windows\Forms\DataGridViewRowHeightInfoNeededEventArgsTests.cs (2)
33
Assert.Equal(expected, row.
Height
);
56
Assert.Equal(Control.DefaultFont.Height + 9, row.
Height
);
System\Windows\Forms\DataGridViewRowTests.cs (25)
35
Assert.Equal(Control.DefaultFont.Height + 9, row.
Height
);
1794
Assert.Equal(Control.DefaultFont.Height + 9, row.
Height
);
1811
Assert.Equal(Control.DefaultFont.Height + 9, row.
Height
);
1855
Assert.Equal(expectedHeight, row.
Height
);
1860
Assert.Equal(Control.DefaultFont.Height + 9, row.
Height
);
1890
Assert.Equal(expectedHeight, row.
Height
);
1895
Assert.Equal(Control.DefaultFont.Height + 9, row.
Height
);
1917
Assert.Equal(expected, row.
Height
);
1921
Assert.Equal(expected, row.
Height
);
1962
Assert.Equal(expected, row.
Height
);
1967
Assert.Equal(expected, row.
Height
);
1992
Assert.Equal(4, row.
Height
);
1997
Assert.Equal(4, row.
Height
);
2002
Assert.Equal(3, row.
Height
);
2008
Assert.Equal(4, row.
Height
);
2035
Assert.Equal(Control.DefaultFont.Height + 9, row.
Height
);
2385
Assert.Equal(expectedHeight, row.
Height
);
2390
Assert.Equal(expectedHeight, row.
Height
);
2428
Assert.Equal(expectedHeight, row.
Height
);
2434
Assert.Equal(expectedHeight, row.
Height
);
2489
Assert.Equal(Control.DefaultFont.Height + 9, row.
Height
);
3914
Assert.Equal(Control.DefaultFont.Height + 9, row.
Height
);
3954
Assert.Equal(5, row.
Height
);
3997
Assert.Equal(5, row.
Height
);
4046
Assert.Equal(5, row.
Height
);