DataGridViewRowHeaderCell.GetContentBounds Methode

Definition

Gibt das umgebende Rechteck zurück, das den Inhaltsbereich der Zelle einschließt, das mit der angegebenen Graphics Und Zellenformatvorlage 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 auf die Zelle angewendet werden soll.

rowIndex
Int32

Der Index der übergeordneten Zeile der Zelle.

Gibt zurück

Der Rectangle Inhalt der Zelle begrenzt.

Gilt für:

Weitere Informationen