An abstract base class for classes that define how MindFusion.Diagramming reacts to users' actions with a mouse or other pointing devices.
Namespace: MindFusion.Diagramming.WinForms.Behaviors
Assembly: MindFusion.Diagramming.WinForms
C# Copy Code |
---|
public abstract class BehaviorBase : Interaction |
Visual Basic Copy Code |
---|
Public MustInherit Class BehaviorBase |
MindFusion.Diagramming comes with several predefined Behavior classes that can be selected by the Behavior property of the Diagram class. Custom behavior objects can be assigned to the CustomBehavior property.
To define a custom behavior class, implement the StartDraw method which specifies how the control responds when a user starts to draw with the mouse. The SetMouseCursor method is called while the mouse moves to let you set a custom mouse cursor depending on the current mouse location.
System.Object
MindFusion.Diagramming.WinForms.Interaction
MindFusion.Diagramming.WinForms.Behaviors.BehaviorBase
MindFusion.Diagramming.WinForms.MoveNodesBehavior
MindFusion.Diagramming.WinForms.Behaviors.DrawLinksBehavior
MindFusion.Diagramming.WinForms.Behaviors.DrawNodesBehavior
MindFusion.Diagramming.WinForms.Behaviors.LinkNodesBehavior
MindFusion.Diagramming.WinForms.Behaviors.ModifyBehavior
MindFusion.Diagramming.WinForms.Behaviors.PanBehavior
MindFusion.Diagramming.WinForms.Behaviors.SelectOnlyBehavior
MindFusion.Diagramming.WinForms.Behaviors.ZoomBehavior