DataGridViewHeaderCell.Resizable 属性

定义

获取一个值,该值指示单元格是否大小可调。Gets a value indicating whether the cell is resizable.

public:
 virtual property bool Resizable { bool get(); };
[System.ComponentModel.Browsable(false)]
public override bool Resizable { get; }
[<System.ComponentModel.Browsable(false)>]
member this.Resizable : bool
Public Overrides ReadOnly Property Resizable As Boolean

属性值

Boolean

如果该单元格大小可调,则为 true;否则为 falsetrue if this cell can be resized; otherwise, false. 如果单元格并未附加到 DataGridView,则默认值为 falseThe default is false if the cell is not attached to a DataGridView.

属性

注解

如果行可以调整大小或 RowHeadersWidthSizeMode 将属性设置为,则可调整行标题单元格的大小 EnableResizingA row header cell is resizable if the row is resizable or the RowHeadersWidthSizeMode property is set to EnableResizing. 如果列可以调整大小或 ColumnHeadersHeightSizeMode 将属性设置为,则可以调整列标题单元格的大小 EnableResizingA column header cell is resizable if the column is resizable or the ColumnHeadersHeightSizeMode property is set to EnableResizing.

适用于

另请参阅