Articles in this section
Category / Section

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

1 min read

Create Flow Chart controls Decision box and Circle programmatically


You can create a decision box by rotating a rectangle to 45 degree and circle by using 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 same to get circle

 Syncfusion.Windows.Forms.Diagram.Ellipse ellipse = new 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 same to get circle

Dim ellipse = New 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 sign in to leave a comment
Access denied
Access denied