다음을 통해 공유


Compartment.OnKeyPress Method

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

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

Syntax

‘선언
Public Overrides Sub OnKeyPress ( _
    e As DiagramKeyPressEventArgs _
)
public override void OnKeyPress(
    DiagramKeyPressEventArgs e
)
public:
virtual void OnKeyPress(
    DiagramKeyPressEventArgs^ e
) override
abstract OnKeyPress : 
        e:DiagramKeyPressEventArgs -> unit 
override OnKeyPress : 
        e:DiagramKeyPressEventArgs -> unit 
public override function OnKeyPress(
    e : DiagramKeyPressEventArgs
)

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