WorkflowDesignerMessageFilter.OnShowContextMenu(Point) 메서드

정의

워크플로에서 상황에 맞는 메뉴를 표시해야 할 때 발생합니다.

protected:
 virtual bool OnShowContextMenu(System::Drawing::Point screenMenuPoint);
protected virtual bool OnShowContextMenu (System.Drawing.Point screenMenuPoint);
abstract member OnShowContextMenu : System.Drawing.Point -> bool
override this.OnShowContextMenu : System.Drawing.Point -> bool
Protected Overridable Function OnShowContextMenu (screenMenuPoint As Point) As Boolean

매개 변수

screenMenuPoint
Point

상황에 맞는 메뉴가 표시되는 지점입니다.

반환

Boolean

메시지가 처리되면 true이고, 그렇지 않으면 false입니다.

예제

다음 코드 예제에서는 항상 OnShowContextMenu를 반환하도록 true 메서드를 재정의하는 방법을 보여 줍니다.

이 코드 예제는 DesignerShell.cs 파일에 있는 Basic Designer Hosting SDK 샘플의 일부입니다. 자세한 내용은 Basic Designer Hosting합니다.

protected override bool OnShowContextMenu(Point menuPoint)
{
    return true;
}
Protected Overrides Function OnShowContextMenu(ByVal menuPoint As Point) As Boolean
    Return True
End Function

설명

OnShowContextMenu는 워크플로에서 상황에 맞는 메뉴를 표시해야 할 때 발생합니다.

적용 대상