Share via


ElementListCompartment.OnKeyDown(DiagramKeyEventArgs) Method

Definition

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.

public:
 override void OnKeyDown(Microsoft::VisualStudio::Modeling::Diagrams::DiagramKeyEventArgs ^ e);
public override void OnKeyDown (Microsoft.VisualStudio.Modeling.Diagrams.DiagramKeyEventArgs e);
override this.OnKeyDown : Microsoft.VisualStudio.Modeling.Diagrams.DiagramKeyEventArgs -> unit
Public Overrides Sub OnKeyDown (e As DiagramKeyEventArgs)

Parameters

Applies to