Class NodeDrawingController
Represents the class that is used to draw a node that is defined by the user.
Inherited Members
Namespace: Syncfusion.Blazor.Diagram
Assembly: Syncfusion.Blazor.dll
Syntax
public class NodeDrawingController : InteractionControllerBase
Constructors
NodeDrawingController(SfDiagramComponent)
Initializes a new instance of the NodeDrawingController class.
Declaration
public NodeDrawingController(SfDiagramComponent diagram)
Parameters
Type | Name | Description |
---|---|---|
SfDiagramComponent | diagram | It provides sfdiagramcomponent |
Methods
OnMouseDown(DiagramMouseEventArgs)
This method triggers when the mouse pointer is moved over the diagram and a mouse button is pressed.
Declaration
public override void OnMouseDown(DiagramMouseEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
DiagramMouseEventArgs | args | DiagramMouseEventArgs |
Overrides
OnMouseMove(DiagramMouseEventArgs)
This method triggers when the mouse button is pressed and a mouse pointer is moved over the diagram.
Declaration
public override bool OnMouseMove(DiagramMouseEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
DiagramMouseEventArgs | args | DiagramMouseEventArgs |
Returns
Type | Description |
---|---|
System.Boolean | Blocked |
Overrides
OnMouseUp(DiagramMouseEventArgs)
This method triggers when the mouse pointer is moved over the node and a mouse button is released.
Declaration
public override void OnMouseUp(DiagramMouseEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
DiagramMouseEventArgs | args | DiagramMouseEventArgs |