ToolStripDropDown.Close 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
컨트롤을 닫습니다 ToolStripDropDown .
오버로드
| Name | Description |
|---|---|
| Close(ToolStripDropDownCloseReason) |
ToolStripDropDown 지정된 이유로 컨트롤을 닫습니다. |
| Close() |
컨트롤을 닫습니다 ToolStripDropDown . |
Close(ToolStripDropDownCloseReason)
- Source:
- ToolStripDropDown.cs
- Source:
- ToolStripDropDown.cs
- Source:
- ToolStripDropDown.cs
- Source:
- ToolStripDropDown.cs
- Source:
- ToolStripDropDown.cs
ToolStripDropDown 지정된 이유로 컨트롤을 닫습니다.
public:
void Close(System::Windows::Forms::ToolStripDropDownCloseReason reason);
public void Close(System.Windows.Forms.ToolStripDropDownCloseReason reason);
member this.Close : System.Windows.Forms.ToolStripDropDownCloseReason -> unit
Public Sub Close (reason As ToolStripDropDownCloseReason)
매개 변수
- reason
- ToolStripDropDownCloseReason
값 중 ToolStripDropDownCloseReason 하나입니다.
예제
다음 코드 예제에서는 메서드를 사용하여 컨트롤 ToolStripDropDown 을 명시적으로 닫을 때 가까운 이유를 지정하는 Close 방법을 보여 줍니다.
// This method explicitly closes the ToolStripDropDown control
// and specifies the reason for closing as CloseCalled.
private void closeButton_Click(object sender, EventArgs e)
{
this.contextMenuStrip1.Close(ToolStripDropDownCloseReason.CloseCalled);
}
' This method explicitly closes the ToolStripDropDown control
' and specifies the reason for closing as CloseCalled.
Private Sub closeButton_Click(sender As Object, e As EventArgs) Handles closeButton.Click
Me.contextMenuStrip1.Close(ToolStripDropDownCloseReason.CloseCalled)
End Sub
설명
Close 이 메서드를 사용하여 응용 프로그램이 시작되거나 컨트롤을 클릭하여 항목을 선택하는 경우, 포커스가 변경되거나 지정된 키보드 동작이 발생하는 경우와 같은 특정 조건에서 컨트롤을 닫 ToolStripDropDown 습니다.
추가 정보
적용 대상
Close()
- Source:
- ToolStripDropDown.cs
- Source:
- ToolStripDropDown.cs
- Source:
- ToolStripDropDown.cs
- Source:
- ToolStripDropDown.cs
- Source:
- ToolStripDropDown.cs
컨트롤을 닫습니다 ToolStripDropDown .
public:
void Close();
public void Close();
member this.Close : unit -> unit
Public Sub Close ()