DataGridView.ColumnHeadersHeight 属性

定义

获取或设置列标题行的高度(以像素为单位)。Gets or sets the height, in pixels, of the column headers row.

public:
 property int ColumnHeadersHeight { int get(); void set(int value); };
public int ColumnHeadersHeight { get; set; }
member this.ColumnHeadersHeight : int with get, set
Public Property ColumnHeadersHeight As Integer

属性值

列标题行的高度(以像素为单位)。The height, in pixels, of the row that contains the column headers. 默认值为 23。The default is 23.

异常

当设置此属性时,指定的值小于 4 像素的最小高度或大于 32768 像素的最大高度。The specified value when setting this property is less than the minimum height of 4 pixels or is greater than the maximum height of 32768 pixels.

适用于