WorkflowDesignerMessageFilter.OnShowContextMenu(Point) Método

Definição

Ocorre quando o fluxo de trabalho precisa mostrar um menu de contexto.Occurs when the workflow should show a context menu.

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

Parâmetros

screenMenuPoint
Point

O ponto no qual no menu de contexto é mostrado.The point at which to the context menu is shown.

Retornos

Boolean

true se a mensagem for manipulada, caso contrário, false.true if the message is handled; otherwise, false.

Exemplos

O exemplo de código a seguir mostra como substituir o OnShowContextMenu método para que ele sempre retorne true .The following code example shows how to override the OnShowContextMenu method so that it always returns true.

Este exemplo de código faz parte do exemplo do SDK de hospedagem do designer básico do arquivo DesignerShell. cs.This code example is part of the Basic Designer Hosting SDK Sample from the DesignerShell.cs file. Para obter mais informações, consulte Basic Designer Hosting.For more information, see 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

Comentários

OnShowContextMenu ocorre quando o fluxo de trabalho deve mostrar um menu de contexto.OnShowContextMenu occurs when the workflow should show a context menu.

Aplica-se a