Compartilhar via


ToolStripItemTextRenderEventArgs Construtores

Definição

Inicializa uma nova instância da classe ToolStripItemTextRenderEventArgs.

Sobrecargas

ToolStripItemTextRenderEventArgs(Graphics, ToolStripItem, String, Rectangle, Color, Font, ContentAlignment)

Inicializa uma nova instância da classe ToolStripItemTextRenderEventArgs com o texto e as propriedades de texto especificados.

ToolStripItemTextRenderEventArgs(Graphics, ToolStripItem, String, Rectangle, Color, Font, TextFormatFlags)

Inicializa uma nova instância da classe ToolStripItemTextRenderEventArgs com o texto e o formato das propriedades de texto especificados.

ToolStripItemTextRenderEventArgs(Graphics, ToolStripItem, String, Rectangle, Color, Font, ContentAlignment)

Inicializa uma nova instância da classe ToolStripItemTextRenderEventArgs com o texto e as propriedades de texto especificados.

public:
 ToolStripItemTextRenderEventArgs(System::Drawing::Graphics ^ g, System::Windows::Forms::ToolStripItem ^ item, System::String ^ text, System::Drawing::Rectangle textRectangle, System::Drawing::Color textColor, System::Drawing::Font ^ textFont, System::Drawing::ContentAlignment textAlign);
public ToolStripItemTextRenderEventArgs (System.Drawing.Graphics g, System.Windows.Forms.ToolStripItem item, string text, System.Drawing.Rectangle textRectangle, System.Drawing.Color textColor, System.Drawing.Font textFont, System.Drawing.ContentAlignment textAlign);
public ToolStripItemTextRenderEventArgs (System.Drawing.Graphics g, System.Windows.Forms.ToolStripItem item, string? text, System.Drawing.Rectangle textRectangle, System.Drawing.Color textColor, System.Drawing.Font? textFont, System.Drawing.ContentAlignment textAlign);
new System.Windows.Forms.ToolStripItemTextRenderEventArgs : System.Drawing.Graphics * System.Windows.Forms.ToolStripItem * string * System.Drawing.Rectangle * System.Drawing.Color * System.Drawing.Font * System.Drawing.ContentAlignment -> System.Windows.Forms.ToolStripItemTextRenderEventArgs
Public Sub New (g As Graphics, item As ToolStripItem, text As String, textRectangle As Rectangle, textColor As Color, textFont As Font, textAlign As ContentAlignment)

Parâmetros

g
Graphics

O Graphics usado para desenhar o texto.

item
ToolStripItem

O ToolStripItem no qual desenhar o texto.

text
String

O texto a ser desenhado.

textRectangle
Rectangle

O Rectangle que representa os limites nos quais desenhar o texto.

textColor
Color

O Color usado para desenhar o texto.

textFont
Font

O Font usado para desenhar o texto.

textAlign
ContentAlignment

O ContentAlignment que especifica o alinhamento horizontal e vertical do texto na área delimitadora.

Aplica-se a

ToolStripItemTextRenderEventArgs(Graphics, ToolStripItem, String, Rectangle, Color, Font, TextFormatFlags)

Inicializa uma nova instância da classe ToolStripItemTextRenderEventArgs com o texto e o formato das propriedades de texto especificados.

public:
 ToolStripItemTextRenderEventArgs(System::Drawing::Graphics ^ g, System::Windows::Forms::ToolStripItem ^ item, System::String ^ text, System::Drawing::Rectangle textRectangle, System::Drawing::Color textColor, System::Drawing::Font ^ textFont, System::Windows::Forms::TextFormatFlags format);
public ToolStripItemTextRenderEventArgs (System.Drawing.Graphics g, System.Windows.Forms.ToolStripItem item, string text, System.Drawing.Rectangle textRectangle, System.Drawing.Color textColor, System.Drawing.Font textFont, System.Windows.Forms.TextFormatFlags format);
public ToolStripItemTextRenderEventArgs (System.Drawing.Graphics g, System.Windows.Forms.ToolStripItem item, string? text, System.Drawing.Rectangle textRectangle, System.Drawing.Color textColor, System.Drawing.Font? textFont, System.Windows.Forms.TextFormatFlags format);
new System.Windows.Forms.ToolStripItemTextRenderEventArgs : System.Drawing.Graphics * System.Windows.Forms.ToolStripItem * string * System.Drawing.Rectangle * System.Drawing.Color * System.Drawing.Font * System.Windows.Forms.TextFormatFlags -> System.Windows.Forms.ToolStripItemTextRenderEventArgs
Public Sub New (g As Graphics, item As ToolStripItem, text As String, textRectangle As Rectangle, textColor As Color, textFont As Font, format As TextFormatFlags)

Parâmetros

g
Graphics

O Graphics usado para desenhar o texto.

item
ToolStripItem

O ToolStripItem no qual desenhar o texto.

text
String

O texto a ser desenhado.

textRectangle
Rectangle

O Rectangle que representa os limites nos quais desenhar o texto.

textColor
Color

O Color usado para desenhar o texto.

textFont
Font

O Font usado para desenhar o texto.

format
TextFormatFlags

As informações de exibição e layout para cadeias de texto.

Aplica-se a