Search
DiagramNode.EnabledHandles Property
See Also
 





Gets or sets the kinds of modifications that end-users are permitted to perform on the node.

Namespace: MindFusion.Diagramming
Assembly: MindFusion.Diagramming

 Syntax

C#  Copy Code

public AdjustmentHandles EnabledHandles { get; set; }

Visual Basic  Copy Code

Public Property EnabledHandles As AdjustmentHandles

 Property Value

A combination of the AdjustmentHandles enumeration members. The default is AdjustmentHandles.All.

 Remarks

Disabling some selection handles allows restricting the types of modifications that users can perform on a node. Each manipulation handle can be enabled or disabled by setting or clearing the respective flag in the combination.

For example, to make a node resizable only horizontally, set this property to a combination of the Move, ResizeMiddleLeft and ResizeMiddleRight flags. That will disable all manipulation handles, except the left and right ones, which allow horizontal resizing, and the central one allowing movement of the node.

 Example

The following code disables the rotation handle of a shape node:

C#  Copy Code

node.EnabledHandles = AdjustmentHandles.All & ~ AdjustmentHandles.Rotate;

Visual Basic  Copy Code

node.EnabledHandles = AdjustmentHandles.All And Not AdjustmentHandles.Rotate

 See Also