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 degrees and a circle by using an ellipse.
C#
// Decision Box // 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
|