ToolStripItemTextRenderEventArgs Costruttori

Definizione

Inizializza una nuova istanza della classe ToolStripItemTextRenderEventArgs.

Overload

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

Inizializza una nuova istanza della classe ToolStripItemTextRenderEventArgs con il testo e le proprietà del testo specificati.

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

Inizializza una nuova istanza della classe ToolStripItemTextRenderEventArgs con il testo e il formato delle proprietà di testo specificati.

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

Inizializza una nuova istanza della classe ToolStripItemTextRenderEventArgs con il testo e le proprietà del testo specificati.

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)

Parametri

g
Graphics

Oggetto Graphics utilizzato per disegnare il testo.

item
ToolStripItem

Classe ToolStripItem sulla quale disegnare il testo.

text
String

Testo da tracciare.

textRectangle
Rectangle

Oggetto Rectangle che rappresenta i limiti entro i quali creare il testo.

textColor
Color

Oggetto Color utilizzato per disegnare il testo.

textFont
Font

Oggetto Font utilizzato per disegnare il testo.

textAlign
ContentAlignment

Oggetto ContentAlignment che specifica l'allineamento verticale e orizzontale del testo nell'area di delimitazione.

Si applica a

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

Inizializza una nuova istanza della classe ToolStripItemTextRenderEventArgs con il testo e il formato delle proprietà di testo specificati.

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)

Parametri

g
Graphics

Oggetto Graphics utilizzato per disegnare il testo.

item
ToolStripItem

Classe ToolStripItem sulla quale disegnare il testo.

text
String

Testo da tracciare.

textRectangle
Rectangle

Oggetto Rectangle che rappresenta i limiti entro i quali creare il testo.

textColor
Color

Oggetto Color utilizzato per disegnare il testo.

textFont
Font

Oggetto Font utilizzato per disegnare il testo.

format
TextFormatFlags

Informazioni sulla visualizzazione e il layout per le stringhe di testo.

Si applica a