DataGridViewComboBoxCell.Paint Metoda

Definice

Vykreslí aktuální DataGridViewComboBoxCell.

protected:
 override void Paint(System::Drawing::Graphics ^ graphics, System::Drawing::Rectangle clipBounds, System::Drawing::Rectangle cellBounds, int rowIndex, System::Windows::Forms::DataGridViewElementStates elementState, System::Object ^ value, System::Object ^ formattedValue, System::String ^ errorText, System::Windows::Forms::DataGridViewCellStyle ^ cellStyle, System::Windows::Forms::DataGridViewAdvancedBorderStyle ^ advancedBorderStyle, System::Windows::Forms::DataGridViewPaintParts paintParts);
protected override void Paint (System.Drawing.Graphics graphics, System.Drawing.Rectangle clipBounds, System.Drawing.Rectangle cellBounds, int rowIndex, System.Windows.Forms.DataGridViewElementStates elementState, object value, object formattedValue, string errorText, System.Windows.Forms.DataGridViewCellStyle cellStyle, System.Windows.Forms.DataGridViewAdvancedBorderStyle advancedBorderStyle, System.Windows.Forms.DataGridViewPaintParts paintParts);
protected override void Paint (System.Drawing.Graphics graphics, System.Drawing.Rectangle clipBounds, System.Drawing.Rectangle cellBounds, int rowIndex, System.Windows.Forms.DataGridViewElementStates elementState, object? value, object? formattedValue, string? errorText, System.Windows.Forms.DataGridViewCellStyle cellStyle, System.Windows.Forms.DataGridViewAdvancedBorderStyle advancedBorderStyle, System.Windows.Forms.DataGridViewPaintParts paintParts);
override this.Paint : System.Drawing.Graphics * System.Drawing.Rectangle * System.Drawing.Rectangle * int * System.Windows.Forms.DataGridViewElementStates * obj * obj * string * System.Windows.Forms.DataGridViewCellStyle * System.Windows.Forms.DataGridViewAdvancedBorderStyle * System.Windows.Forms.DataGridViewPaintParts -> unit
Protected Overrides Sub Paint (graphics As Graphics, clipBounds As Rectangle, cellBounds As Rectangle, rowIndex As Integer, elementState As DataGridViewElementStates, value As Object, formattedValue As Object, errorText As String, cellStyle As DataGridViewCellStyle, advancedBorderStyle As DataGridViewAdvancedBorderStyle, paintParts As DataGridViewPaintParts)

Parametry

graphics
Graphics

Slouží Graphics k malování buňky.

clipBounds
Rectangle

A Rectangle , který představuje oblast objektu DataGridView , který je potřeba překreslovat.

cellBounds
Rectangle

A Rectangle obsahující hranice malované buňky.

rowIndex
Int32

Index řádku malované buňky.

elementState
DataGridViewElementStates

Bitové kombinace DataGridViewElementStates hodnot, které určují stav buňky.

value
Object

Data malované buňky.

formattedValue
Object

Formátovaná data malované buňky.

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, která určuje, které části buňky je třeba namalovat.

Platí pro