共用方式為


ShapeElement.KeyPress Event

Definition

Event fired when the shape has focused and a character is typed.

public:
 event Microsoft::VisualStudio::Modeling::Diagrams::DiagramKeyPressEventHandler ^ KeyPress;
public event Microsoft.VisualStudio.Modeling.Diagrams.DiagramKeyPressEventHandler KeyPress;
member this.KeyPress : Microsoft.VisualStudio.Modeling.Diagrams.DiagramKeyPressEventHandler 
Public Custom Event KeyPress As DiagramKeyPressEventHandler 

Event Type

Applies to