ToolStripRenderer ToolStripRenderer ToolStripRenderer ToolStripRenderer Class

정의

ToolStrip 개체에 대한 그리기 기능을 처리합니다.Handles the painting functionality for ToolStrip objects.

public ref class ToolStripRenderer abstract
public abstract class ToolStripRenderer
type ToolStripRenderer = class
Public MustInherit Class ToolStripRenderer
상속
ToolStripRendererToolStripRendererToolStripRendererToolStripRenderer
파생

예제

다음 코드 예제에서는 사용자 지정 ToolStripRenderer 클래스를 구현하는 방법을 보여 줍니다.The following code example demonstrates how to implement a custom ToolStripRenderer class. 합니다 GridStripRenderer 클래스의 세 가지 측면을 사용자 지정 합니다 GridStrip 컨트롤의 모양을: GridStrip 테두리 ToolStripButton 테두리 및 ToolStripButton 이미지입니다.The GridStripRenderer class customizes three aspects of the GridStrip control's appearance: GridStrip border, ToolStripButton border, and ToolStripButton image. 전체 코드 목록은 참조 하세요 방법: 사용자 지정 ToolStripRenderer 구현합니다.For a full code listing, see How to: Implement a Custom 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.
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);
        }
    }
}
' 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

설명

사용 된 ToolStripRenderer 특정 스타일 또는 테마를 적용 하는 클래스는 ToolStrip합니다.Use the ToolStripRenderer class to apply a particular style or theme to a ToolStrip. 대신 사용자 지정 그리기를 ToolStripToolStripItem 설정한 포함 하는 개체를 ToolStrip.Renderer 속성에서 상속 되는 개체에 ToolStripRenderer입니다.Rather than custom painting a ToolStrip and the ToolStripItem objects it contains, you set the ToolStrip.Renderer property to an object that inherits from ToolStripRenderer. 지정 된 그리기를 ToolStripRenderer 에 적용 되는 ToolStrip를 포함 하는 항목 뿐만 아니라 합니다.The painting specified by the ToolStripRenderer is applied to the ToolStrip, as well as the items it contains.

사용자 지정 그리기를 수행할 수 있는 ToolStrip 여러 가지 방법으로 제어 합니다.You can do custom painting in ToolStrip controls in several ways. 다른 Windows Forms 컨트롤과 마찬가지로 합니다 ToolStripToolStripItem overridable 둘 OnPaint 메서드 및 Paint 이벤트입니다.As with other Windows Forms controls, the ToolStrip and ToolStripItem both have overridable OnPaint methods and Paint events. 컨트롤의 클라이언트 영역을 기준으로 좌표 시스템은 일반적인 그리기 즉, 컨트롤의 왼쪽 위 모서리는 0, 0입니다.As with regular painting, the coordinate system is relative to the client area of the control; that is, the upper left-hand corner of the control is 0, 0. 합니다 Paint 이벤트 및 OnPaint 에 대 한 메서드는 ToolStripItem 다른 컨트롤 그리기 이벤트 처럼 동작 합니다.The Paint event and OnPaint method for a ToolStripItem behave like other control paint events.

합니다 ToolStripRenderer 클래스에 재정의 가능한 메서드가 백그라운드, 항목 배경, 항목 이미지, 항목 화살표, 항목 텍스트 및 테두리를 그리는 ToolStrip합니다.The ToolStripRenderer class has overridable methods for painting the background, item background, item image, item arrow, item text, and border of the ToolStrip. 이러한 메서드에 대 한 이벤트 인수를 사각형, 색 및 원하는 대로 조정할 수 있는 텍스트 형식 등의 여러 속성을 노출 합니다.The event arguments for these methods expose several properties such as rectangles, colors, and text formats that you can adjust as desired.

항목을 그리는 방법을의 몇 가지 측면을 조정 하려면 일반적으로 재정의 된 ToolStripRenderer합니다.To adjust just a few aspects of how an item is painted, you typically override the ToolStripRenderer.

새 항목을 작성 하는 그리기의 모든 측면을 제어 하려는 경우 재정의 OnPaint 메서드.If you are writing a new item and want to control all aspects of the painting, override the OnPaint method. 내에서 OnPaint에서 메서드를 사용할 수는 ToolStripRenderer합니다.From within OnPaint, you can use methods from the ToolStripRenderer.

기본적으로 ToolStrip 이중 버퍼링을 활용 하 고 되는지는 OptimizedDoubleBuffer 설정 합니다.By default, the ToolStrip is double buffered, taking advantage of the OptimizedDoubleBuffer setting.

생성자

ToolStripRenderer() ToolStripRenderer() ToolStripRenderer() ToolStripRenderer()

ToolStripRenderer 클래스의 새 인스턴스를 초기화합니다.Initializes a new instance of the ToolStripRenderer class.

필드

Offset2X Offset2X Offset2X Offset2X

x축의 오프셋을 두 배로 늘리기 위한 오프셋 승수를 가져오거나 설정합니다.Gets or sets the offset multiplier for twice the offset along the x-axis.

Offset2Y Offset2Y Offset2Y Offset2Y

y축의 오프셋을 두 배로 늘리기 위한 오프셋 승수를 가져오거나 설정합니다.Gets or sets the offset multiplier for twice the offset along the y axis.

메서드

CreateDisabledImage(Image) CreateDisabledImage(Image) CreateDisabledImage(Image) CreateDisabledImage(Image)

지정된 이미지의 회색조 복사본을 만듭니다.Creates a gray-scale copy of a given image.

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

ToolStripItem에 화살표를 그립니다.Draws an arrow on a ToolStripItem.

DrawButtonBackground(ToolStripItemRenderEventArgs) DrawButtonBackground(ToolStripItemRenderEventArgs) DrawButtonBackground(ToolStripItemRenderEventArgs) DrawButtonBackground(ToolStripItemRenderEventArgs)

ToolStripButton의 배경을 그립니다.Draws the background for a ToolStripButton.

DrawDropDownButtonBackground(ToolStripItemRenderEventArgs) DrawDropDownButtonBackground(ToolStripItemRenderEventArgs) DrawDropDownButtonBackground(ToolStripItemRenderEventArgs) DrawDropDownButtonBackground(ToolStripItemRenderEventArgs)

ToolStripDropDownButton의 배경을 그립니다.Draws the background for a ToolStripDropDownButton.

DrawGrip(ToolStripGripRenderEventArgs) DrawGrip(ToolStripGripRenderEventArgs) DrawGrip(ToolStripGripRenderEventArgs) DrawGrip(ToolStripGripRenderEventArgs)

ToolStrip에 이동 핸들을 그립니다.Draws a move handle on a ToolStrip.

DrawImageMargin(ToolStripRenderEventArgs) DrawImageMargin(ToolStripRenderEventArgs) DrawImageMargin(ToolStripRenderEventArgs) DrawImageMargin(ToolStripRenderEventArgs)

ToolStrip의 이미지 주위에 여백을 그립니다.Draws the space around an image on a ToolStrip.

DrawItemBackground(ToolStripItemRenderEventArgs) DrawItemBackground(ToolStripItemRenderEventArgs) DrawItemBackground(ToolStripItemRenderEventArgs) DrawItemBackground(ToolStripItemRenderEventArgs)

ToolStripItem의 배경을 그립니다.Draws the background for a ToolStripItem.

DrawItemCheck(ToolStripItemImageRenderEventArgs) DrawItemCheck(ToolStripItemImageRenderEventArgs) DrawItemCheck(ToolStripItemImageRenderEventArgs) DrawItemCheck(ToolStripItemImageRenderEventArgs)

항목이 선택 상태에 있음을 나타내는 ToolStripItem에 이미지를 그립니다.Draws an image on a ToolStripItem that indicates the item is in a selected state.

DrawItemImage(ToolStripItemImageRenderEventArgs) DrawItemImage(ToolStripItemImageRenderEventArgs) DrawItemImage(ToolStripItemImageRenderEventArgs) DrawItemImage(ToolStripItemImageRenderEventArgs)

ToolStripItem에 이미지를 그립니다.Draws an image on a ToolStripItem.

DrawItemText(ToolStripItemTextRenderEventArgs) DrawItemText(ToolStripItemTextRenderEventArgs) DrawItemText(ToolStripItemTextRenderEventArgs) DrawItemText(ToolStripItemTextRenderEventArgs)

ToolStripItem에 텍스트를 그립니다.Draws text on a ToolStripItem.

DrawLabelBackground(ToolStripItemRenderEventArgs) DrawLabelBackground(ToolStripItemRenderEventArgs) DrawLabelBackground(ToolStripItemRenderEventArgs) DrawLabelBackground(ToolStripItemRenderEventArgs)

ToolStripLabel의 배경을 그립니다.Draws the background for a ToolStripLabel.

DrawMenuItemBackground(ToolStripItemRenderEventArgs) DrawMenuItemBackground(ToolStripItemRenderEventArgs) DrawMenuItemBackground(ToolStripItemRenderEventArgs) DrawMenuItemBackground(ToolStripItemRenderEventArgs)

ToolStripMenuItem의 배경을 그립니다.Draws the background for a ToolStripMenuItem.

DrawOverflowButtonBackground(ToolStripItemRenderEventArgs) DrawOverflowButtonBackground(ToolStripItemRenderEventArgs) DrawOverflowButtonBackground(ToolStripItemRenderEventArgs) DrawOverflowButtonBackground(ToolStripItemRenderEventArgs)

오버플로 단추의 배경을 그립니다.Draws the background for an overflow button.

DrawSeparator(ToolStripSeparatorRenderEventArgs) DrawSeparator(ToolStripSeparatorRenderEventArgs) DrawSeparator(ToolStripSeparatorRenderEventArgs) DrawSeparator(ToolStripSeparatorRenderEventArgs)

ToolStripSeparator를 그립니다.Draws a ToolStripSeparator.

DrawSplitButton(ToolStripItemRenderEventArgs) DrawSplitButton(ToolStripItemRenderEventArgs) DrawSplitButton(ToolStripItemRenderEventArgs) DrawSplitButton(ToolStripItemRenderEventArgs)

ToolStripSplitButton를 그립니다.Draws a ToolStripSplitButton.

DrawStatusStripSizingGrip(ToolStripRenderEventArgs) DrawStatusStripSizingGrip(ToolStripRenderEventArgs) DrawStatusStripSizingGrip(ToolStripRenderEventArgs) DrawStatusStripSizingGrip(ToolStripRenderEventArgs)

크기 조정 그립을 그립니다.Draws a sizing grip.

DrawToolStripBackground(ToolStripRenderEventArgs) DrawToolStripBackground(ToolStripRenderEventArgs) DrawToolStripBackground(ToolStripRenderEventArgs) DrawToolStripBackground(ToolStripRenderEventArgs)

ToolStrip의 배경을 그립니다.Draws the background for a ToolStrip.

DrawToolStripBorder(ToolStripRenderEventArgs) DrawToolStripBorder(ToolStripRenderEventArgs) DrawToolStripBorder(ToolStripRenderEventArgs) DrawToolStripBorder(ToolStripRenderEventArgs)

ToolStrip의 테두리를 그립니다.Draws the border for a ToolStrip.

DrawToolStripContentPanelBackground(ToolStripContentPanelRenderEventArgs) DrawToolStripContentPanelBackground(ToolStripContentPanelRenderEventArgs) DrawToolStripContentPanelBackground(ToolStripContentPanelRenderEventArgs) DrawToolStripContentPanelBackground(ToolStripContentPanelRenderEventArgs)

ToolStripContentPanel의 배경을 그립니다.Draws the background of the ToolStripContentPanel.

DrawToolStripPanelBackground(ToolStripPanelRenderEventArgs) DrawToolStripPanelBackground(ToolStripPanelRenderEventArgs) DrawToolStripPanelBackground(ToolStripPanelRenderEventArgs) DrawToolStripPanelBackground(ToolStripPanelRenderEventArgs)

ToolStripPanel의 배경을 그립니다.Draws the background of the ToolStripPanel.

DrawToolStripStatusLabelBackground(ToolStripItemRenderEventArgs) DrawToolStripStatusLabelBackground(ToolStripItemRenderEventArgs) DrawToolStripStatusLabelBackground(ToolStripItemRenderEventArgs) DrawToolStripStatusLabelBackground(ToolStripItemRenderEventArgs)

ToolStripStatusLabel의 배경을 그립니다.Draws the background of the ToolStripStatusLabel.

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.

InitializeContentPanel(ToolStripContentPanel) InitializeContentPanel(ToolStripContentPanel) InitializeContentPanel(ToolStripContentPanel) InitializeContentPanel(ToolStripContentPanel)

지정된 ToolStripContentPanel을 초기화합니다.Initializes the specified ToolStripContentPanel.

InitializeItem(ToolStripItem) InitializeItem(ToolStripItem) InitializeItem(ToolStripItem) InitializeItem(ToolStripItem)

파생 클래스에서 재정의된 경우 지정된 ToolStripItem의 사용자 지정 초기화 기능을 제공합니다.When overridden in a derived class, provides for custom initialization of the given ToolStripItem.

InitializePanel(ToolStripPanel) InitializePanel(ToolStripPanel) InitializePanel(ToolStripPanel) InitializePanel(ToolStripPanel)

지정된 ToolStripPanel을 초기화합니다.Initializes the specified ToolStripPanel.

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.

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(ToolStripItemRenderEventArgs) 이벤트를 발생시킵니다.Raises the OnRenderSplitButtonBackground(ToolStripItemRenderEventArgs) event.

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

RenderStatusStripSizingGrip 이벤트를 발생시킵니다.Raises the RenderStatusStripSizingGrip event.

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.

ScaleArrowOffsetsIfNeeded() ScaleArrowOffsetsIfNeeded() ScaleArrowOffsetsIfNeeded() ScaleArrowOffsetsIfNeeded()

컴퓨터의 DPI 설정에 따라 크기 조정이 필요한 경우 화살표 아이콘 크기 조정에 Offset2XOffset2Y 값을 적용합니다.Applies the Offset2X and Offset2Y values to scaling the arrow icon, if scaling is required based on the DPI settings of the computer.

ScaleArrowOffsetsIfNeeded(Int32) ScaleArrowOffsetsIfNeeded(Int32) ScaleArrowOffsetsIfNeeded(Int32) ScaleArrowOffsetsIfNeeded(Int32)

지정된 DPI 값을 기반으로 화살표 아이콘 크기 조정에 Offset2XOffset2Y 값을 적용합니다.Applies the Offset2X and Offset2Y values to scaling the arrow icon based on the specified DPI value.

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.

RenderButtonBackground RenderButtonBackground RenderButtonBackground RenderButtonBackground

ToolStripButton의 배경이 렌더링될 때 발생합니다.Occurs when the background for a ToolStripButton is rendered.

RenderDropDownButtonBackground RenderDropDownButtonBackground RenderDropDownButtonBackground RenderDropDownButtonBackground

ToolStripDropDownButton의 배경이 렌더링될 때 발생합니다.Occurs when the background for a ToolStripDropDownButton is rendered.

RenderGrip RenderGrip RenderGrip RenderGrip

ToolStrip의 이동 핸들이 렌더링될 때 발생합니다.Occurs when the move handle for a ToolStrip is rendered.

RenderImageMargin RenderImageMargin RenderImageMargin RenderImageMargin

이미지와 이미지 컨테이너 사이의 여백을 그립니다.Draws the margin between an image and its container.

RenderItemBackground RenderItemBackground RenderItemBackground RenderItemBackground

ToolStripItem의 배경이 렌더링될 때 발생합니다.Occurs when the background for a ToolStripItem is rendered.

RenderItemCheck RenderItemCheck RenderItemCheck RenderItemCheck

선택된 ToolStripItem의 이미지가 렌더링될 때 발생합니다.Occurs when the image for a selected ToolStripItem is rendered.

RenderItemImage RenderItemImage RenderItemImage RenderItemImage

ToolStripItem의 이미지가 렌더링될 때 발생합니다.Occurs when the image for a ToolStripItem is rendered.

RenderItemText RenderItemText RenderItemText RenderItemText

ToolStripItem의 텍스트가 렌더링될 때 발생합니다.Occurs when the text for a ToolStripItem is rendered.

RenderLabelBackground RenderLabelBackground RenderLabelBackground RenderLabelBackground

ToolStripLabel의 배경이 렌더링될 때 발생합니다.Occurs when the background for a ToolStripLabel is rendered.

RenderMenuItemBackground RenderMenuItemBackground RenderMenuItemBackground RenderMenuItemBackground

ToolStripMenuItem의 배경이 렌더링될 때 발생합니다.Occurs when the background for a ToolStripMenuItem is rendered.

RenderOverflowButtonBackground RenderOverflowButtonBackground RenderOverflowButtonBackground RenderOverflowButtonBackground

오버플로 단추의 배경이 렌더링될 때 발생합니다.Occurs when the background for an overflow button is rendered.

RenderSeparator RenderSeparator RenderSeparator RenderSeparator

ToolStripSeparator가 렌더링될 때 발생합니다.Occurs when a ToolStripSeparator is rendered.

RenderSplitButtonBackground RenderSplitButtonBackground RenderSplitButtonBackground RenderSplitButtonBackground

ToolStripSplitButton의 배경이 렌더링될 때 발생합니다.Occurs when the background for a ToolStripSplitButton is rendered.

RenderStatusStripSizingGrip RenderStatusStripSizingGrip RenderStatusStripSizingGrip RenderStatusStripSizingGrip

표시 스타일이 변경되면 발생합니다.Occurs when the display style changes.

RenderToolStripBackground RenderToolStripBackground RenderToolStripBackground RenderToolStripBackground

ToolStrip의 배경이 렌더링될 때 발생합니다.Occurs when the background for a ToolStrip is rendered.

RenderToolStripBorder RenderToolStripBorder RenderToolStripBorder RenderToolStripBorder

ToolStrip의 테두리가 렌더링될 때 발생합니다.Occurs when the border for a ToolStrip is rendered.

RenderToolStripContentPanelBackground RenderToolStripContentPanelBackground RenderToolStripContentPanelBackground RenderToolStripContentPanelBackground

ToolStripContentPanel의 배경을 그립니다.Draws the background of a ToolStripContentPanel.

RenderToolStripPanelBackground RenderToolStripPanelBackground RenderToolStripPanelBackground RenderToolStripPanelBackground

ToolStripPanel의 배경을 그립니다.Draws the background of a ToolStripPanel.

RenderToolStripStatusLabelBackground RenderToolStripStatusLabelBackground RenderToolStripStatusLabelBackground RenderToolStripStatusLabelBackground

ToolStripStatusLabel의 배경을 그립니다.Draws the background of a ToolStripStatusLabel.

적용 대상

추가 정보