ToolStripItemTextRenderEventArgs コンストラクター

定義

ToolStripItemTextRenderEventArgs クラスの新しいインスタンスを初期化します。

オーバーロード

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

指定したテキストとテキスト プロパティを使用して、ToolStripItemTextRenderEventArgs クラスの新しいインスタンスを初期化します。

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

指定したテキストとテキスト プロパティの書式を使用して、ToolStripItemTextRenderEventArgs クラスの新しいインスタンスを初期化します。

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

指定したテキストとテキスト プロパティを使用して、ToolStripItemTextRenderEventArgs クラスの新しいインスタンスを初期化します。

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)

パラメーター

g
Graphics

テキストの描画に使用する Graphics

item
ToolStripItem

テキストを描画する ToolStripItem

text
String

描画されるテキスト。

textRectangle
Rectangle

テキストを描画する境界を表す Rectangle

textColor
Color

テキストの描画に使用する Color

textFont
Font

テキストの描画に使用する Font

textAlign
ContentAlignment

テキストの境界領域における垂直方向および水平方向の配置を指定する ContentAlignment

適用対象

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

指定したテキストとテキスト プロパティの書式を使用して、ToolStripItemTextRenderEventArgs クラスの新しいインスタンスを初期化します。

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)

パラメーター

g
Graphics

テキストの描画に使用する Graphics

item
ToolStripItem

テキストを描画する ToolStripItem

text
String

描画されるテキスト。

textRectangle
Rectangle

テキストを描画する境界を表す Rectangle

textColor
Color

テキストの描画に使用する Color

textFont
Font

テキストの描画に使用する Font

format
TextFormatFlags

テキスト文字列の表示情報とレイアウト情報。

適用対象