ToolStrip.Renderer プロパティ
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)

Dim instance As ToolStrip Dim value As ToolStripRenderer value = instance.Renderer instance.Renderer = value
public: property ToolStripRenderer^ Renderer { ToolStripRenderer^ get (); void set (ToolStripRenderer^ value); }
/** @property */ public ToolStripRenderer get_Renderer () /** @property */ public void set_Renderer (ToolStripRenderer value)
public function get Renderer () : ToolStripRenderer public function set Renderer (value : ToolStripRenderer)
ToolStrip の外観をカスタマイズするために使用される ToolStripRenderer。

ウィンドウ ハンドルがない任意の ToolStripItem の外観をカスタマイズするには、Renderer プロパティおよび ToolStripRenderer クラスを使用します。
これを行うには、ToolStripRenderer からクラスを派生して、Renderer プロパティに割り当て、Invalidate メソッドを呼び出します。

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


ToolStripRenderer イベント

名前 | 説明 | |
---|---|---|
![]() | RenderArrow | ToolStripItem 上の矢印が描画されたときに発生します。 |
![]() | RenderButtonBackground | ToolStripButton の背景が描画されたときに発生します。 |
![]() | RenderDropDownButtonBackground | ToolStripDropDownButton の背景が描画されたときに発生します。 |
![]() | RenderGrip | ToolStrip の移動ハンドルが描画されたときに発生します。 |
![]() | RenderImageMargin | イメージとそのコンテナとの間にマージンを描画します。 |
![]() | RenderItemBackground | ToolStripItem の背景が描画されたときに発生します。 |
![]() | RenderItemCheck | 選択済みの ToolStripItem のイメージが描画されたときに発生します。 |
![]() | RenderItemImage | ToolStripItem のイメージが描画されたときに発生します。 |
![]() | RenderItemText | ToolStripItem のテキストが描画されたときに発生します。 |
![]() | RenderLabelBackground | ToolStripLabel の背景が描画されたときに発生します。 |
![]() | RenderMenuItemBackground | ToolStripMenuItem の背景が描画されたときに発生します。 |
![]() | RenderOverflowButtonBackground | オーバーフロー ボタンの背景が描画されたときに発生します。 |
![]() | RenderSeparator | ToolStripSeparator が描画されたときに発生します。 |
![]() | RenderSplitButtonBackground | ToolStripSplitButton の背景が描画されたときに発生します。 |
![]() | RenderStatusStripSizingGrip | 表示スタイルが変更されたときに発生します。 |
![]() | RenderToolStripBackground | ToolStrip の背景が描画されたときに発生します。 |
![]() | RenderToolStripBorder | ToolStrip の境界線が描画されたときに発生します。 |
![]() | RenderToolStripContentPanelBackground | ToolStripContentPanel の背景を描画します。 |
![]() | RenderToolStripPanelBackground | ToolStripPanel の背景を描画します。 |
![]() | RenderToolStripStatusLabelBackground | ToolStripStatusLabel の背景を描画します。 |

ToolStripRenderer クラス
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)


ToolStripRenderer クラスを使用すると、特定のスタイルやテーマを ToolStrip オブジェクトに簡単に適用できます。ToolStrip とそれに含まれる ToolStripItem オブジェクトをカスタム描画する代わりに、ToolStrip.Renderer プロパティを ToolStripRenderer から継承するオブジェクトに設定します。ToolStripRenderer で指定された描画は、ToolStrip とそれに含まれる項目に適用されます。

カスタム ToolStripRenderer クラスの実装方法を次のコード例に示します。GridStripRenderer クラスは、GridStrip コントロールの外観について、GridStrip の境界線、ToolStripButton の境界線、および ToolStripButton イメージという 3 つの要素をカスタマイズします。完全なコードの一覧については、「方法 : カスタムの ToolStripRenderer を実装する」を参照してください。
' This class implements a custom ToolStripRenderer for the ' GridStrip control. It customizes three aspects of the ' GridStrip control's appearance: GridStrip border, ' ToolStripButton border, and ToolStripButton image. Friend Class GridStripRenderer Inherits ToolStripRenderer ' The style of the empty cell's text. Private Shared style As New StringFormat() ' The thickness (width or height) of a ' ToolStripButton control's border. Private Shared borderThickness As Integer = 2 ' The main bitmap that is the source for the ' subimagesthat are assigned to individual ' ToolStripButton controls. Private bmp As Bitmap = Nothing ' The brush that paints the background of ' the GridStrip control. Private backgroundBrush As Brush = Nothing ' This is the static constructor. It initializes the ' StringFormat for drawing the text in the empty cell. Shared Sub New() style.Alignment = StringAlignment.Center style.LineAlignment = StringAlignment.Center End Sub ' This method initializes the GridStripRenderer by ' creating the image that is used as the source for ' the individual button images. Protected Overrides Sub Initialize(ts As ToolStrip) MyBase.Initialize(ts) Me.InitializeBitmap(ts) End Sub ' This method initializes an individual ToolStripButton ' control. It copies a subimage from the GridStripRenderer's ' main image, according to the position and size of ' the ToolStripButton. Protected Overrides Sub InitializeItem(item As ToolStripItem) MyBase.InitializeItem(item) Dim gs As GridStrip = item.Owner ' The empty cell does not receive a subimage. If ((TypeOf (item) Is ToolStripButton) And _ (item IsNot gs.EmptyCell)) Then ' Copy the subimage from the appropriate ' part of the main image. Dim subImage As Bitmap = bmp.Clone(item.Bounds, PixelFormat.Undefined) ' Assign the subimage to the ToolStripButton ' control's Image property. item.Image = subImage End If End Sub ' This utility method creates the main image that ' is the source for the subimages of the individual ' ToolStripButton controls. Private Sub InitializeBitmap(toolStrip As ToolStrip) ' Create the main bitmap, into which the image is drawn. Me.bmp = New Bitmap(toolStrip.Size.Width, toolStrip.Size.Height) ' Draw a fancy pattern. This could be any image or drawing. Dim g As Graphics = Graphics.FromImage(bmp) Try ' Draw smoothed lines. g.SmoothingMode = SmoothingMode.AntiAlias ' Draw the image. In this case, it is ' a number of concentric ellipses. Dim i As Integer For i = 0 To toolStrip.Size.Width - 8 Step 8 g.DrawEllipse(Pens.Blue, 0, 0, i, i) Next i Finally g.Dispose() End Try End Sub ' This method draws a border around the GridStrip control. Protected Overrides Sub OnRenderToolStripBorder(e As ToolStripRenderEventArgs) MyBase.OnRenderToolStripBorder(e) ControlPaint.DrawFocusRectangle(e.Graphics, e.AffectedBounds, SystemColors.ControlDarkDark, SystemColors.ControlDarkDark) End Sub ' This method renders the GridStrip control's background. Protected Overrides Sub OnRenderToolStripBackground(e As ToolStripRenderEventArgs) MyBase.OnRenderToolStripBackground(e) ' This late initialization is a workaround. The gradient ' depends on the bounds of the GridStrip control. The bounds ' are dependent on the layout engine, which hasn't fully ' performed layout by the time the Initialize method runs. If Me.backgroundBrush Is Nothing Then Me.backgroundBrush = New LinearGradientBrush(e.ToolStrip.ClientRectangle, SystemColors.ControlLightLight, SystemColors.ControlDark, 90, True) End If ' Paint the GridStrip control's background. e.Graphics.FillRectangle(Me.backgroundBrush, e.AffectedBounds) End Sub ' This method draws a border around the button's image. If the background ' to be rendered belongs to the empty cell, a string is drawn. Otherwise , ' a border is drawn at the edges of the button. Protected Overrides Sub OnRenderButtonBackground(e As ToolStripItemRenderEventArgs) MyBase.OnRenderButtonBackground(e) ' Define some local variables for convenience. Dim g As Graphics = e.Graphics Dim gs As GridStrip = e.ToolStrip Dim gsb As ToolStripButton = e.Item ' Calculate the rectangle around which the border is painted. Dim imageRectangle As New Rectangle(borderThickness, borderThickness, e.Item.Width - 2 * borderThickness, e.Item.Height - 2 * borderThickness) ' If rendering the empty cell background, draw an ' explanatory string, centered in the ToolStripButton. If gsb Is gs.EmptyCell Then e.Graphics.DrawString("Drag to here", gsb.Font, SystemBrushes.ControlDarkDark, imageRectangle, style) Else ' If the button can be a drag source, paint its border red. ' otherwise, paint its border a dark color. Dim b As Brush = IIf(gs.IsValidDragSource(gsb), Brushes.Red, SystemBrushes.ControlDarkDark) ' Draw the top segment of the border. Dim borderSegment As New Rectangle(0, 0, e.Item.Width, imageRectangle.Top) g.FillRectangle(b, borderSegment) ' Draw the right segment. borderSegment = New Rectangle(imageRectangle.Right, 0, e.Item.Bounds.Right - imageRectangle.Right, imageRectangle.Bottom) g.FillRectangle(b, borderSegment) ' Draw the left segment. borderSegment = New Rectangle(0, 0, imageRectangle.Left, e.Item.Height) g.FillRectangle(b, borderSegment) ' Draw the bottom segment. borderSegment = New Rectangle(0, imageRectangle.Bottom, e.Item.Width, e.Item.Bounds.Bottom - imageRectangle.Bottom) g.FillRectangle(b, borderSegment) End If End Sub End Class
// This class implements a custom ToolStripRenderer for the // GridStrip control. It customizes three aspects of the // GridStrip control's appearance: GridStrip border, // ToolStripButton border, and ToolStripButton image. internal class GridStripRenderer : ToolStripRenderer { // The style of the empty cell's text. private static StringFormat style = new StringFormat(); // The thickness (width or height) of a // ToolStripButton control's border. static int borderThickness = 2; // The main bitmap that is the source for the // subimagesthat are assigned to individual // ToolStripButton controls. private Bitmap bmp = null; // The brush that paints the background of // the GridStrip control. private Brush backgroundBrush = null; // This is the static constructor. It initializes the // StringFormat for drawing the text in the empty cell. static GridStripRenderer() { style.Alignment = StringAlignment.Center; style.LineAlignment = StringAlignment.Center; } // This method initializes the GridStripRenderer by // creating the image that is used as the source for // the individual button images. protected override void Initialize(ToolStrip ts) { base.Initialize(ts); this.InitializeBitmap(ts); } // This method initializes an individual ToolStripButton // control. It copies a subimage from the GridStripRenderer's // main image, according to the position and size of // the ToolStripButton. protected override void InitializeItem(ToolStripItem item) { base.InitializeItem(item); GridStrip gs = item.Owner as GridStrip; // The empty cell does not receive a subimage. if ((item is ToolStripButton) && (item != gs.EmptyCell)) { // Copy the subimage from the appropriate // part of the main image. Bitmap subImage = bmp.Clone( item.Bounds, PixelFormat.Undefined); // Assign the subimage to the ToolStripButton // control's Image property. item.Image = subImage; } } // This utility method creates the main image that // is the source for the subimages of the individual // ToolStripButton controls. private void InitializeBitmap(ToolStrip toolStrip) { // Create the main bitmap, into which the image is drawn. this.bmp = new Bitmap( toolStrip.Size.Width, toolStrip.Size.Height); // Draw a fancy pattern. This could be any image or drawing. using (Graphics g = Graphics.FromImage(bmp)) { // Draw smoothed lines. g.SmoothingMode = SmoothingMode.AntiAlias; // Draw the image. In this case, it is // a number of concentric ellipses. for (int i = 0; i < toolStrip.Size.Width; i += 8) { g.DrawEllipse(Pens.Blue, 0, 0, i, i); } } } // This method draws a border around the GridStrip control. protected override void OnRenderToolStripBorder( ToolStripRenderEventArgs e) { base.OnRenderToolStripBorder(e); ControlPaint.DrawFocusRectangle( e.Graphics, e.AffectedBounds, SystemColors.ControlDarkDark, SystemColors.ControlDarkDark); } // This method renders the GridStrip control's background. protected override void OnRenderToolStripBackground( ToolStripRenderEventArgs e) { base.OnRenderToolStripBackground(e); // This late initialization is a workaround. The gradient // depends on the bounds of the GridStrip control. The bounds // are dependent on the layout engine, which hasn't fully // performed layout by the time the Initialize method runs. if (this.backgroundBrush == null) { this.backgroundBrush = new LinearGradientBrush( e.ToolStrip.ClientRectangle, SystemColors.ControlLightLight, SystemColors.ControlDark, 90, true); } // Paint the GridStrip control's background. e.Graphics.FillRectangle( this.backgroundBrush, e.AffectedBounds); } // This method draws a border around the button's image. If the background // to be rendered belongs to the empty cell, a string is drawn. Otherwise, // a border is drawn at the edges of the button. protected override void OnRenderButtonBackground( ToolStripItemRenderEventArgs e) { base.OnRenderButtonBackground(e); // Define some local variables for convenience. Graphics g = e.Graphics; GridStrip gs = e.ToolStrip as GridStrip; ToolStripButton gsb = e.Item as ToolStripButton; // Calculate the rectangle around which the border is painted. Rectangle imageRectangle = new Rectangle( borderThickness, borderThickness, e.Item.Width - 2 * borderThickness, e.Item.Height - 2 * borderThickness); // If rendering the empty cell background, draw an // explanatory string, centered in the ToolStripButton. if (gsb == gs.EmptyCell) { e.Graphics.DrawString( "Drag to here", gsb.Font, SystemBrushes.ControlDarkDark, imageRectangle, style); } else { // If the button can be a drag source, paint its border red. // otherwise, paint its border a dark color. Brush b = gs.IsValidDragSource(gsb) ? b = Brushes.Red : SystemBrushes.ControlDarkDark; // Draw the top segment of the border. Rectangle borderSegment = new Rectangle( 0, 0, e.Item.Width, imageRectangle.Top); g.FillRectangle(b, borderSegment); // Draw the right segment. borderSegment = new Rectangle( imageRectangle.Right, 0, e.Item.Bounds.Right - imageRectangle.Right, imageRectangle.Bottom); g.FillRectangle(b, borderSegment); // Draw the left segment. borderSegment = new Rectangle( 0, 0, imageRectangle.Left, e.Item.Height); g.FillRectangle(b, borderSegment); // Draw the bottom segment. borderSegment = new Rectangle( 0, imageRectangle.Bottom, e.Item.Width, e.Item.Bounds.Bottom - imageRectangle.Bottom); g.FillRectangle(b, borderSegment); } } }

System.Windows.Forms.ToolStripRenderer
System.Windows.Forms.ToolStripProfessionalRenderer
System.Windows.Forms.ToolStripSystemRenderer


Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


ToolStripRenderer コンストラクタ
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)



Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


ToolStripRenderer メソッド

名前 | 説明 | |
---|---|---|
![]() | CreateDisabledImage | 指定したイメージのグレースケールのコピーを作成します。 |
![]() | DrawArrow | ToolStripItem 上に矢印を描画します。 |
![]() | DrawButtonBackground | ToolStripButton の背景を描画します。 |
![]() | DrawDropDownButtonBackground | ToolStripDropDownButton の背景を描画します。 |
![]() | DrawGrip | ToolStrip に移動ハンドルを描画します。 |
![]() | DrawImageMargin | ToolStrip 上のイメージの周りに空白を描画します。 |
![]() | DrawItemBackground | ToolStripItem の背景を描画します。 |
![]() | DrawItemCheck | ToolStripItem 上に、項目が選択されていることを示すイメージを描画します。 |
![]() | DrawItemImage | ToolStripItem 上にイメージを描画します。 |
![]() | DrawItemText | ToolStripItem 上にテキストを描画します。 |
![]() | DrawLabelBackground | ToolStripLabel の背景を描画します。 |
![]() | DrawMenuItemBackground | ToolStripMenuItem の背景を描画します。 |
![]() | DrawOverflowButtonBackground | オーバーフロー ボタンの背景を描画します。 |
![]() | DrawSeparator | ToolStripSeparator を描画します。 |
![]() | DrawSplitButton | ToolStripSplitButton を描画します。 |
![]() | DrawStatusStripSizingGrip | サイズ変更グリップを描画します。 |
![]() | DrawToolStripBackground | ToolStrip の背景を描画します。 |
![]() | DrawToolStripBorder | ToolStrip の境界線を描画します。 |
![]() | DrawToolStripContentPanelBackground | ToolStripContentPanel の背景を描画します。 |
![]() | DrawToolStripPanelBackground | ToolStripPanel の背景を描画します。 |
![]() | DrawToolStripStatusLabelBackground | ToolStripStatusLabel の背景を描画します。 |
![]() | Equals | オーバーロードされます。 2 つの Object インスタンスが等しいかどうかを判断します。 ( Object から継承されます。) |
![]() | GetHashCode | 特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用に適しています。 ( Object から継承されます。) |
![]() | GetType | 現在のインスタンスの Type を取得します。 ( Object から継承されます。) |
![]() | ReferenceEquals | 指定した複数の Object インスタンスが同一かどうかを判断します。 ( Object から継承されます。) |
![]() | ToString | 現在の Object を表す String を返します。 ( Object から継承されます。) |

名前 | 説明 | |
---|---|---|
![]() | Finalize | Object がガベージ コレクションにより収集される前に、その Object がリソースを解放し、その他のクリーンアップ操作を実行できるようにします。 ( Object から継承されます。) |
![]() | Initialize | 派生クラスでオーバーライドすると、特定の ToolStrip のカスタムの初期化処理を提供します。 |
![]() | InitializeContentPanel | 指定した ToolStripContentPanel を初期化します。 |
![]() | InitializeItem | 派生クラスでオーバーライドすると、特定の ToolStripItem のカスタムの初期化処理を提供します。 |
![]() | InitializePanel | 指定した ToolStripPanel を初期化します。 |
![]() | MemberwiseClone | 現在の Object の簡易コピーを作成します。 ( Object から継承されます。) |
![]() | OnRenderArrow | RenderArrow イベントを発生させます。 |
![]() | OnRenderButtonBackground | RenderButtonBackground イベントを発生させます。 |
![]() | OnRenderDropDownButtonBackground | RenderDropDownButtonBackground イベントを発生させます。 |
![]() | OnRenderGrip | RenderGrip イベントを発生させます。 |
![]() | OnRenderImageMargin | 項目の背景を描画します。 |
![]() | OnRenderItemBackground | OnRenderItemBackground イベントを発生させます。 |
![]() | OnRenderItemCheck | RenderItemCheck イベントを発生させます。 |
![]() | OnRenderItemImage | RenderItemImage イベントを発生させます。 |
![]() | OnRenderItemText | RenderItemText イベントを発生させます。 |
![]() | OnRenderLabelBackground | RenderLabelBackground イベントを発生させます。 |
![]() | OnRenderMenuItemBackground | RenderMenuItemBackground イベントを発生させます。 |
![]() | OnRenderOverflowButtonBackground | RenderOverflowButtonBackground イベントを発生させます。 |
![]() | OnRenderSeparator | RenderSeparator イベントを発生させます。 |
![]() | OnRenderSplitButtonBackground | OnRenderSplitButtonBackground イベントを発生させます。 |
![]() | OnRenderStatusStripSizingGrip | RenderStatusStripSizingGrip イベントを発生させます。 |
![]() | OnRenderToolStripBackground | RenderToolStripBackground イベントを発生させます。 |
![]() | OnRenderToolStripBorder | RenderToolStripBorder イベントを発生させます。 |
![]() | OnRenderToolStripContentPanelBackground | RenderToolStripContentPanelBackground イベントを発生させます。 |
![]() | OnRenderToolStripPanelBackground | RenderToolStripPanelBackground イベントを発生させます。 |
![]() | OnRenderToolStripStatusLabelBackground | RenderToolStripStatusLabelBackground イベントを発生させます。 |

ToolStripRenderer メンバ
ToolStripRenderer データ型で公開されるメンバを以下の表に示します。


名前 | 説明 | |
---|---|---|
![]() | CreateDisabledImage | 指定したイメージのグレースケールのコピーを作成します。 |
![]() | DrawArrow | ToolStripItem 上に矢印を描画します。 |
![]() | DrawButtonBackground | ToolStripButton の背景を描画します。 |
![]() | DrawDropDownButtonBackground | ToolStripDropDownButton の背景を描画します。 |
![]() | DrawGrip | ToolStrip に移動ハンドルを描画します。 |
![]() | DrawImageMargin | ToolStrip 上のイメージの周りに空白を描画します。 |
![]() | DrawItemBackground | ToolStripItem の背景を描画します。 |
![]() | DrawItemCheck | ToolStripItem 上に、項目が選択されていることを示すイメージを描画します。 |
![]() | DrawItemImage | ToolStripItem 上にイメージを描画します。 |
![]() | DrawItemText | ToolStripItem 上にテキストを描画します。 |
![]() | DrawLabelBackground | ToolStripLabel の背景を描画します。 |
![]() | DrawMenuItemBackground | ToolStripMenuItem の背景を描画します。 |
![]() | DrawOverflowButtonBackground | オーバーフロー ボタンの背景を描画します。 |
![]() | DrawSeparator | ToolStripSeparator を描画します。 |
![]() | DrawSplitButton | ToolStripSplitButton を描画します。 |
![]() | DrawStatusStripSizingGrip | サイズ変更グリップを描画します。 |
![]() | DrawToolStripBackground | ToolStrip の背景を描画します。 |
![]() | DrawToolStripBorder | ToolStrip の境界線を描画します。 |
![]() | DrawToolStripContentPanelBackground | ToolStripContentPanel の背景を描画します。 |
![]() | DrawToolStripPanelBackground | ToolStripPanel の背景を描画します。 |
![]() | DrawToolStripStatusLabelBackground | ToolStripStatusLabel の背景を描画します。 |
![]() | Equals | オーバーロードされます。 2 つの Object インスタンスが等しいかどうかを判断します。 (Object から継承されます。) |
![]() | GetHashCode | 特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用に適しています。 (Object から継承されます。) |
![]() | GetType | 現在のインスタンスの Type を取得します。 (Object から継承されます。) |
![]() | ReferenceEquals | 指定した複数の Object インスタンスが同一かどうかを判断します。 (Object から継承されます。) |
![]() | ToString | 現在の Object を表す String を返します。 (Object から継承されます。) |

名前 | 説明 | |
---|---|---|
![]() | Finalize | Object がガベージ コレクションにより収集される前に、その Object がリソースを解放し、その他のクリーンアップ操作を実行できるようにします。 (Object から継承されます。) |
![]() | Initialize | 派生クラスでオーバーライドすると、特定の ToolStrip のカスタムの初期化処理を提供します。 |
![]() | InitializeContentPanel | 指定した ToolStripContentPanel を初期化します。 |
![]() | InitializeItem | 派生クラスでオーバーライドすると、特定の ToolStripItem のカスタムの初期化処理を提供します。 |
![]() | InitializePanel | 指定した ToolStripPanel を初期化します。 |
![]() | MemberwiseClone | 現在の Object の簡易コピーを作成します。 (Object から継承されます。) |
![]() | OnRenderArrow | RenderArrow イベントを発生させます。 |
![]() | OnRenderButtonBackground | RenderButtonBackground イベントを発生させます。 |
![]() | OnRenderDropDownButtonBackground | RenderDropDownButtonBackground イベントを発生させます。 |
![]() | OnRenderGrip | RenderGrip イベントを発生させます。 |
![]() | OnRenderImageMargin | 項目の背景を描画します。 |
![]() | OnRenderItemBackground | OnRenderItemBackground イベントを発生させます。 |
![]() | OnRenderItemCheck | RenderItemCheck イベントを発生させます。 |
![]() | OnRenderItemImage | RenderItemImage イベントを発生させます。 |
![]() | OnRenderItemText | RenderItemText イベントを発生させます。 |
![]() | OnRenderLabelBackground | RenderLabelBackground イベントを発生させます。 |
![]() | OnRenderMenuItemBackground | RenderMenuItemBackground イベントを発生させます。 |
![]() | OnRenderOverflowButtonBackground | RenderOverflowButtonBackground イベントを発生させます。 |
![]() | OnRenderSeparator | RenderSeparator イベントを発生させます。 |
![]() | OnRenderSplitButtonBackground | OnRenderSplitButtonBackground イベントを発生させます。 |
![]() | OnRenderStatusStripSizingGrip | RenderStatusStripSizingGrip イベントを発生させます。 |
![]() | OnRenderToolStripBackground | RenderToolStripBackground イベントを発生させます。 |
![]() | OnRenderToolStripBorder | RenderToolStripBorder イベントを発生させます。 |
![]() | OnRenderToolStripContentPanelBackground | RenderToolStripContentPanelBackground イベントを発生させます。 |
![]() | OnRenderToolStripPanelBackground | RenderToolStripPanelBackground イベントを発生させます。 |
![]() | OnRenderToolStripStatusLabelBackground | RenderToolStripStatusLabelBackground イベントを発生させます。 |

名前 | 説明 | |
---|---|---|
![]() | RenderArrow | ToolStripItem 上の矢印が描画されたときに発生します。 |
![]() | RenderButtonBackground | ToolStripButton の背景が描画されたときに発生します。 |
![]() | RenderDropDownButtonBackground | ToolStripDropDownButton の背景が描画されたときに発生します。 |
![]() | RenderGrip | ToolStrip の移動ハンドルが描画されたときに発生します。 |
![]() | RenderImageMargin | イメージとそのコンテナとの間にマージンを描画します。 |
![]() | RenderItemBackground | ToolStripItem の背景が描画されたときに発生します。 |
![]() | RenderItemCheck | 選択済みの ToolStripItem のイメージが描画されたときに発生します。 |
![]() | RenderItemImage | ToolStripItem のイメージが描画されたときに発生します。 |
![]() | RenderItemText | ToolStripItem のテキストが描画されたときに発生します。 |
![]() | RenderLabelBackground | ToolStripLabel の背景が描画されたときに発生します。 |
![]() | RenderMenuItemBackground | ToolStripMenuItem の背景が描画されたときに発生します。 |
![]() | RenderOverflowButtonBackground | オーバーフロー ボタンの背景が描画されたときに発生します。 |
![]() | RenderSeparator | ToolStripSeparator が描画されたときに発生します。 |
![]() | RenderSplitButtonBackground | ToolStripSplitButton の背景が描画されたときに発生します。 |
![]() | RenderStatusStripSizingGrip | 表示スタイルが変更されたときに発生します。 |
![]() | RenderToolStripBackground | ToolStrip の背景が描画されたときに発生します。 |
![]() | RenderToolStripBorder | ToolStrip の境界線が描画されたときに発生します。 |
![]() | RenderToolStripContentPanelBackground | ToolStripContentPanel の背景を描画します。 |
![]() | RenderToolStripPanelBackground | ToolStripPanel の背景を描画します。 |
![]() | RenderToolStripStatusLabelBackground | ToolStripStatusLabel の背景を描画します。 |

Weblioに収録されているすべての辞書からToolStripRendererを検索する場合は、下記のリンクをクリックしてください。

- ToolStripRendererのページへのリンク