DataGridViewCell.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.
Přetížení
| Name | Description |
|---|---|
| GetContentBounds(Int32) |
Vrátí ohraničující obdélník ohraničující oblast obsahu buňky pomocí výchozího Graphics stylu buňky, který je aktuálně pro buňku v platnosti. |
| GetContentBounds(Graphics, DataGridViewCellStyle, Int32) |
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 stylu buňky. |
GetContentBounds(Int32)
- Zdroj:
- DataGridViewCell.cs
- Zdroj:
- DataGridViewCell.cs
- Zdroj:
- DataGridViewCell.cs
- Zdroj:
- DataGridViewCell.cs
- Zdroj:
- DataGridViewCell.cs
Vrátí ohraničující obdélník ohraničující oblast obsahu buňky pomocí výchozího Graphics stylu buňky, který je aktuálně pro buňku v platnosti.
public:
System::Drawing::Rectangle GetContentBounds(int rowIndex);
public System.Drawing.Rectangle GetContentBounds(int rowIndex);
member this.GetContentBounds : int -> System.Drawing.Rectangle
Public Function GetContentBounds (rowIndex As Integer) As Rectangle
Parametry
- rowIndex
- Int32
Index nadřazeného řádku buňky.
Návraty
Ten Rectangle ohraničuje obsah buňky.
Výjimky
Zadaná rowIndex hodnota je menší než 0 nebo větší než počet řádků v ovládacím prvku minus 1.
ColumnIndex je menší než 0, což znamená, že buňka je buňka záhlaví řádku.
Poznámky
Velikost obsahu buňky se při zavolání této metody vypočítá dynamicky. Implementace základní třídy vždy vrátí Rectangle.Empty.
Viz také
Platí pro
GetContentBounds(Graphics, DataGridViewCellStyle, Int32)
- Zdroj:
- DataGridViewCell.cs
- Zdroj:
- DataGridViewCell.cs
- Zdroj:
- DataGridViewCell.cs
- Zdroj:
- DataGridViewCell.cs
- Zdroj:
- DataGridViewCell.cs
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 stylu buňky.
protected:
virtual System::Drawing::Rectangle GetContentBounds(System::Drawing::Graphics ^ graphics, System::Windows::Forms::DataGridViewCellStyle ^ cellStyle, int rowIndex);
protected virtual System.Drawing.Rectangle GetContentBounds(System.Drawing.Graphics graphics, System.Windows.Forms.DataGridViewCellStyle cellStyle, int rowIndex);
abstract member GetContentBounds : System.Drawing.Graphics * System.Windows.Forms.DataGridViewCellStyle * int -> System.Drawing.Rectangle
override this.GetContentBounds : System.Drawing.Graphics * System.Windows.Forms.DataGridViewCellStyle * int -> System.Drawing.Rectangle
Protected Overridable 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.
Poznámky
Velikost obsahu buňky se při zavolání této metody vypočítá dynamicky. Implementace základní třídy vždy vrátí Rectangle.Empty.
Tato metoda se volá interně při ContentBounds čtení vlastnosti.