ToolStripItemTextRenderEventArgs Constructors

Definition

Initializes a new instance of the ToolStripItemTextRenderEventArgs class.

Overloads

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

Source:
ToolStripItemTextRenderEventArgs.cs
Source:
ToolStripItemTextRenderEventArgs.cs
Source:
ToolStripItemTextRenderEventArgs.cs

Initializes a new instance of the ToolStripItemTextRenderEventArgs class with the specified text and text properties.

C#
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);
C#
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);

Parameters

g
Graphics

The Graphics used to draw the text.

item
ToolStripItem

The ToolStripItem on which to draw the text.

text
String

The text to be drawn.

textRectangle
Rectangle

The Rectangle that represents the bounds to draw the text in.

textColor
Color

The Color used to draw the text.

textFont
Font

The Font used to draw the text.

textAlign
ContentAlignment

The ContentAlignment that specifies the vertical and horizontal alignment of the text in the bounding area.

Applies to

.NET Framework 4.8.1 a ďalšie verzie
Produkt Verzie
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

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

Source:
ToolStripItemTextRenderEventArgs.cs
Source:
ToolStripItemTextRenderEventArgs.cs
Source:
ToolStripItemTextRenderEventArgs.cs

Initializes a new instance of the ToolStripItemTextRenderEventArgs class with the specified text and text properties format.

C#
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);
C#
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);

Parameters

g
Graphics

The Graphics used to draw the text.

item
ToolStripItem

The ToolStripItem on which to draw the text.

text
String

The text to be drawn.

textRectangle
Rectangle

The Rectangle that represents the bounds to draw the text in.

textColor
Color

The Color used to draw the text.

textFont
Font

The Font used to draw the text.

format
TextFormatFlags

The display and layout information for text strings.

Applies to

.NET Framework 4.8.1 a ďalšie verzie
Produkt Verzie
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10