共用方式為


DecoratorHostShape.OnKeyPress Method

Overrides OnKeyPress to forward events to parent shape if ForwardEventsToParent == true.

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

.NET Framework Security

See Also

Reference

DecoratorHostShape Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace