DataGridView.GetRowDisplayRectangle(Int32, Boolean) メソッド

定義

行インデックスによって決定される行の表示領域を表す四角形を返します。

public:
 System::Drawing::Rectangle GetRowDisplayRectangle(int rowIndex, bool cutOverflow);
public System.Drawing.Rectangle GetRowDisplayRectangle(int rowIndex, bool cutOverflow);
member this.GetRowDisplayRectangle : int * bool -> System.Drawing.Rectangle
Public Function GetRowDisplayRectangle (rowIndex As Integer, cutOverflow As Boolean) As Rectangle

パラメーター

rowIndex
Int32

目的のセルの行インデックス。

cutOverflow
Boolean

true DataGridView境界に表示されている行の四角形を返す場合は。行の四角形全体を返false

返品

行の表示四角形を表す Rectangle

例外

rowIndex が 0 から行数から 1 を引いた有効な範囲にありません。

適用対象

こちらもご覧ください