DataGridColumnStyle.Paint Método

Definição

Quando substituído em uma classe derivada, pinta a coluna em um controle DataGrid.When overridden in a derived class, paints the column in a DataGrid control.

Sobrecargas

Paint(Graphics, Rectangle, CurrencyManager, Int32)

Pinta o DataGridColumnStyle com o Graphics, Rectangle, CurrencyManager e o número de linha especificados.Paints the DataGridColumnStyle with the specified Graphics, Rectangle, CurrencyManager, and row number.

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

Quando substituído em uma classe derivada, pinta uma DataGridColumnStyle com o Graphics, Rectangle, CurrencyManager, número de linha e alinhamento especificados.When overridden in a derived class, paints a DataGridColumnStyle with the specified Graphics, Rectangle, CurrencyManager, row number, and alignment.

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

Pinta uma DataGridColumnStyle com o Graphics, Rectangle, CurrencyManager, número da linha, cor da tela de fundo, cor de primeiro plano e alinhamento especificados.Paints a DataGridColumnStyle with the specified Graphics, Rectangle, CurrencyManager, row number, background color, foreground color, and alignment.

Paint(Graphics, Rectangle, CurrencyManager, Int32)

Pinta o DataGridColumnStyle com o Graphics, Rectangle, CurrencyManager e o número de linha especificados.Paints the DataGridColumnStyle with the specified Graphics, Rectangle, CurrencyManager, and row number.

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)

Parâmetros

g
Graphics

O Graphics para o qual desenhar.The Graphics to draw to.

bounds
Rectangle

O Rectangle delimitador no qual pintar.The bounding Rectangle to paint into.

source
CurrencyManager

O CurrencyManager do controle DataGrid ao qual a coluna pertence.The CurrencyManager of the DataGrid control the column belongs to.

rowNum
Int32

O número da linha nos dados subjacente sendo referenciados.The number of the row in the underlying data being referred to.

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

Quando substituído em uma classe derivada, pinta uma DataGridColumnStyle com o Graphics, Rectangle, CurrencyManager, número de linha e alinhamento especificados.When overridden in a derived class, paints a DataGridColumnStyle with the specified Graphics, Rectangle, CurrencyManager, row number, and alignment.

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)

Parâmetros

g
Graphics

O Graphics para o qual desenhar.The Graphics to draw to.

bounds
Rectangle

O Rectangle delimitador no qual pintar.The bounding Rectangle to paint into.

source
CurrencyManager

O CurrencyManager do controle DataGrid ao qual a coluna pertence.The CurrencyManager of the DataGrid control the column belongs to.

rowNum
Int32

O número da linha nos dados subjacente sendo referenciados.The number of the row in the underlying data being referred to.

alignToRight
Boolean

Um valor que indica se o conteúdo da coluna deve ser alinhado à direita.A value indicating whether to align the column's content to the right. true se o conteúdo precisar ser alinhado à direita, caso contrário, false.true if the content should be aligned to the right; otherwise false.

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

Pinta uma DataGridColumnStyle com o Graphics, Rectangle, CurrencyManager, número da linha, cor da tela de fundo, cor de primeiro plano e alinhamento especificados.Paints a DataGridColumnStyle with the specified Graphics, Rectangle, CurrencyManager, row number, background color, foreground color, and alignment.

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)

Parâmetros

g
Graphics

O Graphics para o qual desenhar.The Graphics to draw to.

bounds
Rectangle

O Rectangle delimitador no qual pintar.The bounding Rectangle to paint into.

source
CurrencyManager

O CurrencyManager do controle DataGrid ao qual a coluna pertence.The CurrencyManager of the DataGrid control the column belongs to.

rowNum
Int32

O número da linha na tabela de dados subjacente sendo referenciada.The number of the row in the underlying data table being referred to.

backBrush
Brush

O Brush usado para pintar a cor da tela de fundo.A Brush used to paint the background color.

foreBrush
Brush

O Color usado para pintar a cor de primeiro plano.A Color used to paint the foreground color.

alignToRight
Boolean

Um valor que indica se o conteúdo deve ser alinhado à direita.A value indicating whether to align the content to the right. true se o conteúdo for alinhado à direita, caso contrário, false.true if the content is aligned to the right, otherwise, false.

Aplica-se a