DataGridViewButtonCell.GetContentBounds メソッド

定義

セルのコンテンツ領域を囲む外接する四角形を返します。この四角形は、指定した Graphics とセル スタイルを使用して計算されます。

protected:
 override System::Drawing::Rectangle GetContentBounds(System::Drawing::Graphics ^ graphics, System::Windows::Forms::DataGridViewCellStyle ^ cellStyle, int rowIndex);
protected override System.Drawing.Rectangle GetContentBounds(System.Drawing.Graphics graphics, System.Windows.Forms.DataGridViewCellStyle cellStyle, int rowIndex);
override this.GetContentBounds : System.Drawing.Graphics * System.Windows.Forms.DataGridViewCellStyle * int -> System.Drawing.Rectangle
Protected Overrides Function GetContentBounds (graphics As Graphics, cellStyle As DataGridViewCellStyle, rowIndex As Integer) As Rectangle

パラメーター

graphics
Graphics

セルのグラフィックス コンテキスト。

cellStyle
DataGridViewCellStyle

セルに適用する DataGridViewCellStyle

rowIndex
Int32

セルの親行のインデックス。

返品

セルの内容をバインドする Rectangle

適用対象

こちらもご覧ください