DataGridViewLinkCell.Paint Metoda

Definicja

Maluje bieżący element DataGridViewCell.

protected:
 override void Paint(System::Drawing::Graphics ^ graphics, System::Drawing::Rectangle clipBounds, System::Drawing::Rectangle cellBounds, int rowIndex, 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);
protected override void Paint (System.Drawing.Graphics graphics, System.Drawing.Rectangle clipBounds, System.Drawing.Rectangle cellBounds, int rowIndex, 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);
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, cellState As DataGridViewElementStates, value As Object, formattedValue As Object, errorText As String, cellStyle As DataGridViewCellStyle, advancedBorderStyle As DataGridViewAdvancedBorderStyle, paintParts As DataGridViewPaintParts)

Parametry

graphics
Graphics

Używany Graphics do malowania .DataGridViewCell

clipBounds
Rectangle

Obiekt Rectangle , który reprezentuje obszar DataGridView , który musi zostać przemalowany.

cellBounds
Rectangle

Obiekt Rectangle , który zawiera granice DataGridViewCell malowanego obiektu.

rowIndex
Int32

Indeks wiersza komórki, która jest malowana.

cellState
DataGridViewElementStates

Bitowa kombinacja DataGridViewElementStates wartości, która określa stan komórki.

value
Object

Dane, DataGridViewCell które są malowane.

formattedValue
Object

Sformatowane dane DataGridViewCell , które są malowane.

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ć.

Dotyczy

Zobacz też