ToolStripItemTextRenderEventArgs Constructores

Definición

Inicializa una nueva instancia de la clase ToolStripItemTextRenderEventArgs.

Sobrecargas

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

Inicializa una nueva instancia de la clase ToolStripItemTextRenderEventArgs con el texto y las propiedades del texto especificadas.

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

Inicializa una nueva instancia de la clase ToolStripItemTextRenderEventArgs con el formato especificado para el texto y las propiedades del texto.

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

Inicializa una nueva instancia de la clase ToolStripItemTextRenderEventArgs con el texto y las propiedades del texto especificadas.

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

Objeto Graphics que se utiliza para dibujar el texto.

item
ToolStripItem

ToolStripItem donde se va a dibujar el texto.

text
String

El texto que se debe dibujar.

textRectangle
Rectangle

Rectangle que representa los límites en los que dibujar el texto.

textColor
Color

Objeto Color que se utiliza para dibujar el texto.

textFont
Font

Objeto Font que se utiliza para dibujar el texto.

textAlign
ContentAlignment

ContentAlignment que especifica la alineación vertical y horizontal del texto en el área delimitada.

Se aplica a

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

Inicializa una nueva instancia de la clase ToolStripItemTextRenderEventArgs con el formato especificado para el texto y las propiedades del texto.

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

Objeto Graphics que se utiliza para dibujar el texto.

item
ToolStripItem

ToolStripItem donde se va a dibujar el texto.

text
String

El texto que se debe dibujar.

textRectangle
Rectangle

Rectangle que representa los límites en los que dibujar el texto.

textColor
Color

Objeto Color que se utiliza para dibujar el texto.

textFont
Font

Objeto Font que se utiliza para dibujar el texto.

format
TextFormatFlags

La información de diseño y de presentación de las cadenas de texto.

Se aplica a