ToolStrip.Rendererとは? わかりやすく解説

ToolStrip.Renderer プロパティ

メモ : このプロパティは、.NET Framework version 2.0新しく追加されたものです。

ToolStrip の外観カスタマイズするために使用される ToolStripRenderer を取得または設定します

名前空間: System.Windows.Forms
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)
構文構文

Public Property Renderer As
 ToolStripRenderer
Dim instance As ToolStrip
Dim value As ToolStripRenderer

value = instance.Renderer

instance.Renderer = value
public ToolStripRenderer Renderer { get; set;
 }
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 メソッド呼び出します。

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照

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 名前空間
MenuStrip クラス
StatusStrip クラス
ToolStripProfessionalRenderer クラス
ToolStripSystemRenderer

その他の技術情報

方法 : カスタムの ToolStripRenderer を実装する

ToolStripRenderer クラス

メモ : このクラスは、.NET Framework version 2.0新しく追加されたものです。

ToolStrip オブジェクト描画機能処理します

名前空間: System.Windows.Forms
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)
構文構文

Public MustInherit Class
 ToolStripRenderer
Dim instance As ToolStripRenderer
public abstract class ToolStripRenderer
public ref class ToolStripRenderer abstract
public abstract class ToolStripRenderer
public abstract class ToolStripRenderer
解説解説

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.Object
  System.Windows.Forms.ToolStripRenderer
     System.Windows.Forms.ToolStripProfessionalRenderer
     System.Windows.Forms.ToolStripSystemRenderer
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバ場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
ToolStripRenderer メンバ
System.Windows.Forms 名前空間
MenuStrip クラス
StatusStrip クラス
ToolStripProfessionalRenderer クラス
ToolStripSystemRenderer
その他の技術情報
方法 : カスタムの ToolStripRenderer を実装する

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 イベント発生させます
参照参照

関連項目

ToolStripRenderer クラス
System.Windows.Forms 名前空間
MenuStrip クラス
StatusStrip クラス
ToolStripProfessionalRenderer クラス
ToolStripSystemRenderer

その他の技術情報

方法 : カスタムの ToolStripRenderer を実装する

ToolStripRenderer メンバ

ToolStrip オブジェクト描画機能処理します

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


プロテクト コンストラクタプロテクト コンストラクタ
  名前 説明
プロテクト メソッド 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 の背景描画ます。
参照参照

関連項目

ToolStripRenderer クラス
System.Windows.Forms 名前空間
MenuStrip クラス
StatusStrip クラス
ToolStripProfessionalRenderer クラス
ToolStripSystemRenderer

その他の技術情報

方法 : カスタムの ToolStripRenderer を実装する



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「ToolStrip.Renderer」の関連用語

ToolStrip.Rendererのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



ToolStrip.Rendererのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2024 Microsoft.All rights reserved.

©2024 GRAS Group, Inc.RSS