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 的有效範圍內。
適用於
另請參閱
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應