DiagramLite Programmer's Guide
Diagram.DelKeyAction Property
See Also
 





Gets or sets a value that specifies what action should be performed when the user hits the Del key.

Namespace: MindFusion.Diagramming
Assembly: MindFusion.Diagramming.Silverlight

 Syntax

C#  Copy Code

public DelKeyAction DelKeyAction { get; set; }

Visual Basic  Copy Code

Public Property DelKeyAction As DelKeyAction

 Property Value

A member of the DelKeyAction enumeration. The default value is DeleteSelectedItems.

 Remarks

Depending on this property value, the control can delete all selected items, delete only the active item, or ignore the Del key press. To prevent the user form deleting specific items, handle the NodeDeleting or LinkDeleting event and set e.Cancel = true if the selected item should not be deleted.

Set IsTabStop to false for the ScrollViewer that contains the Diagram control. Otherwise the diagram does not receive KeyDown events and cannot handle the Del key.

 See Also

Diagram Members
Diagram Class
MindFusion.Diagramming Namespace
Selection Property
ActiveItem Property