Compartment.OnMouseDown Method
Forwards the event to the compartment shape when the user holds down the mouse button over the compartment.
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)
Syntax
'Declaration
Public Overrides Sub OnMouseDown ( _
e As DiagramMouseEventArgs _
)
public override void OnMouseDown(
DiagramMouseEventArgs e
)
public:
virtual void OnMouseDown(
DiagramMouseEventArgs^ e
) override
abstract OnMouseDown :
e:DiagramMouseEventArgs -> unit
override OnMouseDown :
e:DiagramMouseEventArgs -> unit
public override function OnMouseDown(
e : DiagramMouseEventArgs
)
Parameters
e
Type: Microsoft.VisualStudio.Modeling.Diagrams.DiagramMouseEventArgsThe 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.