DataGridViewComboBoxCell.Paint Metoda
Definicja
Ważny
Niektóre informacje dotyczą produktów przedpremierowych, które mogą zostać znacznie zmodyfikowane przed premierą. Microsoft nie udziela żadnych gwarancji, ani wyraźnych, ani domniemanych, dotyczących informacji podanych tutaj.
Maluje bieżący element 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
- clipBounds
- Rectangle
Obiekt Rectangle , który reprezentuje obszar DataGridView , który musi zostać przemalowany.
- rowIndex
- Int32
Indeks wiersza komórki, która jest malowana.
- elementState
- DataGridViewElementStates
Bitowa kombinacja DataGridViewElementStates wartości, która określa stan komórki.
- value
- Object
Dane komórki, która jest malowana.
- formattedValue
- Object
Sformatowane dane komórki, która jest malowana.
- errorText
- String
Komunikat o błędzie skojarzony z komórką.
- cellStyle
- DataGridViewCellStyle
Obiekt DataGridViewCellStyle zawierający informacje o formatowaniu i stylu dotyczące komórki.
- advancedBorderStyle
- DataGridViewAdvancedBorderStyle
Obiekt DataGridViewAdvancedBorderStyle zawierający style obramowania dla komórki, która jest malowana.
- paintParts
- DataGridViewPaintParts
Bitowa kombinacja DataGridViewPaintParts wartości określających, które części komórki należy malować.