DataGridViewCellPaintingEventArgs Costruttore

Definizione

Inizializza una nuova istanza della classe DataGridViewCellPaintingEventArgs.

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)

Parametri

dataGridView
DataGridView

Controllo DataGridView contenente la cella da disegnare.

graphics
Graphics

Oggetto Graphics usato per disegnare l'oggetto DataGridViewCell.

clipBounds
Rectangle

Oggetto Rectangle che rappresenta l'area dell'oggetto DataGridView da ridisegnare.

cellBounds
Rectangle

Oggetto Rectangle contenente i limiti dell'oggetto DataGridViewCell da disegnare.

rowIndex
Int32

Indice di riga della cella da disegnare.

columnIndex
Int32

Indice di colonna della cella da disegnare.

cellState
DataGridViewElementStates

Combinazione bit per bit dei valori DataGridViewElementStates che specifica lo stato della cella.

value
Object

Dati dell'oggetto DataGridViewCell da disegnare.

formattedValue
Object

Dati formattati dell'oggetto DataGridViewCell da disegnare.

errorText
String

Messaggio di errore associato alla cella.

cellStyle
DataGridViewCellStyle

Oggetto DataGridViewCellStyle contenente le informazioni di formattazione e stile relative alla cella.

advancedBorderStyle
DataGridViewAdvancedBorderStyle

Oggetto DataGridViewAdvancedBorderStyle contenente gli stili del bordo per la cella da disegnare.

paintParts
DataGridViewPaintParts

Combinazione bit per bit dei valori DataGridViewPaintParts che specifica le parti da disegnare.

Eccezioni

dataGridView è null.

-oppure-

graphics è null.

-oppure-

cellStyle è null.

paintParts non è una combinazione bit per bit valida di valori di DataGridViewPaintParts.

Si applica a

Vedi anche