How can we create Flow Chart controls Decision box and Circle programmatically?
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
|