ContextMenuStrip 클래스
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
바로 가기 메뉴를 나타냅니다.
public ref class ContextMenuStrip : System::Windows::Forms::ToolStripDropDownMenu
[System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.AutoDispatch)]
[System.Runtime.InteropServices.ComVisible(true)]
public class ContextMenuStrip : System.Windows.Forms.ToolStripDropDownMenu
public class ContextMenuStrip : System.Windows.Forms.ToolStripDropDownMenu
[<System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.AutoDispatch)>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type ContextMenuStrip = class
inherit ToolStripDropDownMenu
type ContextMenuStrip = class
inherit ToolStripDropDownMenu
Public Class ContextMenuStrip
Inherits ToolStripDropDownMenu
- 상속
- 특성
예제
다음 코드 예제에서는 동적 항목 추가, 재사용을 사용한 동적 SourceControl 결정 및 이벤트 처리를 Opening 보여 ContextMenuStrip 줍니다.
// This code example demonstrates how to handle the Opening event.
// It also demonstrates dynamic item addition and dynamic
// SourceControl determination with reuse.
class Form3 : Form
{
// Declare the ContextMenuStrip control.
private ContextMenuStrip fruitContextMenuStrip;
public Form3()
{
// Create a new ContextMenuStrip control.
fruitContextMenuStrip = new ContextMenuStrip();
// Attach an event handler for the
// ContextMenuStrip control's Opening event.
fruitContextMenuStrip.Opening += new System.ComponentModel.CancelEventHandler(cms_Opening);
// Create a new ToolStrip control.
ToolStrip ts = new ToolStrip();
// Create a ToolStripDropDownButton control and add it
// to the ToolStrip control's Items collections.
ToolStripDropDownButton fruitToolStripDropDownButton = new ToolStripDropDownButton("Fruit", null, null, "Fruit");
ts.Items.Add(fruitToolStripDropDownButton);
// Dock the ToolStrip control to the top of the form.
ts.Dock = DockStyle.Top;
// Assign the ContextMenuStrip control as the
// ToolStripDropDownButton control's DropDown menu.
fruitToolStripDropDownButton.DropDown = fruitContextMenuStrip;
// Create a new MenuStrip control and add a ToolStripMenuItem.
MenuStrip ms = new MenuStrip();
ToolStripMenuItem fruitToolStripMenuItem = new ToolStripMenuItem("Fruit", null, null, "Fruit");
ms.Items.Add(fruitToolStripMenuItem);
// Dock the MenuStrip control to the top of the form.
ms.Dock = DockStyle.Top;
// Assign the MenuStrip control as the
// ToolStripMenuItem's DropDown menu.
fruitToolStripMenuItem.DropDown = fruitContextMenuStrip;
// Assign the ContextMenuStrip to the form's
// ContextMenuStrip property.
this.ContextMenuStrip = fruitContextMenuStrip;
// Add the ToolStrip control to the Controls collection.
this.Controls.Add(ts);
//Add a button to the form and assign its ContextMenuStrip.
Button b = new Button();
b.Location = new System.Drawing.Point(60, 60);
this.Controls.Add(b);
b.ContextMenuStrip = fruitContextMenuStrip;
// Add the MenuStrip control last.
// This is important for correct placement in the z-order.
this.Controls.Add(ms);
}
// This event handler is invoked when the ContextMenuStrip
// control's Opening event is raised. It demonstrates
// dynamic item addition and dynamic SourceControl
// determination with reuse.
void cms_Opening(object sender, System.ComponentModel.CancelEventArgs e)
{
// Acquire references to the owning control and item.
Control c = fruitContextMenuStrip.SourceControl as Control;
ToolStripDropDownItem tsi = fruitContextMenuStrip.OwnerItem as ToolStripDropDownItem;
// Clear the ContextMenuStrip control's Items collection.
fruitContextMenuStrip.Items.Clear();
// Check the source control first.
if (c != null)
{
// Add custom item (Form)
fruitContextMenuStrip.Items.Add("Source: " + c.GetType().ToString());
}
else if (tsi != null)
{
// Add custom item (ToolStripDropDownButton or ToolStripMenuItem)
fruitContextMenuStrip.Items.Add("Source: " + tsi.GetType().ToString());
}
// Populate the ContextMenuStrip control with its default items.
fruitContextMenuStrip.Items.Add("-");
fruitContextMenuStrip.Items.Add("Apples");
fruitContextMenuStrip.Items.Add("Oranges");
fruitContextMenuStrip.Items.Add("Pears");
// Set Cancel to false.
// It is optimized to true based on empty entry.
e.Cancel = false;
}
}
' This code example demonstrates how to handle the Opening event.
' It also demonstrates dynamic item addition and dynamic
' SourceControl determination with reuse.
Class Form3
Inherits Form
' Declare the ContextMenuStrip control.
Private fruitContextMenuStrip As ContextMenuStrip
Public Sub New()
' Create a new ContextMenuStrip control.
fruitContextMenuStrip = New ContextMenuStrip()
' Attach an event handler for the
' ContextMenuStrip control's Opening event.
AddHandler fruitContextMenuStrip.Opening, AddressOf cms_Opening
' Create a new ToolStrip control.
Dim ts As New ToolStrip()
' Create a ToolStripDropDownButton control and add it
' to the ToolStrip control's Items collections.
Dim fruitToolStripDropDownButton As New ToolStripDropDownButton("Fruit", Nothing, Nothing, "Fruit")
ts.Items.Add(fruitToolStripDropDownButton)
' Dock the ToolStrip control to the top of the form.
ts.Dock = DockStyle.Top
' Assign the ContextMenuStrip control as the
' ToolStripDropDownButton control's DropDown menu.
fruitToolStripDropDownButton.DropDown = fruitContextMenuStrip
' Create a new MenuStrip control and add a ToolStripMenuItem.
Dim ms As New MenuStrip()
Dim fruitToolStripMenuItem As New ToolStripMenuItem("Fruit", Nothing, Nothing, "Fruit")
ms.Items.Add(fruitToolStripMenuItem)
' Dock the MenuStrip control to the top of the form.
ms.Dock = DockStyle.Top
' Assign the MenuStrip control as the
' ToolStripMenuItem's DropDown menu.
fruitToolStripMenuItem.DropDown = fruitContextMenuStrip
' Assign the ContextMenuStrip to the form's
' ContextMenuStrip property.
Me.ContextMenuStrip = fruitContextMenuStrip
' Add the ToolStrip control to the Controls collection.
Me.Controls.Add(ts)
'Add a button to the form and assign its ContextMenuStrip.
Dim b As New Button()
b.Location = New System.Drawing.Point(60, 60)
Me.Controls.Add(b)
b.ContextMenuStrip = fruitContextMenuStrip
' Add the MenuStrip control last.
' This is important for correct placement in the z-order.
Me.Controls.Add(ms)
End Sub
' This event handler is invoked when the ContextMenuStrip
' control's Opening event is raised. It demonstrates
' dynamic item addition and dynamic SourceControl
' determination with reuse.
Sub cms_Opening(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs)
' Acquire references to the owning control and item.
Dim c As Control = fruitContextMenuStrip.SourceControl
Dim tsi As ToolStripDropDownItem = fruitContextMenuStrip.OwnerItem
' Clear the ContextMenuStrip control's
' Items collection.
fruitContextMenuStrip.Items.Clear()
' Check the source control first.
If (c IsNot Nothing) Then
' Add custom item (Form)
fruitContextMenuStrip.Items.Add(("Source: " + c.GetType().ToString()))
ElseIf (tsi IsNot Nothing) Then
' Add custom item (ToolStripDropDownButton or ToolStripMenuItem)
fruitContextMenuStrip.Items.Add(("Source: " + tsi.GetType().ToString()))
End If
' Populate the ContextMenuStrip control with its default items.
fruitContextMenuStrip.Items.Add("-")
fruitContextMenuStrip.Items.Add("Apples")
fruitContextMenuStrip.Items.Add("Oranges")
fruitContextMenuStrip.Items.Add("Pears")
' Set Cancel to false.
' It is optimized to true based on empty entry.
e.Cancel = False
End Sub
End Class
설명
ContextMenuStrip가 ContextMenu를 대체합니다. 모든 컨트롤과 연결할 ContextMenuStrip 수 있으며 마우스 오른쪽 단추를 클릭하면 바로 가기 메뉴가 자동으로 표시됩니다. 메서드를 ContextMenuStrip 사용하여 프로그래밍 방식으로 표시할 Show 수 있습니다. ContextMenuStrip는 동적 채우기 및 Closing 다중 클릭 시나리오를 처리하기 위해 취소 가능 Opening 및 이벤트를 지원합니다. ContextMenuStrip 는 이미지, 메뉴 항목 확인 상태, 텍스트, 액세스 키, 바로 가기 및 계단식 메뉴를 지원합니다.
다음 항목은 모든 방향에서 ToolStripSystemRendererToolStripProfessionalRenderer 원활하게 작동하도록 특별히 설계되었습니다. 기본적으로 디자인 타임에 컨트롤에 ContextMenuStrip 사용할 수 있습니다.
바로 가기 메뉴는 일반적으로 애플리케이션의 컨텍스트를 고려할 때 사용자에게 유용한 양식의 다양한 메뉴 항목을 MenuStrip 결합하는 데 사용됩니다. 예를 들어 컨트롤에 TextBox 할당된 바로 가기 메뉴를 사용하여 텍스트의 글꼴 변경, 컨트롤 내의 텍스트 찾기 또는 텍스트 복사 및 붙여넣기용 클립보드 기능을 위한 메뉴 항목을 제공할 수 있습니다. 또한 바로 가기 메뉴에 없는 새 ToolStripMenuItem 개체를 노출하여 표시에 적합하지 MenuStrip 않은 MenuStrip 상황별 명령을 제공할 수도 있습니다.
일반적으로 바로 가기 메뉴는 사용자가 컨트롤 또는 양식 자체에 마우스 오른쪽 단추를 클릭할 때 표시됩니다. 표시되는 많은 컨트롤 Form 과 그 자체 Control.ContextMenuStrip 에는 바로 가기 메뉴를 표시하는 컨트롤에 ContextMenuStrip 클래스를 바인딩하는 속성이 있습니다. 둘 이상의 컨트롤에서 .를 ContextMenuStrip사용할 수 있습니다.
메뉴 항목이 ToolStripDropDownMenu.ShowCheckMargin 사용 또는 선택되었음을 보여 주는 확인 표시의 ToolStripMenuItem 왼쪽에 공백을 추가하도록 속성을 true 설정합니다.
ToolStripDropDownMenu.ShowImageMargin 속성은 기본적으로 true로 설정됩니다. 이 공간을 왼쪽에 ToolStripMenuItem 사용하여 해당 메뉴 항목에 대한 이미지를 표시합니다.
이전 버전의 ContextMenu 컨트롤에 ContextMenu 기능을 대체하고 추가하지만ContextMenuStrip, 원하는 경우 이전 버전과의 호환성 및 향후 사용을 위해 유지됩니다.
생성자
| Name | Description |
|---|---|
| ContextMenuStrip() |
ContextMenuStrip 클래스의 새 인스턴스를 초기화합니다. |
| ContextMenuStrip(IContainer) |
클래스의 새 인스턴스를 ContextMenuStrip 초기화하고 지정된 컨테이너와 연결합니다. |
필드
| Name | Description |
|---|---|
| ScrollStateAutoScrolling |
속성의 AutoScroll 값을 결정합니다. (다음에서 상속됨 ScrollableControl) |
| ScrollStateFullDrag |
사용자가 전체 창 끌기를 사용하도록 설정했는지 여부를 확인합니다. (다음에서 상속됨 ScrollableControl) |
| ScrollStateHScrollVisible |
속성 값 HScroll 이 .로 설정되어 있는지 여부를 확인합니다 |
| ScrollStateUserHasScrolled |
사용자가 컨트롤을 스크롤했는지 여부를 확인합니다 ScrollableControl . (다음에서 상속됨 ScrollableControl) |
| ScrollStateVScrollVisible |
속성 값 VScroll 이 .로 설정되어 있는지 여부를 확인합니다 |
속성
| Name | Description |
|---|---|
| AccessibilityObject |
컨트롤에 AccessibleObject 할당된 값을 가져옵니다. (다음에서 상속됨 Control) |
| AccessibleDefaultActionDescription |
접근성 클라이언트 애플리케이션에서 사용할 컨트롤의 기본 작업 설명을 가져오거나 설정합니다. (다음에서 상속됨 Control) |
| AccessibleDescription |
접근성 클라이언트 애플리케이션에서 사용하는 컨트롤에 대한 설명을 가져오거나 설정합니다. (다음에서 상속됨 Control) |
| AccessibleName |
접근성 클라이언트 애플리케이션에서 사용하는 컨트롤의 이름을 가져오거나 설정합니다. (다음에서 상속됨 Control) |
| AccessibleRole |
컨트롤의 액세스 가능한 역할을 가져오거나 설정합니다. (다음에서 상속됨 Control) |
| AllowClickThrough |
창에 포커스가 없을 때 상호 작용할 컨트롤을 나타내는 값을 가져오거나 설정합니다. (다음에서 상속됨 ToolStrip) |
| AllowDrop |
끌어서 놓기 및 항목 다시 정렬이 구현하는 이벤트를 통해 처리되는지 여부를 나타내는 값을 가져오거나 설정합니다. (다음에서 상속됨 ToolStrip) |
| AllowItemReorder |
이 속성은 이 클래스와 관련이 없습니다. (다음에서 상속됨 ToolStripDropDown) |
| AllowMerge |
여러 MenuStrip형식ToolStripDropDownMenuToolStripMenuItem, 기타 형식을 결합할 수 있는지 여부를 나타내는 값을 가져오거나 설정합니다. (다음에서 상속됨 ToolStrip) |
| AllowTransparency |
폼을 조정할 수 있는지 여부를 Opacity 나타내는 값을 가져오거나 설정합니다. (다음에서 상속됨 ToolStripDropDown) |
| Anchor |
이 속성은 이 클래스와 관련이 없습니다. (다음에서 상속됨 ToolStripDropDown) |
| AutoClose |
활성화가 손실된 경우 컨트롤을 ToolStripDropDown 자동으로 닫아야 하는지 여부를 나타내는 값을 가져오거나 설정합니다. (다음에서 상속됨 ToolStripDropDown) |
| AutoScroll |
이 속성은 이 클래스와 관련이 없습니다. (다음에서 상속됨 ToolStrip) |
| AutoScrollMargin |
이 속성은 이 클래스와 관련이 없습니다. (다음에서 상속됨 ToolStrip) |
| AutoScrollMinSize |
이 속성은 이 클래스와 관련이 없습니다. (다음에서 상속됨 ToolStrip) |
| AutoScrollOffset |
이 컨트롤이 스크롤 ScrollControlIntoView(Control)되는 위치를 가져오거나 설정합니다. (다음에서 상속됨 Control) |
| AutoScrollPosition |
이 속성은 이 클래스와 관련이 없습니다. (다음에서 상속됨 ToolStrip) |
| AutoSize |
폼의 크기가 조정될 때 크기가 자동으로 조정되는지 여부를 ToolStripDropDown 나타내는 값을 가져오거나 설정합니다. (다음에서 상속됨 ToolStripDropDown) |
| BackColor |
에 대한 배경색을 ToolStrip가져오거나 설정합니다. (다음에서 상속됨 ToolStrip) |
| BackgroundImage |
컨트롤에 표시되는 배경 이미지를 가져오거나 설정합니다. (다음에서 상속됨 Control) |
| BackgroundImageLayout |
열거형에 정의된 배경 이미지 레이아웃을 ImageLayout 가져오거나 설정합니다. (다음에서 상속됨 Control) |
| BindingContext |
에 대한 바인딩 컨텍스트를 ToolStrip가져오거나 설정합니다. (다음에서 상속됨 ToolStrip) |
| Bottom |
컨트롤의 아래쪽 가장자리와 컨테이너 클라이언트 영역의 위쪽 가장자리 사이의 거리를 픽셀 단위로 가져옵니다. (다음에서 상속됨 Control) |
| Bounds |
부모 컨트롤을 기준으로 비클라이언트 요소를 포함하여 컨트롤의 크기와 위치를 픽셀 단위로 가져오거나 설정합니다. (다음에서 상속됨 Control) |
| CanEnableIme |
IME 지원을 사용하도록 설정하기 위해 속성을 활성 값으로 설정할 수 있는지 여부를 ImeMode 나타내는 값을 가져옵니다. (다음에서 상속됨 Control) |
| CanFocus |
컨트롤이 포커스를 받을 수 있는지 여부를 나타내는 값을 가져옵니다. (다음에서 상속됨 Control) |
| CanOverflow |
오버플로 메뉴에 있는 ToolStripDropDown 항목을 보낼 수 있는지 여부를 나타내는 값을 가져오거나 설정합니다. (다음에서 상속됨 ToolStripDropDown) |
| CanRaiseEvents |
컨트롤에서 이벤트가 발생할 수 있는지 여부를 결정합니다. (다음에서 상속됨 Control) |
| CanSelect |
컨트롤을 선택할 수 있는지 여부를 나타내는 값을 가져옵니다. (다음에서 상속됨 Control) |
| Capture |
컨트롤이 마우스를 캡처했는지 여부를 나타내는 값을 가져오거나 설정합니다. (다음에서 상속됨 Control) |
| CausesValidation |
포커스를 받을 때 유효성 검사가 필요한 컨트롤에서 유효성 검사가 수행되는지 여부를 ToolStrip 나타내는 값을 가져오거나 설정합니다. (다음에서 상속됨 ToolStrip) |
| ClientRectangle |
컨트롤의 클라이언트 영역을 나타내는 사각형을 가져옵니다. (다음에서 상속됨 Control) |
| ClientSize |
컨트롤의 클라이언트 영역 높이와 너비를 가져오거나 설정합니다. (다음에서 상속됨 Control) |
| CompanyName |
컨트롤을 포함하는 애플리케이션의 회사 또는 작성자의 이름을 가져옵니다. (다음에서 상속됨 Control) |
| Container |
를 IContainer 포함하는 값을 가져옵니다 Component. (다음에서 상속됨 Component) |
| ContainsFocus |
컨트롤 또는 해당 자식 컨트롤 중 하나에 현재 입력 포커스가 있는지 여부를 나타내는 값을 가져옵니다. (다음에서 상속됨 Control) |
| ContextMenu |
이 속성은 이 클래스와 관련이 없습니다. (다음에서 상속됨 ToolStripDropDown) |
| ContextMenuStrip |
이 속성은 이 클래스와 관련이 없습니다. (다음에서 상속됨 ToolStripDropDown) |
| Controls |
이 속성은 이 클래스와 관련이 없습니다. (다음에서 상속됨 ToolStrip) |
| Created |
컨트롤이 만들어졌는지 여부를 나타내는 값을 가져옵니다. (다음에서 상속됨 Control) |
| CreateParams |
새 창의 매개 변수를 가져옵니다. (다음에서 상속됨 ToolStripDropDown) |
| Cursor |
마우스 포인터 ToolStrip가 위에 있을 때 표시되는 커서를 가져오거나 설정합니다. (다음에서 상속됨 ToolStrip) |
| DataBindings |
컨트롤의 데이터 바인딩을 가져옵니다. (다음에서 상속됨 Control) |
| DataContext |
데이터 바인딩을 위해 데이터 컨텍스트를 가져오거나 설정합니다. 앰비언트 속성입니다. (다음에서 상속됨 Control) |
| DefaultCursor |
컨트롤의 기본 커서를 가져오거나 설정합니다. (다음에서 상속됨 Control) |
| DefaultDock |
컨테이너에 도킹되는 테두리를 나타내는 도킹 위치를 ToolStrip가져옵니다. (다음에서 상속됨 ToolStripDropDown) |
| DefaultDropDownDirection |
를 기준으로 ToolStrip표시되는 방향을 ToolStripDropDown 가져오거나 설정합니다. (다음에서 상속됨 ToolStripDropDown) |
| DefaultGripMargin |
크기 조정 그립과 가장자리 사이의 기본 간격(픽셀)을 ToolStrip가져옵니다. (다음에서 상속됨 ToolStrip) |
| DefaultImeMode |
컨트롤에서 지원하는 기본 IME(입력 메서드 편집기) 모드를 가져옵니다. (다음에서 상속됨 Control) |
| DefaultMargin |
간격(픽셀 단위)ToolStrip을 가져옵니다.ToolStripContainer (다음에서 상속됨 ToolStrip) |
| DefaultMaximumSize |
컨트롤의 기본 최대 크기로 지정된 길이와 높이(픽셀)를 가져옵니다. (다음에서 상속됨 Control) |
| DefaultMinimumSize |
컨트롤의 기본 최소 크기로 지정된 길이와 높이(픽셀)를 가져옵니다. (다음에서 상속됨 Control) |
| DefaultPadding |
컨트롤의 내부 간격(픽셀)을 가져옵니다. (다음에서 상속됨 ToolStripDropDownMenu) |
| DefaultShowItemToolTips |
도구 설명이 기본적으로 표시되는 ToolStripDropDown 지 여부를 나타내는 값을 가져옵니다. (다음에서 상속됨 ToolStripDropDown) |
| DefaultSize |
의 기본 크기를 ToolStrip가져옵니다. (다음에서 상속됨 ToolStrip) |
| DesignMode |
현재 디자인 모드인지 여부를 Component 나타내는 값을 가져옵니다. (다음에서 상속됨 Component) |
| DeviceDpi |
컨트롤이 현재 표시되는 디스플레이 디바이스의 DPI 값을 가져옵니다. (다음에서 상속됨 Control) |
| DisplayedItems |
에 자동으로 추가되는 항목을 포함하여 현재 표시되는 ToolStrip항목의 하위 집합을 ToolStrip가져옵니다. (다음에서 상속됨 ToolStrip) |
| DisplayRectangle |
의 표시 영역을 나타내는 사각형을 ToolStripDropDownMenu가져옵니다. (다음에서 상속됨 ToolStripDropDownMenu) |
| Disposing |
기본 Control 클래스가 삭제 중인지 여부를 나타내는 값을 가져옵니다. (다음에서 상속됨 Control) |
| Dock |
이 속성은 이 클래스와 관련이 없습니다. (다음에서 상속됨 ToolStripDropDown) |
| DockPadding |
컨트롤의 모든 가장자리에 대한 도크 안쪽 여백 설정을 가져옵니다. (다음에서 상속됨 ScrollableControl) |
| DoubleBuffered |
이 컨트롤이 깜박임을 줄이거나 방지하기 위해 보조 버퍼를 사용하여 표면을 다시 그릴지 여부를 나타내는 값을 가져오거나 설정합니다. (다음에서 상속됨 Control) |
| DropShadowEnabled |
3차원 그림자 효과가 표시될 때 ToolStripDropDown 나타나는지 여부를 나타내는 값을 가져오거나 설정합니다. (다음에서 상속됨 ToolStripDropDown) |
| Enabled |
컨트롤이 사용자 상호 작용에 응답할 수 있는지 여부를 나타내는 값을 가져오거나 설정합니다. (다음에서 상속됨 Control) |
| Events |
이 Component에 연결된 이벤트 처리기 목록을 가져옵니다. (다음에서 상속됨 Component) |
| Focused |
컨트롤에 입력 포커스가 있는지 여부를 나타내는 값을 가져옵니다. (다음에서 상속됨 Control) |
| Font |
에 ToolStripDropDown표시되는 텍스트의 글꼴을 가져오거나 설정합니다. (다음에서 상속됨 ToolStripDropDown) |
| FontHeight |
컨트롤 글꼴의 높이를 가져오거나 설정합니다. (다음에서 상속됨 Control) |
| ForeColor |
의 전경색을 ToolStrip가져오거나 설정합니다. (다음에서 상속됨 ToolStrip) |
| GripDisplayStyle |
이 속성은 이 클래스와 관련이 없습니다. (다음에서 상속됨 ToolStripDropDown) |
| GripMargin |
이 속성은 이 클래스와 관련이 없습니다. (다음에서 상속됨 ToolStripDropDown) |
| GripRectangle |
이 속성은 이 클래스와 관련이 없습니다. (다음에서 상속됨 ToolStripDropDown) |
| GripStyle |
이 속성은 이 클래스와 관련이 없습니다. (다음에서 상속됨 ToolStripDropDown) |
| Handle |
컨트롤이 바인딩된 창 핸들을 가져옵니다. (다음에서 상속됨 Control) |
| HasChildren |
이 속성은 이 클래스와 관련이 없습니다. (다음에서 상속됨 ToolStrip) |
| Height |
컨트롤의 높이를 가져오거나 설정합니다. (다음에서 상속됨 Control) |
| HorizontalScroll |
이 속성은 이 클래스와 관련이 없습니다. (다음에서 상속됨 ToolStrip) |
| HScroll |
가로 스크롤 막대가 표시되는지 여부를 나타내는 값을 가져오거나 설정합니다. (다음에서 상속됨 ScrollableControl) |
| ImageList |
항목에 표시되는 ToolStrip 이미지가 포함된 이미지 목록을 가져오거나 설정합니다. (다음에서 상속됨 ToolStrip) |
| ImageScalingSize |
에 사용되는 ToolStrip이미지의 크기를 픽셀 단위로 가져오거나 설정합니다. (다음에서 상속됨 ToolStrip) |
| ImeMode |
컨트롤의 IME(입력 메서드 편집기) 모드를 가져오거나 설정합니다. (다음에서 상속됨 Control) |
| ImeModeBase |
컨트롤의 IME 모드를 가져오거나 설정합니다. (다음에서 상속됨 Control) |
| InvokeRequired |
호출자가 컨트롤을 만든 스레드와 다른 스레드에 있으므로 호출자가 컨트롤에 메서드를 호출할 때 호출자가 호출 메서드를 호출해야 하는지 여부를 나타내는 값을 가져옵니다. (다음에서 상속됨 Control) |
| IsAccessible |
컨트롤이 접근성 애플리케이션에 표시되는지 여부를 나타내는 값을 가져오거나 설정합니다. (다음에서 상속됨 Control) |
| IsAncestorSiteInDesignMode |
이 컨트롤의 상위 항목 중 하나가 배치되고 DesignMode에 해당 사이트가 있는지 나타냅니다. 이 속성은 읽기 전용입니다. (다음에서 상속됨 Control) |
| IsAutoGenerated |
자동으로 ToolStripDropDown 생성되었는지 여부를 나타내는 값을 가져옵니다. (다음에서 상속됨 ToolStripDropDown) |
| IsCurrentlyDragging |
사용자가 현재 서로 간에 이동하고 ToolStripToolStripContainer 있는지 여부를 나타내는 값을 가져옵니다. (다음에서 상속됨 ToolStrip) |
| IsDisposed |
컨트롤이 삭제되었는지 여부를 나타내는 값을 가져옵니다. (다음에서 상속됨 Control) |
| IsDropDown |
컨트롤인지 여부를 ToolStripToolStripDropDown 나타내는 값을 가져옵니다. (다음에서 상속됨 ToolStrip) |
| IsHandleCreated |
컨트롤에 연결된 핸들이 있는지 여부를 나타내는 값을 가져옵니다. (다음에서 상속됨 Control) |
| IsMirrored |
컨트롤이 미러링되는지 여부를 나타내는 값을 가져옵니다. (다음에서 상속됨 Control) |
| Items |
에 속하는 ToolStrip모든 항목을 가져옵니다. (다음에서 상속됨 ToolStrip) |
| LayoutEngine |
레이아웃 엔진 인터페이스에서 반환된 캐시된 LayoutEngine 참조를 전달합니다. (다음에서 상속됨 ToolStripDropDownMenu) |
| LayoutSettings |
레이아웃 구성표 특성을 가져오거나 설정합니다. (다음에서 상속됨 ToolStrip) |
| LayoutStyle |
항목 ContextMenuStrip 이 표시되는 방법을 나타내는 값을 가져오거나 설정합니다. (다음에서 상속됨 ToolStripDropDownMenu) |
| Left |
컨트롤의 왼쪽 가장자리와 컨테이너 클라이언트 영역의 왼쪽 가장자리 사이의 거리를 픽셀 단위로 가져오거나 설정합니다. (다음에서 상속됨 Control) |
| Location |
이 속성은 이 클래스와 관련이 없습니다. (다음에서 상속됨 ToolStripDropDown) |
| Margin |
컨트롤 사이의 공간을 가져오거나 설정합니다. (다음에서 상속됨 Control) |
| MaximumSize |
지정할 수 있는 상한 GetPreferredSize(Size) 인 크기를 가져오거나 설정합니다. (다음에서 상속됨 Control) |
| MaxItemSize |
최대 높이와 너비를 픽셀 단위로 ContextMenuStrip가져옵니다. (다음에서 상속됨 ToolStripDropDownMenu) |
| MinimumSize |
지정할 수 있는 하한 GetPreferredSize(Size) 인 크기를 가져오거나 설정합니다. (다음에서 상속됨 Control) |
| Name |
컨트롤의 이름을 가져오거나 설정합니다. (다음에서 상속됨 Control) |
| Opacity |
양식의 불투명도를 결정합니다. (다음에서 상속됨 ToolStripDropDown) |
| Orientation |
의 방향을 ToolStripPanel가져옵니다. (다음에서 상속됨 ToolStrip) |
| OverflowButton |
이 속성은 이 클래스와 관련이 없습니다. (다음에서 상속됨 ToolStripDropDown) |
| OwnerItem |
이 ToolStripDropDown소유자를 ToolStripItem 가져오거나 설정합니다. (다음에서 상속됨 ToolStripDropDown) |
| Padding |
컨트롤 내에서 안쪽 여백을 가져오거나 설정합니다. (다음에서 상속됨 Control) |
| Parent |
컨트롤의 부모 컨테이너를 가져오거나 설정합니다. (다음에서 상속됨 Control) |
| PreferredSize |
컨트롤이 맞을 수 있는 사각형 영역의 크기를 가져옵니다. (다음에서 상속됨 Control) |
| ProductName |
컨트롤을 포함하는 어셈블리의 제품 이름을 가져옵니다. (다음에서 상속됨 Control) |
| ProductVersion |
컨트롤을 포함하는 어셈블리의 버전을 가져옵니다. (다음에서 상속됨 Control) |
| RecreatingHandle |
컨트롤이 현재 해당 핸들을 다시 만들고 있는지 여부를 나타내는 값을 가져옵니다. (다음에서 상속됨 Control) |
| Region |
와 연결된 ToolStripDropDown창 영역을 가져오거나 설정합니다. (다음에서 상속됨 ToolStripDropDown) |
| Renderer |
의 ToolStripRenderer 모양과 느낌을 ToolStrip사용자 지정하는 데 사용되는 항목을 가져오거나 설정합니다. (다음에서 상속됨 ToolStrip) |
| RenderMode |
에 적용 ToolStrip할 비주얼 스타일을 나타내는 값을 가져오거나 설정합니다. (다음에서 상속됨 ToolStrip) |
| RenderRightToLeft |
사용되지 않음.
사용되지 않음.
이 속성은 이제 사용되지 않습니다. (다음에서 상속됨 Control) |
| ResizeRedraw |
크기가 조정될 때 컨트롤 자체를 다시 그릴지 여부를 나타내는 값을 가져오거나 설정합니다. (다음에서 상속됨 Control) |
| Right |
컨트롤의 오른쪽 가장자리와 컨테이너 클라이언트 영역의 왼쪽 가장자리 사이의 거리를 픽셀 단위로 가져옵니다. (다음에서 상속됨 Control) |
| RightToLeft |
컨트롤의 요소가 오른쪽에서 왼쪽 글꼴을 사용하여 로캘을 지원하도록 정렬되는지 여부를 나타내는 값을 가져오거나 설정합니다. (다음에서 상속됨 ToolStripDropDown) |
| ScaleChildren |
자식 컨트롤의 크기를 결정하는 값을 가져옵니다. (다음에서 상속됨 Control) |
| ShowCheckMargin |
확인 표시의 공간이 왼쪽 가장자리에 ToolStripMenuItem표시되는지 여부를 나타내는 값을 가져오거나 설정합니다. (다음에서 상속됨 ToolStripDropDownMenu) |
| ShowFocusCues |
컨트롤에 포커스 사각형이 표시되어야 하는지 여부를 나타내는 값을 가져옵니다. (다음에서 상속됨 Control) |
| ShowImageMargin |
이미지의 왼쪽 가장자리에 ToolStripMenuItem이미지 공간이 표시되는지 여부를 나타내는 값을 가져오거나 설정합니다. (다음에서 상속됨 ToolStripDropDownMenu) |
| ShowItemToolTips |
도구 설명이 항목에 ToolStrip 표시될지 여부를 나타내는 값을 가져오거나 설정합니다. (다음에서 상속됨 ToolStrip) |
| ShowKeyboardCues |
사용자 인터페이스가 키보드 가속기를 표시하거나 숨길 적절한 상태에 있는지 여부를 나타내는 값을 가져옵니다. (다음에서 상속됨 Control) |
| Site |
컨트롤의 사이트를 가져오거나 설정합니다. (다음에서 상속됨 Control) |
| Size |
컨트롤의 높이와 너비를 가져오거나 설정합니다. (다음에서 상속됨 Control) |
| SourceControl |
이를 ContextMenuStrip 표시한 마지막 컨트롤을 가져옵니다. |
| Stretch |
이 속성은 이 클래스와 관련이 없습니다. (다음에서 상속됨 ToolStripDropDown) |
| TabIndex |
이 속성은 이 클래스와 관련이 없습니다. (다음에서 상속됨 ToolStripDropDown) |
| TabStop |
사용자가 TAB 키를 사용하여 항목 ToolStrip 에 포커스를 줄 수 있는지 여부를 나타내는 값을 가져오거나 설정합니다. (다음에서 상속됨 ToolStrip) |
| Tag |
컨트롤에 대한 데이터가 들어 있는 개체를 가져오거나 설정합니다. (다음에서 상속됨 Control) |
| Text |
이 컨트롤과 연결된 텍스트를 가져오거나 설정합니다. (다음에서 상속됨 Control) |
| TextDirection |
항목에 텍스트를 그릴 방향을 지정합니다. (다음에서 상속됨 ToolStripDropDown) |
| Top |
컨트롤의 위쪽 가장자리와 컨테이너 클라이언트 영역의 위쪽 가장자리 사이의 거리를 픽셀 단위로 가져오거나 설정합니다. (다음에서 상속됨 Control) |
| TopLevel |
최상위 컨트롤인지 여부를 ToolStripDropDown 나타내는 값을 가져오거나 설정합니다. (다음에서 상속됨 ToolStripDropDown) |
| TopLevelControl |
다른 Windows Forms 컨트롤에서 부모로 설정되지 않은 부모 컨트롤을 가져옵니다. 일반적으로 컨트롤이 포함된 가장 Form 바깥쪽입니다. (다음에서 상속됨 Control) |
| TopMost |
폼을 맨 위 폼으로 표시할지 여부를 나타내는 값을 가져오거나 설정합니다. (다음에서 상속됨 ToolStripDropDown) |
| UseWaitCursor |
현재 컨트롤 및 모든 자식 컨트롤에 대기 커서를 사용할지 여부를 나타내는 값을 가져오거나 설정합니다. (다음에서 상속됨 Control) |
| VerticalScroll |
이 속성은 이 클래스와 관련이 없습니다. (다음에서 상속됨 ToolStrip) |
| Visible |
표시 여부를 ToolStripDropDown 나타내는 값을 가져오거나 설정합니다. (다음에서 상속됨 ToolStripDropDown) |
| VScroll |
세로 스크롤 막대가 표시되는지 여부를 나타내는 값을 가져오거나 설정합니다. (다음에서 상속됨 ScrollableControl) |
| Width |
컨트롤의 너비를 가져오거나 설정합니다. (다음에서 상속됨 Control) |
| WindowTarget |
이 속성은 이 클래스와 관련이 없습니다. (다음에서 상속됨 Control) |
메서드
이벤트
| Name | Description |
|---|---|
| AutoSizeChanged |
속성이 AutoSize 변경될 때 발생합니다. (다음에서 상속됨 ToolStrip) |
| BackColorChanged |
BackColor 속성 값이 변경되면 발생합니다. (다음에서 상속됨 Control) |
| BackgroundImageChanged |
BackgroundImage 속성 값이 변경되면 발생합니다. (다음에서 상속됨 ToolStripDropDown) |
| BackgroundImageLayoutChanged |
BackgroundImage 속성 값이 변경되면 발생합니다. (다음에서 상속됨 ToolStripDropDown) |
| BeginDrag |
사용자가 컨트롤을 끌기 ToolStrip 시작할 때 발생합니다. (다음에서 상속됨 ToolStrip) |
| BindingContextChanged |
BindingContext 속성 값이 변경되면 발생합니다. (다음에서 상속됨 ToolStripDropDown) |
| CausesValidationChanged |
속성이 변경되면 CausesValidation 발생합니다. (다음에서 상속됨 ToolStrip) |
| ChangeUICues |
포커스 또는 키보드 UI(사용자 인터페이스) 신호가 변경되면 발생합니다. (다음에서 상속됨 ToolStripDropDown) |
| Click |
컨트롤을 클릭할 때 발생합니다. (다음에서 상속됨 Control) |
| ClientSizeChanged |
ClientSize 속성 값이 변경되면 발생합니다. (다음에서 상속됨 Control) |
| Closed |
ToolStripDropDown가 닫힐 때 발생합니다. (다음에서 상속됨 ToolStripDropDown) |
| Closing |
컨트롤이 ToolStripDropDown 닫히려고 할 때 발생합니다. (다음에서 상속됨 ToolStripDropDown) |
| ContextMenuChanged |
이 이벤트는 이 클래스와 관련이 없습니다. (다음에서 상속됨 ToolStripDropDown) |
| ContextMenuStripChanged |
이 이벤트는 이 클래스와 관련이 없습니다. (다음에서 상속됨 ToolStripDropDown) |
| ControlAdded |
이 이벤트는 이 클래스와 관련이 없습니다. (다음에서 상속됨 ToolStrip) |
| ControlRemoved |
이 이벤트는 이 클래스와 관련이 없습니다. (다음에서 상속됨 ToolStrip) |
| CursorChanged |
Cursor 속성 값이 변경되면 발생합니다. (다음에서 상속됨 ToolStrip) |
| DataContextChanged |
DataContext 속성 값이 변경되면 발생합니다. (다음에서 상속됨 Control) |
| Disposed |
구성 요소가 메서드 호출에 Dispose() 의해 삭제될 때 발생합니다. (다음에서 상속됨 Component) |
| DockChanged |
이 이벤트는 이 클래스와 관련이 없습니다. (다음에서 상속됨 ToolStripDropDown) |
| DoubleClick |
컨트롤을 두 번 클릭할 때 발생합니다. (다음에서 상속됨 Control) |
| DpiChangedAfterParent |
부모 컨트롤 또는 폼의 DPI가 변경된 후 컨트롤에 대한 DPI 설정이 프로그래밍 방식으로 변경될 때 발생합니다. (다음에서 상속됨 Control) |
| DpiChangedBeforeParent |
부모 컨트롤 또는 폼에 대한 DPI 변경 이벤트가 발생하기 전에 컨트롤에 대한 DPI 설정이 프로그래밍 방식으로 변경될 때 발생합니다. (다음에서 상속됨 Control) |
| DragDrop |
끌어서 놓기 작업이 완료되면 발생합니다. (다음에서 상속됨 Control) |
| DragEnter |
개체를 컨트롤의 경계로 끌 때 발생합니다. (다음에서 상속됨 Control) |
| DragLeave |
개체를 컨트롤의 범위 밖으로 끌 때 발생합니다. (다음에서 상속됨 Control) |
| DragOver |
개체를 컨트롤의 범위 위로 끌 때 발생합니다. (다음에서 상속됨 Control) |
| EnabledChanged |
Enabled 속성 값이 변경되면 발생합니다. (다음에서 상속됨 Control) |
| EndDrag |
사용자가 컨트롤 끌기를 중지할 때 발생합니다 ToolStrip . (다음에서 상속됨 ToolStrip) |
| Enter |
포커스가 에 들어갈 때 발생합니다 ToolStripDropDown. (다음에서 상속됨 ToolStripDropDown) |
| FontChanged |
Font 속성 값이 변경되면 발생합니다. (다음에서 상속됨 ToolStripDropDown) |
| ForeColorChanged |
ForeColor 속성 값이 변경되면 발생합니다. (다음에서 상속됨 ToolStripDropDown) |
| GiveFeedback |
이 이벤트는 이 클래스와 관련이 없습니다. (다음에서 상속됨 ToolStripDropDown) |
| GotFocus |
컨트롤이 포커스를 받을 때 발생합니다. (다음에서 상속됨 Control) |
| HandleCreated |
컨트롤에 대한 핸들을 만들 때 발생합니다. (다음에서 상속됨 Control) |
| HandleDestroyed |
컨트롤의 핸들이 소멸되는 중일 때 발생합니다. (다음에서 상속됨 Control) |
| HelpRequested |
사용자가 컨트롤에 대한 도움말을 요청할 때 발생합니다. (다음에서 상속됨 ToolStripDropDown) |
| ImeModeChanged |
속성이 ImeModeChanged 변경될 때 발생합니다. (다음에서 상속됨 ToolStripDropDown) |
| Invalidated |
컨트롤의 디스플레이에 다시 그리기가 필요할 때 발생합니다. (다음에서 상속됨 Control) |
| ItemAdded |
새 ToolStripItem 새 값이 에 추가 ToolStripItemCollection되면 발생합니다. (다음에서 상속됨 ToolStrip) |
| ItemClicked |
클릭할 ToolStripItem 때 발생합니다. (다음에서 상속됨 ToolStrip) |
| ItemRemoved |
에서 제거될 때 ToolStripItem 발생합니다 ToolStripItemCollection. (다음에서 상속됨 ToolStrip) |
| KeyDown |
포커스가 있는 동안 ToolStripDropDown 키를 누르고 누를 때 발생합니다. (다음에서 상속됨 ToolStripDropDown) |
| KeyPress |
포커스가 있는 동안 ToolStripDropDown 키를 누를 때 발생합니다. (다음에서 상속됨 ToolStripDropDown) |
| KeyUp |
컨트롤에 포커스가 있는 동안 키가 해제될 때 발생합니다. (다음에서 상속됨 ToolStripDropDown) |
| Layout |
컨트롤이 자식 컨트롤의 위치를 변경해야 하는 경우에 발생합니다. (다음에서 상속됨 Control) |
| LayoutCompleted |
레이아웃 ToolStrip 이 완료되면 발생합니다. (다음에서 상속됨 ToolStrip) |
| LayoutStyleChanged |
LayoutStyle 속성 값이 변경되면 발생합니다. (다음에서 상속됨 ToolStrip) |
| Leave |
입력 포커스가 컨트롤을 떠날 때 발생합니다. (다음에서 상속됨 ToolStripDropDown) |
| LocationChanged |
Location 속성 값이 변경되면 발생합니다. (다음에서 상속됨 Control) |
| LostFocus |
컨트롤이 포커스를 잃을 때 발생합니다. (다음에서 상속됨 Control) |
| MarginChanged |
컨트롤의 여백이 변경되면 발생합니다. (다음에서 상속됨 Control) |
| MouseCaptureChanged |
컨트롤이 마우스 캡처를 잃을 때 발생합니다. (다음에서 상속됨 Control) |
| MouseClick |
마우스로 컨트롤을 클릭할 때 발생합니다. (다음에서 상속됨 Control) |
| MouseDoubleClick |
컨트롤을 마우스로 두 번 클릭하면 발생합니다. (다음에서 상속됨 Control) |
| MouseDown |
마우스 포인터가 컨트롤 위에 있고 마우스 단추를 누를 때 발생합니다. (다음에서 상속됨 Control) |
| MouseEnter |
마우스 포인터가 컨트롤에 들어갈 때 발생합니다. (다음에서 상속됨 Control) |
| MouseHover |
마우스 포인터가 컨트롤에 놓일 때 발생합니다. (다음에서 상속됨 Control) |
| MouseLeave |
마우스 포인터가 컨트롤을 떠날 때 발생합니다. (다음에서 상속됨 Control) |
| MouseMove |
마우스 포인터를 컨트롤 위로 이동할 때 발생합니다. (다음에서 상속됨 Control) |
| MouseUp |
마우스 포인터가 컨트롤 위에 있고 마우스 단추가 놓일 때 발생합니다. (다음에서 상속됨 Control) |
| MouseWheel |
컨트롤에 포커스가 있는 동안 마우스 휠이 움직일 때 발생합니다. (다음에서 상속됨 Control) |
| Move |
컨트롤을 이동할 때 발생합니다. (다음에서 상속됨 Control) |
| Opened |
ToolStripDropDown이(가) 열릴 때 발생합니다. (다음에서 상속됨 ToolStripDropDown) |
| Opening |
컨트롤이 ToolStripDropDown 열릴 때 발생합니다. (다음에서 상속됨 ToolStripDropDown) |
| PaddingChanged |
컨트롤의 안쪽 여백이 변경될 때 발생합니다. (다음에서 상속됨 Control) |
| Paint |
컨트롤을 다시 그릴 때 발생합니다. (다음에서 상속됨 Control) |
| PaintGrip |
이동 핸들이 ToolStrip 그려질 때 발생합니다. (다음에서 상속됨 ToolStrip) |
| ParentChanged |
속성 값이 변경되면 Parent 발생합니다. (다음에서 상속됨 Control) |
| PreviewKeyDown |
포커스가 이 컨트롤에 KeyDown 있는 동안 키를 누르면 이벤트 전에 발생합니다. (다음에서 상속됨 Control) |
| QueryAccessibilityHelp |
접근성 애플리케이션에 대한 도움말을 제공할 때 AccessibleObject 발생합니다. (다음에서 상속됨 Control) |
| QueryContinueDrag |
끌어서 놓기 작업 중에 발생하며 끌기 소스에서 끌어서 놓기 작업을 취소해야 하는지 여부를 결정할 수 있습니다. (다음에서 상속됨 Control) |
| RegionChanged |
Region 속성 값이 변경되면 발생합니다. (다음에서 상속됨 ToolStripDropDown) |
| RendererChanged |
Renderer 속성 값이 변경되면 발생합니다. (다음에서 상속됨 ToolStrip) |
| Resize |
컨트롤의 크기를 조정할 때 발생합니다. (다음에서 상속됨 Control) |
| RightToLeftChanged |
속성 값이 변경되면 RightToLeft 발생합니다. (다음에서 상속됨 Control) |
| Scroll |
이 이벤트는 이 클래스와 관련이 없습니다. (다음에서 상속됨 ToolStripDropDown) |
| SizeChanged |
속성 값이 변경되면 Size 발생합니다. (다음에서 상속됨 Control) |
| StyleChanged |
스타일이 변경되면 ToolStripLayoutStyle 발생합니다. (다음에서 상속됨 ToolStripDropDown) |
| SystemColorsChanged |
시스템 색이 변경되면 발생합니다. (다음에서 상속됨 Control) |
| TabIndexChanged |
이 이벤트는 이 클래스와 관련이 없습니다. (다음에서 상속됨 ToolStripDropDown) |
| TabStopChanged |
이 이벤트는 이 클래스와 관련이 없습니다. (다음에서 상속됨 ToolStripDropDown) |
| TextChanged |
이 이벤트는 이 클래스와 관련이 없습니다. (다음에서 상속됨 ToolStripDropDown) |
| Validated |
이 이벤트는 이 클래스와 관련이 없습니다. (다음에서 상속됨 ToolStripDropDown) |
| Validating |
이 이벤트는 이 클래스와 관련이 없습니다. (다음에서 상속됨 ToolStripDropDown) |
| VisibleChanged |
속성 값이 변경되면 Visible 발생합니다. (다음에서 상속됨 Control) |
명시적 인터페이스 구현
| Name | Description |
|---|---|
| IDropTarget.OnDragDrop(DragEventArgs) |
DragDrop 이벤트를 발생시킵니다. (다음에서 상속됨 Control) |
| IDropTarget.OnDragEnter(DragEventArgs) |
DragEnter 이벤트를 발생시킵니다. (다음에서 상속됨 Control) |
| IDropTarget.OnDragLeave(EventArgs) |
DragLeave 이벤트를 발생시킵니다. (다음에서 상속됨 Control) |
| IDropTarget.OnDragOver(DragEventArgs) |
DragOver 이벤트를 발생시킵니다. (다음에서 상속됨 Control) |