Sdílet prostřednictvím


DataGridViewLinkCell.GetContentBounds Metoda

Definice

Vrátí ohraničující obdélník, který ohraničuje oblast obsahu buňky, která se vypočítá pomocí zadaného Graphics stylu a buňky.

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

Kontext grafiky pro buňku

cellStyle
DataGridViewCellStyle

Hodnota DataGridViewCellStyle , která se použije na buňku.

rowIndex
Int32

Index nadřazeného řádku buňky

Návraty

Objekt Rectangle , který váže obsah buňky.

Platí pro

Viz také