ToolStrip.LayoutCompleted 이벤트
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
레이아웃 ToolStrip 이 완료되면 발생합니다.
public:
event EventHandler ^ LayoutCompleted;
public event EventHandler LayoutCompleted;
public event EventHandler? LayoutCompleted;
member this.LayoutCompleted : EventHandler
Public Custom Event LayoutCompleted As EventHandler
이벤트 유형
예제
다음 코드 예제에서는이 멤버의 사용을 보여 줍니다. 이 예제에서 이벤트 처리기는 이벤트의 발생을 보고합니다 LayoutCompleted . 이 보고서는 이벤트가 발생하는 시기를 파악하는 데 도움이 되며 디버깅에 도움이 될 수 있습니다. 여러 이벤트 또는 자주 발생하는 이벤트에 대해 보고하려면 메시지를 여러 줄MessageBox.Show로 Console.WriteLine 대체 TextBox 하거나 추가해 보세요.
예제 코드를 실행하려면 이름이 지정된 ToolStrip형식 ToolStrip1 의 인스턴스가 포함된 프로젝트에 붙여넣습니다. 그런 다음 이벤트 처리기가 이벤트와 연결되어 있는지 확인합니다 LayoutCompleted .
private void ToolStrip1_LayoutCompleted(Object sender, EventArgs e) {
MessageBox.Show("You are in the ToolStrip.LayoutCompleted event.");
}
Private Sub ToolStrip1_LayoutCompleted(sender as Object, e as EventArgs) _
Handles ToolStrip1.LayoutCompleted
MessageBox.Show("You are in the ToolStrip.LayoutCompleted event.")
End Sub
설명
항목이 ToolStrip에 맞지 않으면, 오버플로 단추가 자동으로 표시됩니다. 항목이 넘침 영역에 항상, 필요할 때, 또는 절대 표시되지 않도록 할지는 Overflow 속성 설정에 의해 결정됩니다.
Placement 이벤트의 속성을 LayoutCompleted 검사하여 항목이 주ToolStrip, 오버플로ToolStrip에 배치되었는지 또는 현재 전혀 표시되지 않는지 확인합니다. 일반적으로 항목이 표시되지 않는 이유는 항목이 주 ToolStrip에 맞지 않거나 Overflow 속성이 Never로 설정되어 있기 때문입니다.
이벤트 처리에 대한 자세한 내용은 이벤트 처리 및 발생시키기를 참조하십시오.