다음을 통해 공유


ToolStripControlHost 클래스

정의

사용자 지정 컨트롤 또는 Windows Forms 컨트롤을 호스트합니다.

public ref class ToolStripControlHost : System::Windows::Forms::ToolStripItem
public class ToolStripControlHost : System.Windows.Forms.ToolStripItem
type ToolStripControlHost = class
    inherit ToolStripItem
Public Class ToolStripControlHost
Inherits ToolStripItem
상속
상속
파생

예제

다음 코드 예제에서는 컨트롤을 ToolStripControlHostMonthCalendar 사용하여 구성하고, OnSubscribeControlEvents 이벤트를 처리하고, 일부 멤버를 해당 멤버에 노출하는 방법을 ToolStripControlHost보여 줍니다.

//Declare a class that inherits from ToolStripControlHost.
public ref class ToolStripMonthCalendar: public ToolStripControlHost
{
public:
   // Call the base constructor passing in a MonthCalendar instance.
   ToolStripMonthCalendar() : ToolStripControlHost( gcnew MonthCalendar ) {}

   property MonthCalendar^ MonthCalendarControl 
   {
      MonthCalendar^ get()
      {
         return static_cast<MonthCalendar^>(Control);
      }
   }
   property Day FirstDayOfWeek 
   {
      // Expose the MonthCalendar.FirstDayOfWeek as a property.
      Day get()
      {
         return MonthCalendarControl->FirstDayOfWeek;
      }

      void set( Day value )
      {
         MonthCalendarControl->FirstDayOfWeek = value;
      }
   }

   // Expose the AddBoldedDate method.
   void AddBoldedDate( DateTime dateToBold )
   {
      MonthCalendarControl->AddBoldedDate( dateToBold );
   }

protected:
   // Subscribe and unsubscribe the control events you wish to expose.
   void OnSubscribeControlEvents( System::Windows::Forms::Control^ c )
   {
      // Call the base so the base events are connected.
      __super::OnSubscribeControlEvents( c );
      
      // Cast the control to a MonthCalendar control.
      MonthCalendar^ monthCalendarControl = (MonthCalendar^)c;
      
      // Add the event.
      monthCalendarControl->DateChanged += gcnew DateRangeEventHandler( this, &ToolStripMonthCalendar::HandleDateChanged );
   }

   void OnUnsubscribeControlEvents( System::Windows::Forms::Control^ c )
   {
      
      // Call the base method so the basic events are unsubscribed.
      __super::OnUnsubscribeControlEvents( c );
      
      // Cast the control to a MonthCalendar control.
      MonthCalendar^ monthCalendarControl = (MonthCalendar^)c;
      
      // Remove the event.
      monthCalendarControl->DateChanged -= gcnew DateRangeEventHandler( this, &ToolStripMonthCalendar::HandleDateChanged );
   }

public:
   event DateRangeEventHandler^ DateChanged;

private:
   // Declare the DateChanged event.
   // Raise the DateChanged event.
   void HandleDateChanged( Object^ sender, DateRangeEventArgs^ e )
   {
      if ( DateChanged != nullptr )
      {
         DateChanged( this, e );
      }
   }
};
//Declare a class that inherits from ToolStripControlHost.
public class ToolStripMonthCalendar : ToolStripControlHost
{
    // Call the base constructor passing in a MonthCalendar instance.
    public ToolStripMonthCalendar() : base (new MonthCalendar()) { }

    public MonthCalendar MonthCalendarControl
    {
        get
        {
            return Control as MonthCalendar;
        }
    }

    // Expose the MonthCalendar.FirstDayOfWeek as a property.
    public Day FirstDayOfWeek
    {
        get
        {
            return MonthCalendarControl.FirstDayOfWeek;
        }
        set { MonthCalendarControl.FirstDayOfWeek = value; }
    }

    // Expose the AddBoldedDate method.
    public void AddBoldedDate(DateTime dateToBold)
    {
        MonthCalendarControl.AddBoldedDate(dateToBold);
    }

    // Subscribe and unsubscribe the control events you wish to expose.
    protected override void OnSubscribeControlEvents(Control c)
    {
        // Call the base so the base events are connected.
        base.OnSubscribeControlEvents(c);

        // Cast the control to a MonthCalendar control.
        MonthCalendar monthCalendarControl = (MonthCalendar) c;

        // Add the event.
        monthCalendarControl.DateChanged +=
            new DateRangeEventHandler(OnDateChanged);
    }

    protected override void OnUnsubscribeControlEvents(Control c)
    {
        // Call the base method so the basic events are unsubscribed.
        base.OnUnsubscribeControlEvents(c);

        // Cast the control to a MonthCalendar control.
        MonthCalendar monthCalendarControl = (MonthCalendar) c;

        // Remove the event.
        monthCalendarControl.DateChanged -=
            new DateRangeEventHandler(OnDateChanged);
    }

    // Declare the DateChanged event.
    public event DateRangeEventHandler DateChanged;

    // Raise the DateChanged event.
    private void OnDateChanged(object sender, DateRangeEventArgs e)
    {
        if (DateChanged != null)
        {
            DateChanged(this, e);
        }
    }
}
'Declare a class that inherits from ToolStripControlHost.

Public Class ToolStripMonthCalendar
    Inherits ToolStripControlHost
    
    ' Call the base constructor passing in a MonthCalendar instance.
    Public Sub New() 
        MyBase.New(New MonthCalendar())
    
    End Sub

    Public ReadOnly Property MonthCalendarControl() As MonthCalendar 
        Get
            Return CType(Control, MonthCalendar)
        End Get
    End Property

    ' Expose the MonthCalendar.FirstDayOfWeek as a property.
    Public Property FirstDayOfWeek() As Day 
        Get
            Return MonthCalendarControl.FirstDayOfWeek
        End Get
        Set
            MonthCalendarControl.FirstDayOfWeek = value
        End Set
    End Property
     
    ' Expose the AddBoldedDate method.
    Public Sub AddBoldedDate(ByVal dateToBold As DateTime) 
        MonthCalendarControl.AddBoldedDate(dateToBold)
    
    End Sub

    ' Subscribe and unsubscribe the control events you wish to expose.
    Protected Overrides Sub OnSubscribeControlEvents(ByVal c As Control) 

        ' Call the base so the base events are connected.
        MyBase.OnSubscribeControlEvents(c)
        
        ' Cast the control to a MonthCalendar control.
        Dim monthCalendarControl As MonthCalendar = _
            CType(c, MonthCalendar)

        ' Add the event.
        AddHandler monthCalendarControl.DateChanged, _
            AddressOf HandleDateChanged
    
    End Sub

    Protected Overrides Sub OnUnsubscribeControlEvents(ByVal c As Control)
        ' Call the base method so the basic events are unsubscribed.
        MyBase.OnUnsubscribeControlEvents(c)

        ' Cast the control to a MonthCalendar control.
        Dim monthCalendarControl As MonthCalendar = _
            CType(c, MonthCalendar)

        ' Remove the event.
        RemoveHandler monthCalendarControl.DateChanged, _
            AddressOf HandleDateChanged

    End Sub

    ' Declare the DateChanged event.
    Public Event DateChanged As DateRangeEventHandler

    ' Raise the DateChanged event.
    Private Sub HandleDateChanged(ByVal sender As Object, _
        ByVal e As DateRangeEventArgs)

        RaiseEvent DateChanged(Me, e)
    End Sub
End Class

설명

ToolStripControlHost는 , ToolStripComboBoxToolStripTextBox.의 ToolStripProgressBar기본 클래스입니다. ToolStripControlHost 는 다음 두 가지 방법으로 사용자 지정 컨트롤을 포함한 다른 컨트롤을 호스트할 수 있습니다.

  • ToolStripControlHost 에서 파생되는 클래스를 사용하여 생성합니다Control. 호스트된 컨트롤 및 속성에 완전히 액세스하려면 속성을 나타내는 실제 클래스로 다시 캐스팅 Control 해야 합니다.

  • 확장 ToolStripControlHost및 상속된 클래스의 매개 변수 없는 생성자에서 파생되는 클래스를 전달하는 기본 클래스 생성자를 호출합니다 Control. 이 옵션을 사용하면 공통 컨트롤 메서드 및 속성을 래핑하여 쉽게 액세스할 수 있습니다 ToolStrip.

클래스를 ToolStripControlHost 사용하여 사용자 지정된 컨트롤 또는 다른 Windows Forms 컨트롤을 호스트합니다.

사용자 지정하려면 사용자 지정 ToolStripItem구현에서 ToolStripControlHost 파생하고 만듭니다. 호스트된 컨트롤에서 발생하는 이벤트를 처리하는 것과 같은 OnSubscribeControlEvents 메서드를 재정의할 수 있으며, 사용자 지정 기능을 속성에 추가하여 호스트된 컨트롤을 향상시킬 수 있습니다.

생성자

Name Description
ToolStripControlHost(Control, String)

지정된 컨트롤을 호스트하고 지정된 이름을 가진 클래스의 ToolStripControlHost 새 인스턴스를 초기화합니다.

ToolStripControlHost(Control)

지정된 컨트롤을 호스트하는 클래스의 ToolStripControlHost 새 인스턴스를 초기화합니다.

속성

Name Description
AccessibilityObject

컨트롤에 AccessibleObject 할당된 값을 가져옵니다.

(다음에서 상속됨 ToolStripItem)
AccessibleDefaultActionDescription

접근성 클라이언트 애플리케이션에서 사용할 컨트롤의 기본 작업 설명을 가져오거나 설정합니다.

(다음에서 상속됨 ToolStripItem)
AccessibleDescription

접근성 클라이언트 애플리케이션에 보고될 설명을 가져오거나 설정합니다.

(다음에서 상속됨 ToolStripItem)
AccessibleName

접근성 클라이언트 애플리케이션에서 사용할 컨트롤의 이름을 가져오거나 설정합니다.

(다음에서 상속됨 ToolStripItem)
AccessibleRole

컨트롤의 사용자 인터페이스 요소 유형을 지정하는 액세스 가능한 컨트롤 역할을 가져오거나 설정합니다.

(다음에서 상속됨 ToolStripItem)
Alignment

항목이 시작 또는 끝에 ToolStrip맞춰지는지 여부를 나타내는 값을 가져오거나 설정합니다.

(다음에서 상속됨 ToolStripItem)
AllowDrop

끌어서 놓기 및 항목 다시 정렬이 구현하는 이벤트를 통해 처리되는지 여부를 나타내는 값을 가져오거나 설정합니다.

(다음에서 상속됨 ToolStripItem)
Anchor

바인딩된 ToolStripItem 컨테이너의 가장자리를 가져오거나 설정하며 부모로 크기를 조정하는 방법을 ToolStripItem 결정합니다.

(다음에서 상속됨 ToolStripItem)
AutoSize

항목의 크기가 자동으로 조정되는지 여부를 나타내는 값을 가져오거나 설정합니다.

(다음에서 상속됨 ToolStripItem)
AutoToolTip

도구 설명의 속성 또는 속성을 ToolStripItem 사용할 Text 지 여부를 나타내는 값을 가져오거나 ToolTipText 설정합니다.

(다음에서 상속됨 ToolStripItem)
Available

에 배치ToolStrip해야 하는지 여부를 ToolStripItem 나타내는 값을 가져오거나 설정합니다.

(다음에서 상속됨 ToolStripItem)
BackColor

컨트롤의 배경색을 가져오거나 설정합니다.

BackgroundImage

컨트롤에 표시되는 배경 이미지를 가져오거나 설정합니다.

BackgroundImageLayout

열거형에 정의된 배경 이미지 레이아웃을 ImageLayout 가져오거나 설정합니다.

BindingContext

에 대한 IBindableComponent통화 관리자 컬렉션을 가져오거나 설정합니다.

(다음에서 상속됨 BindableComponent)
Bounds

항목의 크기와 위치를 가져옵니다.

(다음에서 상속됨 ToolStripItem)
CanRaiseEvents

구성 요소가 이벤트를 발생시키는지 여부를 나타내는 값을 가져옵니다.

(다음에서 상속됨 Component)
CanSelect

컨트롤을 선택할 수 있는지 여부를 나타내는 값을 가져옵니다.

CausesValidation

호스트된 컨트롤이 포커스를 받을 때 다른 컨트롤에서 유효성 검사 이벤트를 발생시키고 발생시키는지 여부를 나타내는 값을 가져오거나 설정합니다.

Command

ToolStripItem의 Click 이벤트가 호출될 때 호출할 메서드를 가져오거나 설정합니다.ICommandExecute(Object)

(다음에서 상속됨 ToolStripItem)
CommandParameter

속성에 할당된 매개 변수에 ICommand 전달되는 매개 변수를 Command 가져오거나 설정합니다.

(다음에서 상속됨 ToolStripItem)
Container

IContainer 포함하는 값을 가져옵니다 Component.

(다음에서 상속됨 Component)
ContentRectangle

텍스트 및 아이콘과 같은 콘텐츠를 배경 테두리를 덮어쓰지 않고 배치할 수 있는 ToolStripItem 영역을 가져옵니다.

(다음에서 상속됨 ToolStripItem)
Control

호스팅 ToolStripControlHost 하는 Control 것을 가져옵니다.

ControlAlign

폼에서 컨트롤의 맞춤을 가져오거나 설정합니다.

DataBindings

이에 IBindableComponent대한 데이터 바인딩 개체의 컬렉션을 가져옵니다.

(다음에서 상속됨 BindableComponent)
DefaultAutoToolTip

기본값으로 정의된 값을 표시 ToolTip 할지 여부를 나타내는 값을 가져옵니다.

(다음에서 상속됨 ToolStripItem)
DefaultDisplayStyle

ToolStripItem표시되는 내용을 나타내는 값을 가져옵니다.

(다음에서 상속됨 ToolStripItem)
DefaultMargin

항목의 기본 여백을 가져옵니다.

(다음에서 상속됨 ToolStripItem)
DefaultPadding

항목의 내부 간격 특성을 가져옵니다.

(다음에서 상속됨 ToolStripItem)
DefaultSize

컨트롤의 기본 크기를 가져옵니다.

DesignMode

현재 디자인 모드인지 여부를 Component 나타내는 값을 가져옵니다.

(다음에서 상속됨 Component)
DismissWhenClicked

항목을 클릭한 후 숨길지 여부를 ToolStripDropDown 나타내는 값을 가져옵니다.

(다음에서 상속됨 ToolStripItem)
DisplayStyle

이 속성은 이 클래스와 관련이 없습니다.

Dock

부모 컨트롤에 도킹되는 테두리를 가져오거나 설정 ToolStripItem 하며 부모 컨트롤의 크기를 조정하는 방법을 ToolStripItem 결정합니다.

(다음에서 상속됨 ToolStripItem)
DoubleClickEnabled

이 속성은 이 클래스와 관련이 없습니다.

Enabled

부모 컨트롤을 ToolStripItem 사용할 수 있는지 여부를 나타내는 값을 가져오거나 설정합니다.

Events

Component에 연결된 이벤트 처리기 목록을 가져옵니다.

(다음에서 상속됨 Component)
Focused

컨트롤에 입력 포커스가 있는지 여부를 나타내는 값을 가져옵니다.

Font

호스트된 컨트롤에서 사용할 글꼴을 가져오거나 설정합니다.

ForeColor

호스트된 컨트롤의 전경색을 가져오거나 설정합니다.

Height

의 높이(픽셀) ToolStripItem를 가져오거나 설정합니다.

(다음에서 상속됨 ToolStripItem)
Image

개체와 연결된 이미지입니다.

ImageAlign

이 속성은 이 클래스와 관련이 없습니다.

ImageIndex

항목에 표시되는 이미지의 인덱스 값을 가져오거나 설정합니다.

(다음에서 상속됨 ToolStripItem)
ImageKey

에 표시되는 ToolStripItem이미지 ImageList 의 키 접근자를 가져오거나 설정합니다.

(다음에서 상속됨 ToolStripItem)
ImageScaling

이 속성은 이 클래스와 관련이 없습니다.

ImageTransparentColor

이 속성은 이 클래스와 관련이 없습니다.

IsDisposed

개체가 삭제되었는지 여부를 나타내는 값을 가져옵니다.

(다음에서 상속됨 ToolStripItem)
IsOnDropDown

현재 ControlToolStripDropDown컨테이너가 .인지 여부를 나타내는 값을 가져옵니다.

(다음에서 상속됨 ToolStripItem)
IsOnOverflow

속성이 .로 설정Overflow되었는지 여부를 Placement 나타내는 값을 가져옵니다.

(다음에서 상속됨 ToolStripItem)
Margin

항목과 인접 항목 사이의 공간을 가져오거나 설정합니다.

(다음에서 상속됨 ToolStripItem)
MergeAction

자식 메뉴를 부모 메뉴와 병합하는 방법을 가져오거나 설정합니다.

(다음에서 상속됨 ToolStripItem)
MergeIndex

현재 ToolStrip내에서 병합된 항목의 위치를 가져오거나 설정합니다.

(다음에서 상속됨 ToolStripItem)
Name

항목의 이름을 가져오거나 설정합니다.

(다음에서 상속됨 ToolStripItem)
Overflow

항목이 둘 사이에 연결되어 ToolStripToolStripOverflowButton 있는지 또는 부동 소수점 사이의 부동 소수점인지를 가져오거나 설정합니다.

(다음에서 상속됨 ToolStripItem)
Owner

이 항목의 소유자를 가져오거나 설정합니다.

(다음에서 상속됨 ToolStripItem)
OwnerItem

ToolStripItem항목의 부모를 ToolStripItem 가져옵니다.

(다음에서 상속됨 ToolStripItem)
Padding

항목의 내용과 해당 가장자리 사이의 내부 간격을 픽셀 단위로 가져오거나 설정합니다.

(다음에서 상속됨 ToolStripItem)
Parent

의 부모 컨테이너 ToolStripItem를 가져오거나 설정합니다.

(다음에서 상속됨 ToolStripItem)
Placement

항목의 현재 레이아웃을 가져옵니다.

(다음에서 상속됨 ToolStripItem)
Pressed

항목의 상태를 눌렀는지 여부를 나타내는 값을 가져옵니다.

(다음에서 상속됨 ToolStripItem)
Renderer

부모 ToolStrip렌더러를 반환합니다.

(다음에서 상속됨 ToolStripItem)
RightToLeft

컨트롤의 요소가 오른쪽에서 왼쪽 글꼴을 사용하여 로캘을 지원하도록 정렬되는지 여부를 나타내는 값을 가져오거나 설정합니다.

RightToLeftAutoMirrorImage

이 속성은 이 클래스와 관련이 없습니다.

Selected

항목이 선택되었는지 여부를 나타내는 값을 가져옵니다.

ShowKeyboardCues

바로 가기 키를 표시하거나 숨길지 여부를 나타내는 값을 가져옵니다.

(다음에서 상속됨 ToolStripItem)
Site

호스트된 컨트롤의 사이트를 가져오거나 설정합니다.

Size

의 크기를 ToolStripItem가져오거나 설정합니다.

Tag

항목에 대한 데이터가 포함된 개체를 가져오거나 설정합니다.

(다음에서 상속됨 ToolStripItem)
Text

호스트된 컨트롤에 표시할 텍스트를 가져오거나 설정합니다.

TextAlign

이 속성은 이 클래스와 관련이 없습니다.

TextDirection

이 속성은 이 클래스와 관련이 없습니다.

TextImageRelation

이 속성은 이 클래스와 관련이 없습니다.

ToolTipText

컨트롤의 텍스트로 ToolTip 표시되는 텍스트를 가져오거나 설정합니다.

(다음에서 상속됨 ToolStripItem)
Visible

항목이 표시되는지 여부를 나타내는 값을 가져오거나 설정합니다.

(다음에서 상속됨 ToolStripItem)
Width

너비를 픽셀 ToolStripItem단위로 가져오거나 설정합니다.

(다음에서 상속됨 ToolStripItem)

메서드

Name Description
CreateAccessibilityInstance()

컨트롤에 대한 새 접근성 개체를 만듭니다.

CreateObjRef(Type)

원격 개체와 통신하는 데 사용되는 프록시를 생성하는 데 필요한 모든 관련 정보를 포함하는 개체를 만듭니다.

(다음에서 상속됨 MarshalByRefObject)
Dispose()

에서 사용하는 모든 리소스를 Component해제합니다.

(다음에서 상속됨 Component)
Dispose(Boolean)

관리되지 않는 리소스를 ToolStripControlHost 해제하고 관리되는 리소스를 선택적으로 해제합니다.

DoDragDrop(Object, DragDropEffects, Bitmap, Point, Boolean)

끌기 작업을 시작합니다.

(다음에서 상속됨 ToolStripItem)
DoDragDrop(Object, DragDropEffects)

끌어서 놓기 작업을 시작합니다.

(다음에서 상속됨 ToolStripItem)
Equals(Object)

지정된 개체가 현재 개체와 같은지 여부를 확인합니다.

(다음에서 상속됨 Object)
Focus()

컨트롤에 포커스를 제공합니다.

GetCurrentParent()

현재 ToolStripItem컨테이너를 검색합니다ToolStrip.

(다음에서 상속됨 ToolStripItem)
GetHashCode()

기본 해시 함수로 사용됩니다.

(다음에서 상속됨 Object)
GetLifetimeService()
사용되지 않음.

이 인스턴스의 수명 정책을 제어하는 현재 수명 서비스 개체를 검색합니다.

(다음에서 상속됨 MarshalByRefObject)
GetPreferredSize(Size)

컨트롤을 장착할 수 있는 사각형 영역의 크기를 검색합니다.

GetService(Type)

또는 해당 서비스에서 제공하는 서비스를 나타내는 개체를 Component 반환합니다 Container.

(다음에서 상속됨 Component)
GetType()

현재 인스턴스의 Type 가져옵니다.

(다음에서 상속됨 Object)
InitializeLifetimeService()
사용되지 않음.

이 인스턴스의 수명 정책을 제어하는 수명 서비스 개체를 가져옵니다.

(다음에서 상속됨 MarshalByRefObject)
Invalidate()

전체 표면 ToolStripItem 을 무효화하고 다시 그려지게 합니다.

(다음에서 상속됨 ToolStripItem)
Invalidate(Rectangle)

지정한 영역을 다음 페인트 작업에서 다시 칠할 영역인 업데이트 영역에 추가하여 지정한 영역을 ToolStripItemToolStripItem무효화하고 페인트 메시지를 해당 영역으로 ToolStripItem보냅니다.

(다음에서 상속됨 ToolStripItem)
IsInputChar(Char)

문자가 항목에서 인식하는 입력 문자인지 여부를 결정합니다.

(다음에서 상속됨 ToolStripItem)
IsInputKey(Keys)

지정된 키가 일반 입력 키인지 아니면 전처리가 필요한 특수 키인지 확인합니다.

(다음에서 상속됨 ToolStripItem)
MemberwiseClone()

현재 Object단순 복사본을 만듭니다.

(다음에서 상속됨 Object)
MemberwiseClone(Boolean)

현재 MarshalByRefObject 개체의 단순 복사본을 만듭니다.

(다음에서 상속됨 MarshalByRefObject)
OnAvailableChanged(EventArgs)

AvailableChanged 이벤트를 발생합니다.

(다음에서 상속됨 ToolStripItem)
OnBackColorChanged(EventArgs)

BackColorChanged 이벤트를 발생시킵니다.

(다음에서 상속됨 ToolStripItem)
OnBindingContextChanged(EventArgs)

BindingContextChanged 이벤트를 발생시킵니다.

(다음에서 상속됨 BindableComponent)
OnBoundsChanged()

속성이 변경되면 Bounds 발생합니다.

OnClick(EventArgs)

Click 이벤트를 발생시킵니다.

(다음에서 상속됨 ToolStripItem)
OnCommandCanExecuteChanged(EventArgs)

CommandCanExecuteChanged 이벤트를 발생시킵니다.

(다음에서 상속됨 ToolStripItem)
OnCommandChanged(EventArgs)

CommandChanged 이벤트를 발생시킵니다.

(다음에서 상속됨 ToolStripItem)
OnCommandParameterChanged(EventArgs)

CommandParameterChanged 이벤트를 발생시킵니다.

(다음에서 상속됨 ToolStripItem)
OnDisplayStyleChanged(EventArgs)

DisplayStyleChanged 이벤트를 발생시킵니다.

(다음에서 상속됨 ToolStripItem)
OnDoubleClick(EventArgs)

DoubleClick 이벤트를 발생시킵니다.

(다음에서 상속됨 ToolStripItem)
OnDragDrop(DragEventArgs)

DragDrop 이벤트를 발생시킵니다.

(다음에서 상속됨 ToolStripItem)
OnDragEnter(DragEventArgs)

DragEnter 이벤트를 발생시킵니다.

(다음에서 상속됨 ToolStripItem)
OnDragLeave(EventArgs)

DragLeave 이벤트를 발생시킵니다.

(다음에서 상속됨 ToolStripItem)
OnDragOver(DragEventArgs)

DragOver 이벤트를 발생시킵니다.

(다음에서 상속됨 ToolStripItem)
OnEnabledChanged(EventArgs)

EnabledChanged 이벤트를 발생시킵니다.

(다음에서 상속됨 ToolStripItem)
OnEnter(EventArgs)

Enter 이벤트를 발생시킵니다.

OnFontChanged(EventArgs)

FontChanged 이벤트를 발생시킵니다.

(다음에서 상속됨 ToolStripItem)
OnForeColorChanged(EventArgs)

ForeColorChanged 이벤트를 발생시킵니다.

(다음에서 상속됨 ToolStripItem)
OnGiveFeedback(GiveFeedbackEventArgs)

GiveFeedback 이벤트를 발생시킵니다.

(다음에서 상속됨 ToolStripItem)
OnGotFocus(EventArgs)

GotFocus 이벤트를 발생시킵니다.

OnHostedControlResize(EventArgs)

컨트롤 호스트의 크기 조정을 호스트된 컨트롤의 크기 조정과 동기화합니다.

OnKeyDown(KeyEventArgs)

KeyDown 이벤트를 발생시킵니다.

OnKeyPress(KeyPressEventArgs)

KeyPress 이벤트를 발생시킵니다.

OnKeyUp(KeyEventArgs)

KeyUp 이벤트를 발생시킵니다.

OnLayout(LayoutEventArgs)

Layout 이벤트를 발생시킵니다.

OnLeave(EventArgs)

Leave 이벤트를 발생시킵니다.

OnLocationChanged(EventArgs)

LocationChanged 이벤트를 발생시킵니다.

(다음에서 상속됨 ToolStripItem)
OnLostFocus(EventArgs)

LostFocus 이벤트를 발생시킵니다.

OnMouseDown(MouseEventArgs)

MouseDown 이벤트를 발생시킵니다.

(다음에서 상속됨 ToolStripItem)
OnMouseEnter(EventArgs)

MouseEnter 이벤트를 발생시킵니다.

(다음에서 상속됨 ToolStripItem)
OnMouseHover(EventArgs)

MouseHover 이벤트를 발생시킵니다.

(다음에서 상속됨 ToolStripItem)
OnMouseLeave(EventArgs)

MouseLeave 이벤트를 발생시킵니다.

(다음에서 상속됨 ToolStripItem)
OnMouseMove(MouseEventArgs)

MouseMove 이벤트를 발생시킵니다.

(다음에서 상속됨 ToolStripItem)
OnMouseUp(MouseEventArgs)

MouseUp 이벤트를 발생시킵니다.

(다음에서 상속됨 ToolStripItem)
OnOwnerChanged(EventArgs)

OwnerChanged 이벤트를 발생시킵니다.

(다음에서 상속됨 ToolStripItem)
OnOwnerFontChanged(EventArgs)

FontChanged 의 부모ToolStripItem에서 속성이 Font 변경되면 이벤트를 발생합니다.

(다음에서 상속됨 ToolStripItem)
OnPaint(PaintEventArgs)

Paint 이벤트를 발생시킵니다.

OnParentBackColorChanged(EventArgs)

BackColorChanged 이벤트를 발생시킵니다.

(다음에서 상속됨 ToolStripItem)
OnParentChanged(ToolStrip, ToolStrip)

ParentChanged 이벤트를 발생시킵니다.

OnParentEnabledChanged(EventArgs)

항목 컨테이너의 EnabledChanged 속성 값이 Enabled 변경되면 이벤트를 발생합니다.

(다음에서 상속됨 ToolStripItem)
OnParentForeColorChanged(EventArgs)

ForeColorChanged 이벤트를 발생시킵니다.

(다음에서 상속됨 ToolStripItem)
OnParentRightToLeftChanged(EventArgs)

RightToLeftChanged 이벤트를 발생시킵니다.

(다음에서 상속됨 ToolStripItem)
OnQueryContinueDrag(QueryContinueDragEventArgs)

QueryContinueDrag 이벤트를 발생시킵니다.

(다음에서 상속됨 ToolStripItem)
OnRequestCommandExecute(EventArgs)

컨텍스트가 허용하는 경우 호출할 컨텍스트 OnClick(EventArgs) 에서 호출 Execute(Object) 됩니다.

(다음에서 상속됨 ToolStripItem)
OnRightToLeftChanged(EventArgs)

RightToLeftChanged 이벤트를 발생시킵니다.

(다음에서 상속됨 ToolStripItem)
OnSelectedChanged(EventArgs)

SelectedChanged 이벤트를 발생시킵니다.

(다음에서 상속됨 ToolStripItem)
OnSubscribeControlEvents(Control)

호스트된 컨트롤에서 이벤트를 구독합니다.

OnTextChanged(EventArgs)

TextChanged 이벤트를 발생시킵니다.

(다음에서 상속됨 ToolStripItem)
OnUnsubscribeControlEvents(Control)

호스트된 컨트롤에서 이벤트를 구독 취소합니다.

OnValidated(EventArgs)

Validated 이벤트를 발생시킵니다.

OnValidating(CancelEventArgs)

Validating 이벤트를 발생시킵니다.

OnVisibleChanged(EventArgs)

VisibleChanged 이벤트를 발생시킵니다.

(다음에서 상속됨 ToolStripItem)
PerformClick()

에 대한 ToolStripItem이벤트를 생성합니다Click.

(다음에서 상속됨 ToolStripItem)
ProcessCmdKey(Message, Keys)

명령 키를 처리합니다.

ProcessDialogKey(Keys)

대화 상자를 처리합니다.

ProcessMnemonic(Char)

니모닉 문자를 처리합니다.

ProcessMnemonic(Char)

니모닉 문자를 처리합니다.

(다음에서 상속됨 ToolStripItem)
ResetBackColor()

이 메서드는 이 클래스와 관련이 없습니다.

ResetDisplayStyle()

이 메서드는 이 클래스와 관련이 없습니다.

(다음에서 상속됨 ToolStripItem)
ResetFont()

이 메서드는 이 클래스와 관련이 없습니다.

(다음에서 상속됨 ToolStripItem)
ResetForeColor()

이 메서드는 이 클래스와 관련이 없습니다.

ResetImage()

이 메서드는 이 클래스와 관련이 없습니다.

(다음에서 상속됨 ToolStripItem)
ResetMargin()

이 메서드는 이 클래스와 관련이 없습니다.

(다음에서 상속됨 ToolStripItem)
ResetPadding()

이 메서드는 이 클래스와 관련이 없습니다.

(다음에서 상속됨 ToolStripItem)
ResetRightToLeft()

이 메서드는 이 클래스와 관련이 없습니다.

(다음에서 상속됨 ToolStripItem)
ResetTextDirection()

이 메서드는 이 클래스와 관련이 없습니다.

(다음에서 상속됨 ToolStripItem)
Select()

항목을 선택합니다.

(다음에서 상속됨 ToolStripItem)
SetBounds(Rectangle)

항목의 크기와 위치를 설정합니다.

(다음에서 상속됨 ToolStripItem)
SetVisibleCore(Boolean)

ToolStripItem 지정된 표시 상태로 설정합니다.

ToString()

String(있는 경우)의 Component이름을 포함하는 값을 반환합니다. 이 메서드는 재정의해서는 안 됩니다.

(다음에서 상속됨 ToolStripItem)

이벤트

Name Description
AvailableChanged

Available 속성 값이 변경되면 발생합니다.

(다음에서 상속됨 ToolStripItem)
BackColorChanged

BackColor 속성 값이 변경되면 발생합니다.

(다음에서 상속됨 ToolStripItem)
BindingContextChanged

바인딩 컨텍스트가 변경될 때 발생합니다.

(다음에서 상속됨 BindableComponent)
Click

클릭할 ToolStripItem 때 발생합니다.

(다음에서 상속됨 ToolStripItem)
CommandCanExecuteChanged

속성에 CanExecute(Object) 할당된 Command 상태 ICommand 변경 시 발생합니다.

(다음에서 상속됨 ToolStripItem)
CommandChanged

속성 할당이 ICommandCommand 변경될 때 발생합니다.

(다음에서 상속됨 ToolStripItem)
CommandParameterChanged

속성 값 CommandParameter 이 변경될 때 발생합니다.

(다음에서 상속됨 ToolStripItem)
DisplayStyleChanged

이 이벤트는 이 클래스와 관련이 없습니다.

Disposed

구성 요소가 메서드 호출에 Dispose() 의해 삭제될 때 발생합니다.

(다음에서 상속됨 Component)
DoubleClick

마우스로 항목을 두 번 클릭할 때 발생합니다.

(다음에서 상속됨 ToolStripItem)
DragDrop

사용자가 항목을 끌어서 마우스 단추를 놓으면 항목이 이 항목에 삭제되어야 함을 나타냅니다.

(다음에서 상속됨 ToolStripItem)
DragEnter

사용자가 항목을 이 항목의 클라이언트 영역으로 끌 때 발생합니다.

(다음에서 상속됨 ToolStripItem)
DragLeave

사용자가 항목을 끌어와 마우스 포인터가 이 항목의 클라이언트 영역 위에 더 이상 없을 때 발생합니다.

(다음에서 상속됨 ToolStripItem)
DragOver

사용자가 이 항목의 클라이언트 영역 위로 항목을 끌 때 발생합니다.

(다음에서 상속됨 ToolStripItem)
EnabledChanged

Enabled 속성 값이 변경되면 발생합니다.

(다음에서 상속됨 ToolStripItem)
Enter

호스트된 컨트롤을 입력할 때 발생합니다.

ForeColorChanged

속성 값이 변경되면 ForeColor 발생합니다.

(다음에서 상속됨 ToolStripItem)
GiveFeedback

끌기 작업 중에 발생합니다.

(다음에서 상속됨 ToolStripItem)
GotFocus

호스트된 컨트롤이 포커스를 받을 때 발생합니다.

KeyDown

호스트된 컨트롤에 포커스가 있는 동안 키를 누르고 누를 때 발생합니다.

KeyPress

호스트된 컨트롤에 포커스가 있는 동안 키를 누를 때 발생합니다.

KeyUp

호스트된 컨트롤에 포커스가 있는 동안 키가 해제될 때 발생합니다.

Leave

입력 포커스가 호스트된 컨트롤을 떠날 때 발생합니다.

LocationChanged

위치 ToolStripItem 가 업데이트되면 발생합니다.

(다음에서 상속됨 ToolStripItem)
LostFocus

호스트된 컨트롤이 포커스를 잃을 때 발생합니다.

MouseDown

마우스 포인터가 항목 위에 있고 마우스 단추를 누를 때 발생합니다.

(다음에서 상속됨 ToolStripItem)
MouseEnter

마우스 포인터가 항목에 들어갈 때 발생합니다.

(다음에서 상속됨 ToolStripItem)
MouseHover

마우스 포인터가 항목 위로 마우스를 가져가면 발생합니다.

(다음에서 상속됨 ToolStripItem)
MouseLeave

마우스 포인터가 항목을 떠날 때 발생합니다.

(다음에서 상속됨 ToolStripItem)
MouseMove

마우스 포인터를 항목 위로 이동할 때 발생합니다.

(다음에서 상속됨 ToolStripItem)
MouseUp

마우스 포인터가 항목 위에 있고 마우스 단추가 놓일 때 발생합니다.

(다음에서 상속됨 ToolStripItem)
OwnerChanged

속성이 변경되면 Owner 발생합니다.

(다음에서 상속됨 ToolStripItem)
Paint

항목이 다시 그려질 때 발생합니다.

(다음에서 상속됨 ToolStripItem)
QueryAccessibilityHelp

접근성 클라이언트 애플리케이션이 에 대한 도움말을 호출할 ToolStripItem때 발생합니다.

(다음에서 상속됨 ToolStripItem)
QueryContinueDrag

끌어서 놓기 작업 중에 발생하며 끌기 소스에서 끌어서 놓기 작업을 취소해야 하는지 여부를 결정할 수 있습니다.

(다음에서 상속됨 ToolStripItem)
RightToLeftChanged

속성 값이 변경되면 RightToLeft 발생합니다.

(다음에서 상속됨 ToolStripItem)
SelectedChanged

Selected 속성 값이 변경되면 발생합니다.

(다음에서 상속됨 ToolStripItem)
TextChanged

Text 속성 값이 변경되면 발생합니다.

(다음에서 상속됨 ToolStripItem)
Validated

호스트된 컨트롤의 유효성을 성공적으로 검사한 후에 발생합니다.

Validating

호스트된 컨트롤의 유효성을 검사하는 동안 발생합니다.

VisibleChanged

Visible 속성 값이 변경되면 발생합니다.

(다음에서 상속됨 ToolStripItem)

명시적 인터페이스 구현

Name Description
IDropTarget.OnDragDrop(DragEventArgs)

DragDrop 이벤트를 발생시킵니다.

(다음에서 상속됨 ToolStripItem)
IDropTarget.OnDragEnter(DragEventArgs)

DragEnter 이벤트를 발생시킵니다.

(다음에서 상속됨 ToolStripItem)
IDropTarget.OnDragLeave(EventArgs)

DragLeave 이벤트를 발생시킵니다.

(다음에서 상속됨 ToolStripItem)
IDropTarget.OnDragOver(DragEventArgs)

DragOver 이벤트를 발생시킵니다.

(다음에서 상속됨 ToolStripItem)

적용 대상

추가 정보