Share via


Compartment.OnKeyDown Method

Forwards the event to the compartment shape when the user holds a key down.

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 OnKeyDown ( _
    e As DiagramKeyEventArgs _
)
public override void OnKeyDown(
    DiagramKeyEventArgs e
)
public:
virtual void OnKeyDown(
    DiagramKeyEventArgs^ e
) override
abstract OnKeyDown : 
        e:DiagramKeyEventArgs -> unit  
override OnKeyDown : 
        e:DiagramKeyEventArgs -> unit
public override function OnKeyDown(
    e : DiagramKeyEventArgs
)

Parameters

Remarks

To use this method, the ForwardEventsToParent property must be true.

.NET Framework Security

See Also

Reference

Compartment Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace