Language

ControlPaint.DrawMenuGlyph メソッド

定義

メニュー項目コントロールにメニュー グリフを描画します。

オーバーロード

名前 説明
DrawMenuGlyph(Graphics, Rectangle, MenuGlyph)

指定した境界内および指定したサーフェイス上のメニュー項目コントロールに、指定したメニュー グリフを描画します。

DrawMenuGlyph(Graphics, Rectangle, MenuGlyph, Color, Color)

指定した境界内および指定したサーフェイス上のメニュー項目コントロールに、指定したメニュー グリフを描画し、 White を backColor パラメーターで指定された色に置き換え、 Black を foreColor パラメーターで指定された色に置き換えます。

DrawMenuGlyph(Graphics, Int32, Int32, Int32, Int32, MenuGlyph)

指定した境界を持つメニュー項目コントロールと、指定したサーフェス上に、指定したメニュー グリフを描画します。

DrawMenuGlyph(Graphics, Int32, Int32, Int32, Int32, MenuGlyph, Color, Color)

指定したサーフェス上の指定した座標、高さ、幅内のメニュー項目コントロールに、指定したメニュー グリフを描画し、 White を backColor パラメーターで指定された色に置き換え、 Black を foreColor パラメーターで指定された色に置き換えます。

DrawMenuGlyph(Graphics, Rectangle, MenuGlyph)

ソース:
ControlPaint.cs
ソース:
ControlPaint.cs
ソース:
ControlPaint.cs
ソース:
ControlPaint.cs
ソース:
ControlPaint.cs

指定した境界内および指定したサーフェイス上のメニュー項目コントロールに、指定したメニュー グリフを描画します。

public:
 static void DrawMenuGlyph(System::Drawing::Graphics ^ graphics, System::Drawing::Rectangle rectangle, System::Windows::Forms::MenuGlyph glyph);
public static void DrawMenuGlyph(System.Drawing.Graphics graphics, System.Drawing.Rectangle rectangle, System.Windows.Forms.MenuGlyph glyph);
static member DrawMenuGlyph : System.Drawing.Graphics * System.Drawing.Rectangle * System.Windows.Forms.MenuGlyph -> unit
Public Shared Sub DrawMenuGlyph (graphics As Graphics, rectangle As Rectangle, glyph As MenuGlyph)

パラメーター

graphics
Graphics

描画する Graphics 。

rectangle
Rectangle

グリフの次元を表す Rectangle 。

glyph
MenuGlyph

描画するイメージを指定する MenuGlyph 値の 1 つ。

注釈

所有者描画 MenuItem コントロールでは、描画または削除する適切なグリフを決定するプロパティ値を確認する必要があります。 たとえば、MenuItem.Checked プロパティが true に設定されている場合は、CheckmarkのMenuGlyph値を呼び出して、MenuItemにチェック マークを描画する必要があります。

こちらもご覧ください

適用対象

DrawMenuGlyph(Graphics, Rectangle, MenuGlyph, Color, Color)

ソース:
ControlPaint.cs
ソース:
ControlPaint.cs
ソース:
ControlPaint.cs
ソース:
ControlPaint.cs
ソース:
ControlPaint.cs

指定した境界内および指定したサーフェイス上のメニュー項目コントロールに、指定したメニュー グリフを描画し、 White を backColor パラメーターで指定された色に置き換え、 Black を foreColor パラメーターで指定された色に置き換えます。

public:
 static void DrawMenuGlyph(System::Drawing::Graphics ^ graphics, System::Drawing::Rectangle rectangle, System::Windows::Forms::MenuGlyph glyph, System::Drawing::Color foreColor, System::Drawing::Color backColor);
public static void DrawMenuGlyph(System.Drawing.Graphics graphics, System.Drawing.Rectangle rectangle, System.Windows.Forms.MenuGlyph glyph, System.Drawing.Color foreColor, System.Drawing.Color backColor);
static member DrawMenuGlyph : System.Drawing.Graphics * System.Drawing.Rectangle * System.Windows.Forms.MenuGlyph * System.Drawing.Color * System.Drawing.Color -> unit
Public Shared Sub DrawMenuGlyph (graphics As Graphics, rectangle As Rectangle, glyph As MenuGlyph, foreColor As Color, backColor As Color)

パラメーター

graphics
Graphics

描画する Graphics 。

rectangle
Rectangle

グリフの次元を表す Rectangle 。

glyph
MenuGlyph

描画するイメージを指定する MenuGlyph 値の 1 つ。

foreColor
Color

前景色として White を置き換える色。

backColor
Color

背景色として Black を置き換える色。

注釈

所有者描画 MenuItem コントロールでは、描画または削除する適切なグリフを決定するプロパティ値を確認する必要があります。 たとえば、MenuItem.Checked プロパティが true に設定されている場合は、CheckmarkのMenuGlyph値を呼び出して、MenuItemにチェック マークを描画する必要があります。

こちらもご覧ください

適用対象

DrawMenuGlyph(Graphics, Int32, Int32, Int32, Int32, MenuGlyph)

ソース:
ControlPaint.cs
ソース:
ControlPaint.cs
ソース:
ControlPaint.cs
ソース:
ControlPaint.cs
ソース:
ControlPaint.cs

指定した境界を持つメニュー項目コントロールと、指定したサーフェス上に、指定したメニュー グリフを描画します。

public:
 static void DrawMenuGlyph(System::Drawing::Graphics ^ graphics, int x, int y, int width, int height, System::Windows::Forms::MenuGlyph glyph);
public static void DrawMenuGlyph(System.Drawing.Graphics graphics, int x, int y, int width, int height, System.Windows.Forms.MenuGlyph glyph);
static member DrawMenuGlyph : System.Drawing.Graphics * int * int * int * int * System.Windows.Forms.MenuGlyph -> unit
Public Shared Sub DrawMenuGlyph (graphics As Graphics, x As Integer, y As Integer, width As Integer, height As Integer, glyph As MenuGlyph)

パラメーター

graphics
Graphics

描画する Graphics 。

x
Int32

描画四角形の左上隅の x 座標。

y
Int32

描画四角形の左上隅の y 座標。

width
Int32

メニュー グリフの幅。

height
Int32

メニュー グリフの高さ。

glyph
MenuGlyph

描画するイメージを指定する MenuGlyph 値の 1 つ。

注釈

所有者描画 MenuItem コントロールでは、描画または削除する適切なグリフを決定するプロパティ値を確認する必要があります。 たとえば、MenuItem.Checked プロパティが true に設定されている場合は、CheckmarkのMenuGlyph値を呼び出して、MenuItemにチェック マークを描画します。

適用対象

DrawMenuGlyph(Graphics, Int32, Int32, Int32, Int32, MenuGlyph, Color, Color)

ソース:
ControlPaint.cs
ソース:
ControlPaint.cs
ソース:
ControlPaint.cs
ソース:
ControlPaint.cs
ソース:
ControlPaint.cs

指定したサーフェス上の指定した座標、高さ、幅内のメニュー項目コントロールに、指定したメニュー グリフを描画し、 White を backColor パラメーターで指定された色に置き換え、 Black を foreColor パラメーターで指定された色に置き換えます。

public:
 static void DrawMenuGlyph(System::Drawing::Graphics ^ graphics, int x, int y, int width, int height, System::Windows::Forms::MenuGlyph glyph, System::Drawing::Color foreColor, System::Drawing::Color backColor);
public static void DrawMenuGlyph(System.Drawing.Graphics graphics, int x, int y, int width, int height, System.Windows.Forms.MenuGlyph glyph, System.Drawing.Color foreColor, System.Drawing.Color backColor);
static member DrawMenuGlyph : System.Drawing.Graphics * int * int * int * int * System.Windows.Forms.MenuGlyph * System.Drawing.Color * System.Drawing.Color -> unit
Public Shared Sub DrawMenuGlyph (graphics As Graphics, x As Integer, y As Integer, width As Integer, height As Integer, glyph As MenuGlyph, foreColor As Color, backColor As Color)

パラメーター

graphics
Graphics

描画する Graphics 。

x
Int32

描画四角形の左上隅の x 座標。

y
Int32

描画四角形の左上隅の y 座標。

width
Int32

メニュー グリフの幅。

height
Int32

メニュー グリフの高さ。

glyph
MenuGlyph

描画するイメージを指定する MenuGlyph 値の 1 つ。

foreColor
Color

前景色として White を置き換える色。

backColor
Color

背景色として Black を置き換える色。

注釈

所有者描画 MenuItem コントロールでは、描画または削除する適切なグリフを決定するプロパティ値を確認する必要があります。 たとえば、MenuItem.Checked プロパティが true に設定されている場合は、CheckmarkのMenuGlyph値を呼び出して、MenuItemにチェック マークを描画する必要があります。

こちらもご覧ください

適用対象