Compartment.OnClick Method
Forwards the event to the compartment shape when the user clicks the compartment.
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0.dll)
Syntax
'Declaration
Public Overrides Sub OnClick ( _
e As DiagramPointEventArgs _
)
public override void OnClick(
DiagramPointEventArgs e
)
public:
virtual void OnClick(
DiagramPointEventArgs^ e
) override
abstract OnClick :
e:DiagramPointEventArgs -> unit
override OnClick :
e:DiagramPointEventArgs -> unit
public override function OnClick(
e : DiagramPointEventArgs
)
Parameters
e
Type: Microsoft.VisualStudio.Modeling.Diagrams.DiagramPointEventArgsThe event arguments.
Remarks
To use this method, the ForwardEventsToParent property must be true.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.