共用方式為


DecoratorHostShape.OnKeyDown Method

Overrides OnKeyDown 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 OnKeyDown ( _
    e As DiagramKeyEventArgs _
)
public override void OnKeyDown(
    DiagramKeyEventArgs e
)
public:
virtual void OnKeyDown(
    DiagramKeyEventArgs^ e
) override
abstract OnKeyDown : 
        e:DiagramKeyEventArgs -> unit 
override OnKeyDown : 
        e:DiagramKeyEventArgs -> unit 
public override function OnKeyDown(
    e : DiagramKeyEventArgs
)

Parameters

.NET Framework Security

See Also

Reference

DecoratorHostShape Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace