ToolStripProfessionalRenderer ToolStripProfessionalRenderer ToolStripProfessionalRenderer ToolStripProfessionalRenderer Class

定義

ToolStrip オブジェクトの描画機能を、カスタムのパレットおよび簡素化されたスタイルを適用することによって処理します。Handles the painting functionality for ToolStrip objects, applying a custom palette and a streamlined style.

public ref class ToolStripProfessionalRenderer : System::Windows::Forms::ToolStripRenderer
public class ToolStripProfessionalRenderer : System.Windows.Forms.ToolStripRenderer
type ToolStripProfessionalRenderer = class
    inherit ToolStripRenderer
Public Class ToolStripProfessionalRenderer
Inherits ToolStripRenderer
継承
ToolStripProfessionalRendererToolStripProfessionalRendererToolStripProfessionalRendererToolStripProfessionalRenderer

次のコード例は、Microsoft® Outlook®によって提供されるナビゲーションウィンドウに似た複合コントロールを作成する方法を示しています。The following code example demonstrates how to create a composite control that mimics the Navigation Pane provided by Microsoft® Outlook®. 完全なコードリストについては、「方法:プロフェッショナルスタイルの ToolStrip コントロールを作成します。For a full code listing, see How to: Create a Professionally Styled ToolStrip Control.

internal class StackRenderer : ToolStripProfessionalRenderer
{
    private static Bitmap titleBarGripBmp;
    private static string titleBarGripEnc = @"Qk16AQAAAAAAADYAAAAoAAAAIwAAAAMAAAABABgAAAAAAAAAAADEDgAAxA4AAAAAAAAAAAAAuGMy+/n5+/n5uGMyuGMy+/n5+/n5uGMyuGMy+/n5+/n5uGMyuGMy+/n5+/n5uGMyuGMy+/n5+/n5uGMyuGMy+/n5+/n5uGMyuGMy+/n5+/n5uGMyuGMy+/n5+/n5uGMyuGMy+/n5+/n5ANj+RzIomHRh+/n5wm8/RzIomHRh+/n5wm8/RzIomHRh+/n5wm8/RzIomHRh+/n5wm8/RzIomHRh+/n5wm8/RzIomHRh+/n5wm8/RzIomHRh+/n5wm8/RzIomHRh+/n5wm8/RzIomHRh+/n5ANj+RzIoRzIozHtMzHtMRzIoRzIozHtMzHtMRzIoRzIozHtMzHtMRzIoRzIozHtMzHtMRzIoRzIozHtMzHtMRzIoRzIozHtMzHtMRzIoRzIozHtMzHtMRzIoRzIozHtMzHtMRzIoRzIozHtMANj+";

    // Define titlebar colors.
    private static Color titlebarColor1 = Color.FromArgb(89, 135, 214);
    private static Color titlebarColor2 = Color.FromArgb(76, 123, 204);
    private static Color titlebarColor3 = Color.FromArgb(63, 111, 194);
    private static Color titlebarColor4 = Color.FromArgb(50, 99, 184);
    private static Color titlebarColor5 = Color.FromArgb(38, 88, 174);
    private static Color titlebarColor6 = Color.FromArgb(25, 76, 164);
    private static Color titlebarColor7 = Color.FromArgb(12, 64, 154);
    private static Color borderColor = Color.FromArgb(0, 0, 128);

    static StackRenderer()
    {
        titleBarGripBmp = StackView.DeserializeFromBase64(titleBarGripEnc);
    }

    public StackRenderer()
    {
    }

    private void DrawTitleBar(Graphics g, Rectangle rect)
    {
        // Assign the image for the grip.
        Image titlebarGrip = titleBarGripBmp;

        // Fill the titlebar. 
        // This produces the gradient and the rounded-corner effect.
        g.DrawLine(new Pen(titlebarColor1), rect.X, rect.Y, rect.X + rect.Width, rect.Y);
        g.DrawLine(new Pen(titlebarColor2), rect.X, rect.Y + 1, rect.X + rect.Width, rect.Y + 1);
        g.DrawLine(new Pen(titlebarColor3), rect.X, rect.Y + 2, rect.X + rect.Width, rect.Y + 2);
        g.DrawLine(new Pen(titlebarColor4), rect.X, rect.Y + 3, rect.X + rect.Width, rect.Y + 3);
        g.DrawLine(new Pen(titlebarColor5), rect.X, rect.Y + 4, rect.X + rect.Width, rect.Y + 4);
        g.DrawLine(new Pen(titlebarColor6), rect.X, rect.Y + 5, rect.X + rect.Width, rect.Y + 5);
        g.DrawLine(new Pen(titlebarColor7), rect.X, rect.Y + 6, rect.X + rect.Width, rect.Y + 6);

        // Center the titlebar grip.
        g.DrawImage(
            titlebarGrip,
            new Point(rect.X + ((rect.Width / 2) - (titlebarGrip.Width / 2)),
            rect.Y + 1));
    }

    // This method handles the RenderGrip event.
    protected override void OnRenderGrip(ToolStripGripRenderEventArgs e)
    {
        DrawTitleBar(
            e.Graphics,
            new Rectangle(0, 0, e.ToolStrip.Width, 7));
    }

    // This method handles the RenderToolStripBorder event.
    protected override void OnRenderToolStripBorder(ToolStripRenderEventArgs e)
    {
        DrawTitleBar(
            e.Graphics,
            new Rectangle(0, 0, e.ToolStrip.Width, 7));
    }

    // This method handles the RenderButtonBackground event.
    protected override void OnRenderButtonBackground(ToolStripItemRenderEventArgs e)
    {
        Graphics g = e.Graphics;
        Rectangle bounds = new Rectangle(Point.Empty, e.Item.Size);

        Color gradientBegin = Color.FromArgb(203, 225, 252);
        Color gradientEnd = Color.FromArgb(125, 165, 224);

        ToolStripButton button = e.Item as ToolStripButton;
        if (button.Pressed || button.Checked)
        {
            gradientBegin = Color.FromArgb(254, 128, 62);
            gradientEnd = Color.FromArgb(255, 223, 154);
        }
        else if (button.Selected)
        {
            gradientBegin = Color.FromArgb(255, 255, 222);
            gradientEnd = Color.FromArgb(255, 203, 136);
        }

        using (Brush b = new LinearGradientBrush(
            bounds,
            gradientBegin,
            gradientEnd,
            LinearGradientMode.Vertical))
        {
            g.FillRectangle(b, bounds);
        }

        e.Graphics.DrawRectangle(
            SystemPens.ControlDarkDark,
            bounds);

        g.DrawLine(
            SystemPens.ControlDarkDark,
            bounds.X,
            bounds.Y,
            bounds.Width - 1,
            bounds.Y);

        g.DrawLine(
            SystemPens.ControlDarkDark,
            bounds.X,
            bounds.Y,
            bounds.X,
            bounds.Height - 1);

        ToolStrip toolStrip = button.Owner;
        ToolStripButton nextItem = button.Owner.GetItemAt(
            button.Bounds.X,
            button.Bounds.Bottom + 1) as ToolStripButton;

        if (nextItem == null)
        {
            g.DrawLine(
                SystemPens.ControlDarkDark,
                bounds.X,
                bounds.Height - 1,
                bounds.X + bounds.Width - 1,
                bounds.Height - 1);
        }
    }
}
Friend Class StackRenderer
   Inherits ToolStripProfessionalRenderer
   Private Shared titleBarGripBmp As Bitmap
   Private Shared titleBarGripEnc As String = "Qk16AQAAAAAAADYAAAAoAAAAIwAAAAMAAAABABgAAAAAAAAAAADEDgAAxA4AAAAAAAAAAAAAuGMy+/n5+/n5uGMyuGMy+/n5+/n5uGMyuGMy+/n5+/n5uGMyuGMy+/n5+/n5uGMyuGMy+/n5+/n5uGMyuGMy+/n5+/n5uGMyuGMy+/n5+/n5uGMyuGMy+/n5+/n5uGMyuGMy+/n5+/n5ANj+RzIomHRh+/n5wm8/RzIomHRh+/n5wm8/RzIomHRh+/n5wm8/RzIomHRh+/n5wm8/RzIomHRh+/n5wm8/RzIomHRh+/n5wm8/RzIomHRh+/n5wm8/RzIomHRh+/n5wm8/RzIomHRh+/n5ANj+RzIoRzIozHtMzHtMRzIoRzIozHtMzHtMRzIoRzIozHtMzHtMRzIoRzIozHtMzHtMRzIoRzIozHtMzHtMRzIoRzIozHtMzHtMRzIoRzIozHtMzHtMRzIoRzIozHtMzHtMRzIoRzIozHtMANj+"
   
   ' Define titlebar colors.
   Private Shared titlebarColor1 As Color = Color.FromArgb(89, 135, 214)
   Private Shared titlebarColor2 As Color = Color.FromArgb(76, 123, 204)
   Private Shared titlebarColor3 As Color = Color.FromArgb(63, 111, 194)
   Private Shared titlebarColor4 As Color = Color.FromArgb(50, 99, 184)
   Private Shared titlebarColor5 As Color = Color.FromArgb(38, 88, 174)
   Private Shared titlebarColor6 As Color = Color.FromArgb(25, 76, 164)
   Private Shared titlebarColor7 As Color = Color.FromArgb(12, 64, 154)
   Private Shared borderColor As Color = Color.FromArgb(0, 0, 128)
   
   Shared Sub New()
      titleBarGripBmp = StackView.DeserializeFromBase64(titleBarGripEnc)
     End Sub
   
   Public Sub New()
     End Sub
   
     Private Sub DrawTitleBar(ByVal g As Graphics, ByVal rect As Rectangle)

         ' Assign the image for the grip.
         Dim titlebarGrip As Image = titleBarGripBmp

         ' Fill the titlebar. 
         ' This produces the gradient and the rounded-corner effect.
         g.DrawLine(New Pen(titlebarColor1), rect.X, rect.Y, rect.X + rect.Width, rect.Y)
         g.DrawLine(New Pen(titlebarColor2), rect.X, rect.Y + 1, rect.X + rect.Width, rect.Y + 1)
         g.DrawLine(New Pen(titlebarColor3), rect.X, rect.Y + 2, rect.X + rect.Width, rect.Y + 2)
         g.DrawLine(New Pen(titlebarColor4), rect.X, rect.Y + 3, rect.X + rect.Width, rect.Y + 3)
         g.DrawLine(New Pen(titlebarColor5), rect.X, rect.Y + 4, rect.X + rect.Width, rect.Y + 4)
         g.DrawLine(New Pen(titlebarColor6), rect.X, rect.Y + 5, rect.X + rect.Width, rect.Y + 5)
         g.DrawLine(New Pen(titlebarColor7), rect.X, rect.Y + 6, rect.X + rect.Width, rect.Y + 6)

         ' Center the titlebar grip.
         g.DrawImage(titlebarGrip, New Point(rect.X + (rect.Width / 2 - titlebarGrip.Width / 2), rect.Y + 1))
     End Sub
   
   
   ' This method handles the RenderGrip event.
   Protected Overrides Sub OnRenderGrip(e As ToolStripGripRenderEventArgs)
      DrawTitleBar(e.Graphics, New Rectangle(0, 0, e.ToolStrip.Width, 7))
     End Sub
   
   
   ' This method handles the RenderToolStripBorder event.
   Protected Overrides Sub OnRenderToolStripBorder(e As ToolStripRenderEventArgs)
      DrawTitleBar(e.Graphics, New Rectangle(0, 0, e.ToolStrip.Width, 7))
     End Sub
   
   
   ' This method handles the RenderButtonBackground event.
   Protected Overrides Sub OnRenderButtonBackground(e As ToolStripItemRenderEventArgs)
      Dim g As Graphics = e.Graphics
      Dim bounds As New Rectangle(Point.Empty, e.Item.Size)
      
      Dim gradientBegin As Color = Color.FromArgb(203, 225, 252)
      Dim gradientEnd As Color = Color.FromArgb(125, 165, 224)
      
         Dim button As ToolStripButton = CType(e.Item, ToolStripButton)
      
      If button.Pressed OrElse button.Checked Then
         gradientBegin = Color.FromArgb(254, 128, 62)
         gradientEnd = Color.FromArgb(255, 223, 154)
      ElseIf button.Selected Then
         gradientBegin = Color.FromArgb(255, 255, 222)
         gradientEnd = Color.FromArgb(255, 203, 136)
      End If
      
      Dim b = New LinearGradientBrush(bounds, gradientBegin, gradientEnd, LinearGradientMode.Vertical)
      Try
         g.FillRectangle(b, bounds)
      Finally
         b.Dispose()
      End Try
      
      e.Graphics.DrawRectangle(SystemPens.ControlDarkDark, bounds)
      
      g.DrawLine(SystemPens.ControlDarkDark, bounds.X, bounds.Y, bounds.Width - 1, bounds.Y)
      
      g.DrawLine(SystemPens.ControlDarkDark, bounds.X, bounds.Y, bounds.X, bounds.Height - 1)
      
      Dim toolStrip As ToolStrip = button.Owner
         Dim nextItem As ToolStripButton = CType(button.Owner.GetItemAt(button.Bounds.X, button.Bounds.Bottom + 1), ToolStripButton)
      
      If nextItem Is Nothing Then
         g.DrawLine(SystemPens.ControlDarkDark, bounds.X, bounds.Height - 1, bounds.X + bounds.Width - 1, bounds.Height - 1)
      End If
     End Sub
 End Class

注釈

ToolStripProfessionalRendererというProfessionalColorTable置き換え可能なカラーテーブルに基づいて、ペンとブラシを作成します。ToolStripProfessionalRenderer creates pens and brushes based on a replaceable color table called ProfessionalColorTable.

コンストラクター

ToolStripProfessionalRenderer() ToolStripProfessionalRenderer() ToolStripProfessionalRenderer() ToolStripProfessionalRenderer()

ToolStripProfessionalRenderer クラスの新しいインスタンスを初期化します。Initializes a new instance of the ToolStripProfessionalRenderer class.

ToolStripProfessionalRenderer(ProfessionalColorTable) ToolStripProfessionalRenderer(ProfessionalColorTable) ToolStripProfessionalRenderer(ProfessionalColorTable) ToolStripProfessionalRenderer(ProfessionalColorTable)

ToolStripProfessionalRenderer クラスの新しいインスタンスを初期化します。Initializes a new instance of the ToolStripProfessionalRenderer class.

プロパティ

ColorTable ColorTable ColorTable ColorTable

描画に使用するカラー パレットを取得します。Gets the color palette used for painting.

RoundedEdges RoundedEdges RoundedEdges RoundedEdges

コントロールの端を、直角または鋭角の外観ではなく、丸い外観にするかどうかを示す値を取得または設定します。Gets or sets a value indicating whether edges of controls have a rounded rather than a square or sharp appearance.

メソッド

DrawArrow(ToolStripArrowRenderEventArgs) DrawArrow(ToolStripArrowRenderEventArgs) DrawArrow(ToolStripArrowRenderEventArgs) DrawArrow(ToolStripArrowRenderEventArgs)

ToolStripItem 上に矢印を描画します。Draws an arrow on a ToolStripItem.

(Inherited from ToolStripRenderer)
DrawButtonBackground(ToolStripItemRenderEventArgs) DrawButtonBackground(ToolStripItemRenderEventArgs) DrawButtonBackground(ToolStripItemRenderEventArgs) DrawButtonBackground(ToolStripItemRenderEventArgs)

ToolStripButton の背景を描画します。Draws the background for a ToolStripButton.

(Inherited from ToolStripRenderer)
DrawDropDownButtonBackground(ToolStripItemRenderEventArgs) DrawDropDownButtonBackground(ToolStripItemRenderEventArgs) DrawDropDownButtonBackground(ToolStripItemRenderEventArgs) DrawDropDownButtonBackground(ToolStripItemRenderEventArgs)

ToolStripDropDownButton の背景を描画します。Draws the background for a ToolStripDropDownButton.

(Inherited from ToolStripRenderer)
DrawGrip(ToolStripGripRenderEventArgs) DrawGrip(ToolStripGripRenderEventArgs) DrawGrip(ToolStripGripRenderEventArgs) DrawGrip(ToolStripGripRenderEventArgs)

ToolStrip に移動ハンドルを描画します。Draws a move handle on a ToolStrip.

(Inherited from ToolStripRenderer)
DrawImageMargin(ToolStripRenderEventArgs) DrawImageMargin(ToolStripRenderEventArgs) DrawImageMargin(ToolStripRenderEventArgs) DrawImageMargin(ToolStripRenderEventArgs)

ToolStrip 上のイメージの周りに空白を描画します。Draws the space around an image on a ToolStrip.

(Inherited from ToolStripRenderer)
DrawItemBackground(ToolStripItemRenderEventArgs) DrawItemBackground(ToolStripItemRenderEventArgs) DrawItemBackground(ToolStripItemRenderEventArgs) DrawItemBackground(ToolStripItemRenderEventArgs)

ToolStripItem の背景を描画します。Draws the background for a ToolStripItem.

(Inherited from ToolStripRenderer)
DrawItemCheck(ToolStripItemImageRenderEventArgs) DrawItemCheck(ToolStripItemImageRenderEventArgs) DrawItemCheck(ToolStripItemImageRenderEventArgs) DrawItemCheck(ToolStripItemImageRenderEventArgs)

ToolStripItem 上に、項目が選択されていることを示すイメージを描画します。Draws an image on a ToolStripItem that indicates the item is in a selected state.

(Inherited from ToolStripRenderer)
DrawItemImage(ToolStripItemImageRenderEventArgs) DrawItemImage(ToolStripItemImageRenderEventArgs) DrawItemImage(ToolStripItemImageRenderEventArgs) DrawItemImage(ToolStripItemImageRenderEventArgs)

ToolStripItem 上にイメージを描画します。Draws an image on a ToolStripItem.

(Inherited from ToolStripRenderer)
DrawItemText(ToolStripItemTextRenderEventArgs) DrawItemText(ToolStripItemTextRenderEventArgs) DrawItemText(ToolStripItemTextRenderEventArgs) DrawItemText(ToolStripItemTextRenderEventArgs)

ToolStripItem 上にテキストを描画します。Draws text on a ToolStripItem.

(Inherited from ToolStripRenderer)
DrawLabelBackground(ToolStripItemRenderEventArgs) DrawLabelBackground(ToolStripItemRenderEventArgs) DrawLabelBackground(ToolStripItemRenderEventArgs) DrawLabelBackground(ToolStripItemRenderEventArgs)

ToolStripLabel の背景を描画します。Draws the background for a ToolStripLabel.

(Inherited from ToolStripRenderer)
DrawMenuItemBackground(ToolStripItemRenderEventArgs) DrawMenuItemBackground(ToolStripItemRenderEventArgs) DrawMenuItemBackground(ToolStripItemRenderEventArgs) DrawMenuItemBackground(ToolStripItemRenderEventArgs)

ToolStripMenuItem の背景を描画します。Draws the background for a ToolStripMenuItem.

(Inherited from ToolStripRenderer)
DrawOverflowButtonBackground(ToolStripItemRenderEventArgs) DrawOverflowButtonBackground(ToolStripItemRenderEventArgs) DrawOverflowButtonBackground(ToolStripItemRenderEventArgs) DrawOverflowButtonBackground(ToolStripItemRenderEventArgs)

オーバーフロー ボタンの背景を描画します。Draws the background for an overflow button.

(Inherited from ToolStripRenderer)
DrawSeparator(ToolStripSeparatorRenderEventArgs) DrawSeparator(ToolStripSeparatorRenderEventArgs) DrawSeparator(ToolStripSeparatorRenderEventArgs) DrawSeparator(ToolStripSeparatorRenderEventArgs)

ToolStripSeparator を描画します。Draws a ToolStripSeparator.

(Inherited from ToolStripRenderer)
DrawSplitButton(ToolStripItemRenderEventArgs) DrawSplitButton(ToolStripItemRenderEventArgs) DrawSplitButton(ToolStripItemRenderEventArgs) DrawSplitButton(ToolStripItemRenderEventArgs)

ToolStripSplitButton を描画します。Draws a ToolStripSplitButton.

(Inherited from ToolStripRenderer)
DrawStatusStripSizingGrip(ToolStripRenderEventArgs) DrawStatusStripSizingGrip(ToolStripRenderEventArgs) DrawStatusStripSizingGrip(ToolStripRenderEventArgs) DrawStatusStripSizingGrip(ToolStripRenderEventArgs)

サイズ変更グリップを描画します。Draws a sizing grip.

(Inherited from ToolStripRenderer)
DrawToolStripBackground(ToolStripRenderEventArgs) DrawToolStripBackground(ToolStripRenderEventArgs) DrawToolStripBackground(ToolStripRenderEventArgs) DrawToolStripBackground(ToolStripRenderEventArgs)

ToolStrip の背景を描画します。Draws the background for a ToolStrip.

(Inherited from ToolStripRenderer)
DrawToolStripBorder(ToolStripRenderEventArgs) DrawToolStripBorder(ToolStripRenderEventArgs) DrawToolStripBorder(ToolStripRenderEventArgs) DrawToolStripBorder(ToolStripRenderEventArgs)

ToolStrip の境界線を描画します。Draws the border for a ToolStrip.

(Inherited from ToolStripRenderer)
DrawToolStripContentPanelBackground(ToolStripContentPanelRenderEventArgs) DrawToolStripContentPanelBackground(ToolStripContentPanelRenderEventArgs) DrawToolStripContentPanelBackground(ToolStripContentPanelRenderEventArgs) DrawToolStripContentPanelBackground(ToolStripContentPanelRenderEventArgs)

ToolStripContentPanel の背景を描画します。Draws the background of the ToolStripContentPanel.

(Inherited from ToolStripRenderer)
DrawToolStripPanelBackground(ToolStripPanelRenderEventArgs) DrawToolStripPanelBackground(ToolStripPanelRenderEventArgs) DrawToolStripPanelBackground(ToolStripPanelRenderEventArgs) DrawToolStripPanelBackground(ToolStripPanelRenderEventArgs)

ToolStripPanel の背景を描画します。Draws the background of the ToolStripPanel.

(Inherited from ToolStripRenderer)
DrawToolStripStatusLabelBackground(ToolStripItemRenderEventArgs) DrawToolStripStatusLabelBackground(ToolStripItemRenderEventArgs) DrawToolStripStatusLabelBackground(ToolStripItemRenderEventArgs) DrawToolStripStatusLabelBackground(ToolStripItemRenderEventArgs)

ToolStripStatusLabel の背景を描画します。Draws the background of the ToolStripStatusLabel.

(Inherited from ToolStripRenderer)
Equals(Object) Equals(Object) Equals(Object) Equals(Object)

指定したオブジェクトが、現在のオブジェクトと等しいかどうかを判断します。Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

既定のハッシュ関数として機能します。Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

現在のインスタンスの Type を取得します。Gets the Type of the current instance.

(Inherited from Object)
Initialize(ToolStrip) Initialize(ToolStrip) Initialize(ToolStrip) Initialize(ToolStrip)

派生クラスでオーバーライドすると、特定の ToolStrip のカスタムの初期化処理を提供します。When overridden in a derived class, provides for custom initialization of the given ToolStrip.

(Inherited from ToolStripRenderer)
InitializeContentPanel(ToolStripContentPanel) InitializeContentPanel(ToolStripContentPanel) InitializeContentPanel(ToolStripContentPanel) InitializeContentPanel(ToolStripContentPanel)

指定した ToolStripContentPanel を初期化します。Initializes the specified ToolStripContentPanel.

(Inherited from ToolStripRenderer)
InitializeItem(ToolStripItem) InitializeItem(ToolStripItem) InitializeItem(ToolStripItem) InitializeItem(ToolStripItem)

派生クラスでオーバーライドすると、特定の ToolStripItem のカスタムの初期化処理を提供します。When overridden in a derived class, provides for custom initialization of the given ToolStripItem.

(Inherited from ToolStripRenderer)
InitializePanel(ToolStripPanel) InitializePanel(ToolStripPanel) InitializePanel(ToolStripPanel) InitializePanel(ToolStripPanel)

指定した ToolStripPanel を初期化します。Initializes the specified ToolStripPanel.

(Inherited from ToolStripRenderer)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

現在の Object の簡易コピーを作成します。Creates a shallow copy of the current Object.

(Inherited from Object)
OnRenderArrow(ToolStripArrowRenderEventArgs) OnRenderArrow(ToolStripArrowRenderEventArgs) OnRenderArrow(ToolStripArrowRenderEventArgs) OnRenderArrow(ToolStripArrowRenderEventArgs)

RenderArrow イベントを発生させます。Raises the RenderArrow event.

OnRenderButtonBackground(ToolStripItemRenderEventArgs) OnRenderButtonBackground(ToolStripItemRenderEventArgs) OnRenderButtonBackground(ToolStripItemRenderEventArgs) OnRenderButtonBackground(ToolStripItemRenderEventArgs)

RenderButtonBackground イベントを発生させます。Raises the RenderButtonBackground event.

OnRenderDropDownButtonBackground(ToolStripItemRenderEventArgs) OnRenderDropDownButtonBackground(ToolStripItemRenderEventArgs) OnRenderDropDownButtonBackground(ToolStripItemRenderEventArgs) OnRenderDropDownButtonBackground(ToolStripItemRenderEventArgs)

RenderDropDownButtonBackground イベントを発生させます。Raises the RenderDropDownButtonBackground event.

OnRenderGrip(ToolStripGripRenderEventArgs) OnRenderGrip(ToolStripGripRenderEventArgs) OnRenderGrip(ToolStripGripRenderEventArgs) OnRenderGrip(ToolStripGripRenderEventArgs)

RenderGrip イベントを発生させます。Raises the RenderGrip event.

OnRenderImageMargin(ToolStripRenderEventArgs) OnRenderImageMargin(ToolStripRenderEventArgs) OnRenderImageMargin(ToolStripRenderEventArgs) OnRenderImageMargin(ToolStripRenderEventArgs)

項目の背景を描画します。Draws the item background.

OnRenderItemBackground(ToolStripItemRenderEventArgs) OnRenderItemBackground(ToolStripItemRenderEventArgs) OnRenderItemBackground(ToolStripItemRenderEventArgs) OnRenderItemBackground(ToolStripItemRenderEventArgs)

OnRenderItemBackground(ToolStripItemRenderEventArgs) イベントを発生させます。Raises the OnRenderItemBackground(ToolStripItemRenderEventArgs) event.

(Inherited from ToolStripRenderer)
OnRenderItemCheck(ToolStripItemImageRenderEventArgs) OnRenderItemCheck(ToolStripItemImageRenderEventArgs) OnRenderItemCheck(ToolStripItemImageRenderEventArgs) OnRenderItemCheck(ToolStripItemImageRenderEventArgs)

RenderItemCheck イベントを発生させます。Raises the RenderItemCheck event.

OnRenderItemImage(ToolStripItemImageRenderEventArgs) OnRenderItemImage(ToolStripItemImageRenderEventArgs) OnRenderItemImage(ToolStripItemImageRenderEventArgs) OnRenderItemImage(ToolStripItemImageRenderEventArgs)

RenderItemImage イベントを発生させます。Raises the RenderItemImage event.

OnRenderItemText(ToolStripItemTextRenderEventArgs) OnRenderItemText(ToolStripItemTextRenderEventArgs) OnRenderItemText(ToolStripItemTextRenderEventArgs) OnRenderItemText(ToolStripItemTextRenderEventArgs)

RenderItemText イベントを発生させます。Raises the RenderItemText event.

OnRenderLabelBackground(ToolStripItemRenderEventArgs) OnRenderLabelBackground(ToolStripItemRenderEventArgs) OnRenderLabelBackground(ToolStripItemRenderEventArgs) OnRenderLabelBackground(ToolStripItemRenderEventArgs)

RenderLabelBackground イベントを発生させます。Raises the RenderLabelBackground event.

OnRenderMenuItemBackground(ToolStripItemRenderEventArgs) OnRenderMenuItemBackground(ToolStripItemRenderEventArgs) OnRenderMenuItemBackground(ToolStripItemRenderEventArgs) OnRenderMenuItemBackground(ToolStripItemRenderEventArgs)

RenderMenuItemBackground イベントを発生させます。Raises the RenderMenuItemBackground event.

OnRenderOverflowButtonBackground(ToolStripItemRenderEventArgs) OnRenderOverflowButtonBackground(ToolStripItemRenderEventArgs) OnRenderOverflowButtonBackground(ToolStripItemRenderEventArgs) OnRenderOverflowButtonBackground(ToolStripItemRenderEventArgs)

RenderOverflowButtonBackground イベントを発生させます。Raises the RenderOverflowButtonBackground event.

OnRenderSeparator(ToolStripSeparatorRenderEventArgs) OnRenderSeparator(ToolStripSeparatorRenderEventArgs) OnRenderSeparator(ToolStripSeparatorRenderEventArgs) OnRenderSeparator(ToolStripSeparatorRenderEventArgs)

RenderSeparator イベントを発生させます。Raises the RenderSeparator event.

OnRenderSplitButtonBackground(ToolStripItemRenderEventArgs) OnRenderSplitButtonBackground(ToolStripItemRenderEventArgs) OnRenderSplitButtonBackground(ToolStripItemRenderEventArgs) OnRenderSplitButtonBackground(ToolStripItemRenderEventArgs)

OnRenderSplitButtonBackground イベントを発生させます。Raises the OnRenderSplitButtonBackground event.

OnRenderStatusStripSizingGrip(ToolStripRenderEventArgs) OnRenderStatusStripSizingGrip(ToolStripRenderEventArgs) OnRenderStatusStripSizingGrip(ToolStripRenderEventArgs) OnRenderStatusStripSizingGrip(ToolStripRenderEventArgs)

RenderStatusStripSizingGrip イベントを発生させます。Raises the RenderStatusStripSizingGrip event.

(Inherited from ToolStripRenderer)
OnRenderToolStripBackground(ToolStripRenderEventArgs) OnRenderToolStripBackground(ToolStripRenderEventArgs) OnRenderToolStripBackground(ToolStripRenderEventArgs) OnRenderToolStripBackground(ToolStripRenderEventArgs)

RenderToolStripBackground イベントを発生させます。Raises the RenderToolStripBackground event.

OnRenderToolStripBorder(ToolStripRenderEventArgs) OnRenderToolStripBorder(ToolStripRenderEventArgs) OnRenderToolStripBorder(ToolStripRenderEventArgs) OnRenderToolStripBorder(ToolStripRenderEventArgs)

RenderToolStripBorder イベントを発生させます。Raises the RenderToolStripBorder event.

OnRenderToolStripContentPanelBackground(ToolStripContentPanelRenderEventArgs) OnRenderToolStripContentPanelBackground(ToolStripContentPanelRenderEventArgs) OnRenderToolStripContentPanelBackground(ToolStripContentPanelRenderEventArgs) OnRenderToolStripContentPanelBackground(ToolStripContentPanelRenderEventArgs)

RenderToolStripContentPanelBackground イベントを発生させます。Raises the RenderToolStripContentPanelBackground event.

OnRenderToolStripPanelBackground(ToolStripPanelRenderEventArgs) OnRenderToolStripPanelBackground(ToolStripPanelRenderEventArgs) OnRenderToolStripPanelBackground(ToolStripPanelRenderEventArgs) OnRenderToolStripPanelBackground(ToolStripPanelRenderEventArgs)

RenderToolStripPanelBackground イベントを発生させます。Raises the RenderToolStripPanelBackground event.

OnRenderToolStripStatusLabelBackground(ToolStripItemRenderEventArgs) OnRenderToolStripStatusLabelBackground(ToolStripItemRenderEventArgs) OnRenderToolStripStatusLabelBackground(ToolStripItemRenderEventArgs) OnRenderToolStripStatusLabelBackground(ToolStripItemRenderEventArgs)

RenderToolStripStatusLabelBackground イベントを発生させます。Raises the RenderToolStripStatusLabelBackground event.

ToString() ToString() ToString() ToString()

現在のオブジェクトを表す文字列を返します。Returns a string that represents the current object.

(Inherited from Object)

イベント

RenderArrow RenderArrow RenderArrow RenderArrow

ToolStripItem 上の矢印が描画されたときに発生します。Occurs when an arrow on a ToolStripItem is rendered.

(Inherited from ToolStripRenderer)
RenderButtonBackground RenderButtonBackground RenderButtonBackground RenderButtonBackground

ToolStripButton の背景が描画されたときに発生します。Occurs when the background for a ToolStripButton is rendered

(Inherited from ToolStripRenderer)
RenderDropDownButtonBackground RenderDropDownButtonBackground RenderDropDownButtonBackground RenderDropDownButtonBackground

ToolStripDropDownButton の背景が描画されたときに発生します。Occurs when the background for a ToolStripDropDownButton is rendered.

(Inherited from ToolStripRenderer)
RenderGrip RenderGrip RenderGrip RenderGrip

ToolStrip の移動ハンドルが描画されたときに発生します。Occurs when the move handle for a ToolStrip is rendered.

(Inherited from ToolStripRenderer)
RenderImageMargin RenderImageMargin RenderImageMargin RenderImageMargin

イメージとそのコンテナーとの間にマージンを描画します。Draws the margin between an image and its container.

(Inherited from ToolStripRenderer)
RenderItemBackground RenderItemBackground RenderItemBackground RenderItemBackground

ToolStripItem の背景が描画されたときに発生します。Occurs when the background for a ToolStripItem is rendered.

(Inherited from ToolStripRenderer)
RenderItemCheck RenderItemCheck RenderItemCheck RenderItemCheck

選択済みの ToolStripItem のイメージが描画されたときに発生します。Occurs when the image for a selected ToolStripItem is rendered.

(Inherited from ToolStripRenderer)
RenderItemImage RenderItemImage RenderItemImage RenderItemImage

ToolStripItem のイメージが描画されたときに発生します。Occurs when the image for a ToolStripItem is rendered.

(Inherited from ToolStripRenderer)
RenderItemText RenderItemText RenderItemText RenderItemText

ToolStripItem のテキストが描画されたときに発生します。Occurs when the text for a ToolStripItem is rendered.

(Inherited from ToolStripRenderer)
RenderLabelBackground RenderLabelBackground RenderLabelBackground RenderLabelBackground

ToolStripLabel の背景が描画されたときに発生します。Occurs when the background for a ToolStripLabel is rendered.

(Inherited from ToolStripRenderer)
RenderMenuItemBackground RenderMenuItemBackground RenderMenuItemBackground RenderMenuItemBackground

ToolStripMenuItem の背景が描画されたときに発生します。Occurs when the background for a ToolStripMenuItem is rendered.

(Inherited from ToolStripRenderer)
RenderOverflowButtonBackground RenderOverflowButtonBackground RenderOverflowButtonBackground RenderOverflowButtonBackground

オーバーフロー ボタンの背景が描画されたときに発生します。Occurs when the background for an overflow button is rendered.

(Inherited from ToolStripRenderer)
RenderSeparator RenderSeparator RenderSeparator RenderSeparator

ToolStripSeparator が描画されたときに発生します。Occurs when a ToolStripSeparator is rendered.

(Inherited from ToolStripRenderer)
RenderSplitButtonBackground RenderSplitButtonBackground RenderSplitButtonBackground RenderSplitButtonBackground

ToolStripSplitButton の背景が描画されたときに発生します。Occurs when the background for a ToolStripSplitButton is rendered.

(Inherited from ToolStripRenderer)
RenderStatusStripSizingGrip RenderStatusStripSizingGrip RenderStatusStripSizingGrip RenderStatusStripSizingGrip

表示スタイルが変更されたときに発生します。Occurs when the display style changes.

(Inherited from ToolStripRenderer)
RenderToolStripBackground RenderToolStripBackground RenderToolStripBackground RenderToolStripBackground

ToolStrip の背景が描画されたときに発生します。Occurs when the background for a ToolStrip is rendered.

(Inherited from ToolStripRenderer)
RenderToolStripBorder RenderToolStripBorder RenderToolStripBorder RenderToolStripBorder

ToolStrip の境界線が描画されたときに発生します。Occurs when the border for a ToolStrip is rendered.

(Inherited from ToolStripRenderer)
RenderToolStripContentPanelBackground RenderToolStripContentPanelBackground RenderToolStripContentPanelBackground RenderToolStripContentPanelBackground

ToolStripContentPanel の背景を描画します。Draws the background of a ToolStripContentPanel.

(Inherited from ToolStripRenderer)
RenderToolStripPanelBackground RenderToolStripPanelBackground RenderToolStripPanelBackground RenderToolStripPanelBackground

ToolStripPanel の背景を描画します。Draws the background of a ToolStripPanel.

(Inherited from ToolStripRenderer)
RenderToolStripStatusLabelBackground RenderToolStripStatusLabelBackground RenderToolStripStatusLabelBackground RenderToolStripStatusLabelBackground

ToolStripStatusLabel の背景を描画します。Draws the background of a ToolStripStatusLabel.

(Inherited from ToolStripRenderer)

適用対象