Compartment::OnKeyPress Method (DiagramKeyPressEventArgs^)

 

Forwards the event to the compartment shape when the user presses a key.

Namespace:   Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)

public:
virtual void OnKeyPress(
	DiagramKeyPressEventArgs^ e
) override

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

Return to top
Show: