ElementListCompartment.OnKeyDown Method
When the Insert/Enter key is pressed, add a new item. If there is a currently selected item, the new item will be of the same type, otherwise it will be of the default type.
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 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
.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.