DataGridViewCellPaintingEventArgs Konstruktor
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í.
Inicializuje novou instanci DataGridViewCellPaintingEventArgs třídy.
public:
DataGridViewCellPaintingEventArgs(System::Windows::Forms::DataGridView ^ dataGridView, System::Drawing::Graphics ^ graphics, System::Drawing::Rectangle clipBounds, System::Drawing::Rectangle cellBounds, int rowIndex, int columnIndex, System::Windows::Forms::DataGridViewElementStates cellState, System::Object ^ value, System::Object ^ formattedValue, System::String ^ errorText, System::Windows::Forms::DataGridViewCellStyle ^ cellStyle, System::Windows::Forms::DataGridViewAdvancedBorderStyle ^ advancedBorderStyle, System::Windows::Forms::DataGridViewPaintParts paintParts);
public DataGridViewCellPaintingEventArgs (System.Windows.Forms.DataGridView dataGridView, System.Drawing.Graphics graphics, System.Drawing.Rectangle clipBounds, System.Drawing.Rectangle cellBounds, int rowIndex, int columnIndex, System.Windows.Forms.DataGridViewElementStates cellState, object value, object formattedValue, string errorText, System.Windows.Forms.DataGridViewCellStyle cellStyle, System.Windows.Forms.DataGridViewAdvancedBorderStyle advancedBorderStyle, System.Windows.Forms.DataGridViewPaintParts paintParts);
public DataGridViewCellPaintingEventArgs (System.Windows.Forms.DataGridView dataGridView, System.Drawing.Graphics graphics, System.Drawing.Rectangle clipBounds, System.Drawing.Rectangle cellBounds, int rowIndex, int columnIndex, System.Windows.Forms.DataGridViewElementStates cellState, object? value, object? formattedValue, string? errorText, System.Windows.Forms.DataGridViewCellStyle cellStyle, System.Windows.Forms.DataGridViewAdvancedBorderStyle? advancedBorderStyle, System.Windows.Forms.DataGridViewPaintParts paintParts);
new System.Windows.Forms.DataGridViewCellPaintingEventArgs : System.Windows.Forms.DataGridView * System.Drawing.Graphics * System.Drawing.Rectangle * System.Drawing.Rectangle * int * int * System.Windows.Forms.DataGridViewElementStates * obj * obj * string * System.Windows.Forms.DataGridViewCellStyle * System.Windows.Forms.DataGridViewAdvancedBorderStyle * System.Windows.Forms.DataGridViewPaintParts -> System.Windows.Forms.DataGridViewCellPaintingEventArgs
Public Sub New (dataGridView As DataGridView, graphics As Graphics, clipBounds As Rectangle, cellBounds As Rectangle, rowIndex As Integer, columnIndex As Integer, cellState As DataGridViewElementStates, value As Object, formattedValue As Object, errorText As String, cellStyle As DataGridViewCellStyle, advancedBorderStyle As DataGridViewAdvancedBorderStyle, paintParts As DataGridViewPaintParts)
Parametry
- dataGridView
- DataGridView
Obsahující DataGridView buňku, která má být namalována.
- graphics
- Graphics
Používá Graphics se k malování .DataGridViewCell
- clipBounds
- Rectangle
A Rectangle , který představuje oblast objektu DataGridView , který je potřeba překreslovat.
- cellBounds
- Rectangle
A Rectangle obsahující hranice malovaného objektu DataGridViewCell .
- rowIndex
- Int32
Index řádku malované buňky.
- columnIndex
- Int32
Index sloupce buňky, která se maluje.
- cellState
- DataGridViewElementStates
Bitová kombinace DataGridViewElementStates hodnot, která určuje stav buňky.
- value
- Object
Data, DataGridViewCell která se malují.
- formattedValue
- Object
Formátovaná data DataGridViewCell malovaného.
- errorText
- String
Chybová zpráva přidružená k buňce.
- cellStyle
- DataGridViewCellStyle
A DataGridViewCellStyle , který obsahuje informace o formátování a stylu buňky.
- advancedBorderStyle
- DataGridViewAdvancedBorderStyle
A DataGridViewAdvancedBorderStyle obsahující styly ohraničení pro malovanou buňku.
- paintParts
- DataGridViewPaintParts
Bitové kombinace DataGridViewPaintParts hodnot určující části, které se mají malovat.
Výjimky
paintParts
není platná bitové kombinace DataGridViewPaintParts hodnot.
Platí pro
Viz také
Váš názor
https://aka.ms/ContentUserFeedback.
Připravujeme: V průběhu roku 2024 budeme postupně vyřazovat problémy z GitHub coby mechanismus zpětné vazby pro obsah a nahrazovat ho novým systémem zpětné vazby. Další informace naleznete v tématu:Odeslat a zobrazit názory pro