DataGridViewLinkCell.GetContentBounds(Graphics, DataGridViewCellStyle, Int32) Metoda

Definicja

Zwraca prostokąt związany z obszarem zawartości komórki, który jest obliczany przy użyciu określonego Graphics i stylu komórki.Returns the bounding rectangle that encloses the cell's content area, which is calculated using the specified Graphics and cell style.

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

Parametry

graphics
Graphics

Kontekst grafiki dla komórki.The graphics context for the cell.

cellStyle
DataGridViewCellStyle

DataGridViewCellStyle, która ma zostać zastosowana do komórki.The DataGridViewCellStyle to be applied to the cell.

rowIndex
Int32

Indeks wiersza nadrzędnego komórki.The index of the cell's parent row.

Zwraca

Rectangle

Rectangle, która wiąże zawartość komórki.The Rectangle that bounds the cell's contents.

Dotyczy

Zobacz też