DataGridViewButtonCell.GetContentBounds Methode

Definition

Gibt das den Inhaltsbereich einer Zelle umschließende Rechteck zurück, das mithilfe der angegebenen Graphics und des Zellstils berechnet wird.

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

Parameter

graphics
Graphics

Der Grafikkontext für die Zelle.

cellStyle
DataGridViewCellStyle

Der DataGridViewCellStyle, der auf die Zelle angewendet werden soll.

rowIndex
Int32

Der Index der übergeordneten Zeile der Zelle.

Gibt zurück

Das Rectangle, das den Inhalt der Zelle umschließt.

Gilt für:

Weitere Informationen