DataGridViewColumnHeaderCell.GetContentBounds Metoda
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
Vrátí ohraničující obdélník, který ohraničuje oblast obsahu buňky, která se vypočítá pomocí zadaného Graphics objektu a stylu 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
Použije DataGridViewCellStyle se na buňku.
- rowIndex
- Int32
Index nadřazeného řádku buňky.
Návraty
Ten Rectangle ohraničuje obsah buňky.
Výjimky
rowIndex není -1.
Poznámky
Velikost obsahu buňky se při zavolání této metody vypočítá dynamicky. Tato metoda se volá interně při ContentBounds čtení vlastnosti.