ToolStripItemTextRenderEventArgs Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the ToolStripItemTextRenderEventArgs class.
Overloads
ToolStripItemTextRenderEventArgs(Graphics, ToolStripItem, String, Rectangle, Color, Font, ContentAlignment) |
Initializes a new instance of the ToolStripItemTextRenderEventArgs class with the specified text and text properties. |
ToolStripItemTextRenderEventArgs(Graphics, ToolStripItem, String, Rectangle, Color, Font, TextFormatFlags) |
Initializes a new instance of the ToolStripItemTextRenderEventArgs class with the specified text and text properties format. |
ToolStripItemTextRenderEventArgs(Graphics, ToolStripItem, String, Rectangle, Color, Font, ContentAlignment)
Initializes a new instance of the ToolStripItemTextRenderEventArgs class with the specified text and text properties.
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)
Parameters
- item
- ToolStripItem
The ToolStripItem on which to draw the text.
- text
- String
The text to be drawn.
- textAlign
- ContentAlignment
The ContentAlignment that specifies the vertical and horizontal alignment of the text in the bounding area.
Applies to
ToolStripItemTextRenderEventArgs(Graphics, ToolStripItem, String, Rectangle, Color, Font, TextFormatFlags)
Initializes a new instance of the ToolStripItemTextRenderEventArgs class with the specified text and text properties format.
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)
Parameters
- item
- ToolStripItem
The ToolStripItem on which to draw the text.
- text
- String
The text to be drawn.
- format
- TextFormatFlags
The display and layout information for text strings.