Bahasa

DataGridViewTextBoxCell.GetContentBounds Metode

Definisi

Mengembalikan persegi panjang pembatas yang mengapit area konten sel, yang dihitung menggunakan gaya sel dan yang ditentukan 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

Parameter

graphics
Graphics

Konteks grafik untuk sel.

cellStyle
DataGridViewCellStyle

yang DataGridViewCellStyle akan diterapkan ke sel.

rowIndex
Int32

Indeks baris induk sel.

Mengembalikan

Yang Rectangle mengikat konten sel.

Berlaku untuk

Lihat juga