Class PolygonDrawingController
Represents the class that is used to draw a polygon shape node dynamically using the polygon Tool.
Inherited Members
Namespace: Syncfusion.Blazor.Diagram
Assembly: Syncfusion.Blazor.dll
Syntax
public class PolygonDrawingController : InteractionControllerBase
Constructors
PolygonDrawingController(SfDiagramComponent)
Initializes a new instance of the PolygonDrawingController class.
Declaration
public PolygonDrawingController(SfDiagramComponent diagram)
Parameters
Type | Name | Description |
---|---|---|
SfDiagramComponent | diagram | It provides sfdiagramcomponent |
Methods
OnMouseDown(DiagramMouseEventArgs)
This method triggers when a mouse down event occurs with a drawing tool and polygon shapes in the diagram.
Declaration
public override void OnMouseDown(DiagramMouseEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
DiagramMouseEventArgs | args | DiagramMouseEventArgs |
Overrides
OnMouseMove(DiagramMouseEventArgs)
This method triggers when a mouse move event occurs with a drawing tool and polygon shapes in the diagram.
Declaration
public override bool OnMouseMove(DiagramMouseEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
DiagramMouseEventArgs | args | DiagramMouseEventArgs |
Returns
Type | Description |
---|---|
System.Boolean | Blocked |