DataGridColumnStyle.Paint Metoda

Definicja

Po przesłonięciu w klasie pochodnej kolumna jest malowana w kontrolce DataGrid .

Przeciążenia

Paint(Graphics, Rectangle, CurrencyManager, Int32)

Maluje element DataGridColumnStyle z określoną Graphicsliczbą wierszy , Rectangle, CurrencyManageri .

Paint(Graphics, Rectangle, CurrencyManager, Int32, Boolean)

Po przesłonięciu w klasie pochodnej namaluje element DataGridColumnStyle z określonymi Graphicswartościami , Rectangle, CurrencyManager, numerem wiersza i wyrównaniem.

Paint(Graphics, Rectangle, CurrencyManager, Int32, Brush, Brush, Boolean)

Maluje element DataGridColumnStyle z określonymi Graphicswartościami , Rectangle, CurrencyManager, numerem wiersza, kolorem tła, kolorem pierwszego planu i wyrównaniem.

Paint(Graphics, Rectangle, CurrencyManager, Int32)

Maluje element DataGridColumnStyle z określoną Graphicsliczbą wierszy , Rectangle, CurrencyManageri .

protected public:
 abstract void Paint(System::Drawing::Graphics ^ g, System::Drawing::Rectangle bounds, System::Windows::Forms::CurrencyManager ^ source, int rowNum);
protected internal abstract void Paint (System.Drawing.Graphics g, System.Drawing.Rectangle bounds, System.Windows.Forms.CurrencyManager source, int rowNum);
abstract member Paint : System.Drawing.Graphics * System.Drawing.Rectangle * System.Windows.Forms.CurrencyManager * int -> unit
Protected Friend MustOverride Sub Paint (g As Graphics, bounds As Rectangle, source As CurrencyManager, rowNum As Integer)

Parametry

g
Graphics

Element Graphics do rysowania.

bounds
Rectangle

Wiązanie Rectangle do farby do.

source
CurrencyManager

Kontrolka CurrencyManager , DataGrid do którego należy kolumna.

rowNum
Int32

Liczba wierszy w danych bazowych, do których się odwołujesz.

Dotyczy

Paint(Graphics, Rectangle, CurrencyManager, Int32, Boolean)

Po przesłonięciu w klasie pochodnej namaluje element DataGridColumnStyle z określonymi Graphicswartościami , Rectangle, CurrencyManager, numerem wiersza i wyrównaniem.

protected public:
 abstract void Paint(System::Drawing::Graphics ^ g, System::Drawing::Rectangle bounds, System::Windows::Forms::CurrencyManager ^ source, int rowNum, bool alignToRight);
protected internal abstract void Paint (System.Drawing.Graphics g, System.Drawing.Rectangle bounds, System.Windows.Forms.CurrencyManager source, int rowNum, bool alignToRight);
abstract member Paint : System.Drawing.Graphics * System.Drawing.Rectangle * System.Windows.Forms.CurrencyManager * int * bool -> unit
Protected Friend MustOverride Sub Paint (g As Graphics, bounds As Rectangle, source As CurrencyManager, rowNum As Integer, alignToRight As Boolean)

Parametry

g
Graphics

Element Graphics do rysowania.

bounds
Rectangle

Wiązanie Rectangle do farby do.

source
CurrencyManager

Kontrolka CurrencyManager , DataGrid do którego należy kolumna.

rowNum
Int32

Liczba wierszy w danych bazowych, do których się odwołujesz.

alignToRight
Boolean

Wartość wskazująca, czy zawartość kolumny ma być wyrównana do prawej strony. true jeśli zawartość powinna być wyrównana do prawej strony; w przeciwnym razie false.

Dotyczy

Paint(Graphics, Rectangle, CurrencyManager, Int32, Brush, Brush, Boolean)

Maluje element DataGridColumnStyle z określonymi Graphicswartościami , Rectangle, CurrencyManager, numerem wiersza, kolorem tła, kolorem pierwszego planu i wyrównaniem.

protected public:
 virtual void Paint(System::Drawing::Graphics ^ g, System::Drawing::Rectangle bounds, System::Windows::Forms::CurrencyManager ^ source, int rowNum, System::Drawing::Brush ^ backBrush, System::Drawing::Brush ^ foreBrush, bool alignToRight);
protected internal virtual void Paint (System.Drawing.Graphics g, System.Drawing.Rectangle bounds, System.Windows.Forms.CurrencyManager source, int rowNum, System.Drawing.Brush backBrush, System.Drawing.Brush foreBrush, bool alignToRight);
abstract member Paint : System.Drawing.Graphics * System.Drawing.Rectangle * System.Windows.Forms.CurrencyManager * int * System.Drawing.Brush * System.Drawing.Brush * bool -> unit
override this.Paint : System.Drawing.Graphics * System.Drawing.Rectangle * System.Windows.Forms.CurrencyManager * int * System.Drawing.Brush * System.Drawing.Brush * bool -> unit
Protected Friend Overridable Sub Paint (g As Graphics, bounds As Rectangle, source As CurrencyManager, rowNum As Integer, backBrush As Brush, foreBrush As Brush, alignToRight As Boolean)

Parametry

g
Graphics

Element Graphics do rysowania.

bounds
Rectangle

Wiązanie Rectangle do farby do.

source
CurrencyManager

Kontrolka CurrencyManager , DataGrid do którego należy kolumna.

rowNum
Int32

Liczba wierszy w tabeli danych bazowych, do których odwołuje się.

backBrush
Brush

Element Brush używany do malowania koloru tła.

foreBrush
Brush

Element Color używany do malowania koloru pierwszego planu.

alignToRight
Boolean

Wartość wskazująca, czy zawartość ma być wyrównana do prawej strony. true jeśli zawartość jest wyrównana do prawej, w przeciwnym razie wartość false.

Dotyczy