Alerts listeners when the user has held down a key when pointing to a shape field.
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.dll)
Syntax
'宣言
Public Overridable Sub OnKeyDown ( _
e As DiagramKeyEventArgs _
)
'使用
Dim instance As ShapeField
Dim e As DiagramKeyEventArgs
instance.OnKeyDown(e)
public virtual void OnKeyDown(
DiagramKeyEventArgs e
)
public:
virtual void OnKeyDown(
DiagramKeyEventArgs^ e
)
public function OnKeyDown(
e : DiagramKeyEventArgs
)
Parameters
e
Type: Microsoft.VisualStudio.Modeling.Diagrams.DiagramKeyEventArgsThe arguments to use when a key is held down.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.