DataGridView.GetColumnDisplayRectangle(Int32, Boolean) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
傳回矩形,代表數據行的顯示區域,由數據行索引決定。
public:
System::Drawing::Rectangle GetColumnDisplayRectangle(int columnIndex, bool cutOverflow);
public System.Drawing.Rectangle GetColumnDisplayRectangle(int columnIndex, bool cutOverflow);
member this.GetColumnDisplayRectangle : int * bool -> System.Drawing.Rectangle
Public Function GetColumnDisplayRectangle (columnIndex As Integer, cutOverflow As Boolean) As Rectangle
參數
- columnIndex
- Int32
目標儲存格的欄位索引。
- cutOverflow
- Boolean
true 返回界內 DataGridView 可見的欄位矩形; false 返回整個欄位矩形。
傳回
那 Rectangle 代表該欄的顯示矩形。
例外狀況
columnIndex 不在 0 的欄數減 1 的有效範圍內。