Articles in this section
Category / Section

How can we create Flow Chart controls Decision box and Circle programmatically?

2 mins read

Create Flow Chart controls Decision box and Circle programmatically


You can create a decision box by rotating a rectangle to 45 degrees and a circle by using an ellipse.

C#

// Decision Box
Syncfusion.Windows.Forms.Diagram.Rectangle decision = new Syncfusion.Windows.Forms.Diagram.Rectangle(100, 200, 60, 60);                                                               

// Rotate to make as decision box

decision.RotationAngle = 45;

decision.Visible = true;

// Specify the height and width as the same to get a circle

Syncfusion.Windows.Forms.Diagram.Ellipse ellipse = new Syncfusion.Windows.Forms.Diagram.Ellipse(40, 50, 60, 60);

ellipse.FillStyle.Color = Color.Black;

 

 

VB

' Decision Box

Dim decision As New Syncfusion.Windows.Forms.Diagram.Rectangle(100, 200, 60, 60)

' Rotate to make as decision box

decision.RotationAngle = 45

decision.Visible = True

' Specify the height and width as the same to get a circle

Dim ellipse As New Syncfusion.Windows.Forms.Diagram.Ellipse(40, 50, 60, 60)

ellipse.FillStyle.Color = Color.Black

 

 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please  to leave a comment
Access denied
Access denied