We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

How to create Flow Chart control by code in Diagram

Hi,

by creating serialize class we can create Rectangle,Ellipse and RoundRect which i am getting in follwong way....


private Syncfusion.Windows.Forms.Diagram.Rectangle outerRect = null;


private Syncfusion.Windows.Forms.Diagram.Ellipse innerEllipse = null;



private Syncfusion.Windows.Forms.Diagram.RoundRect RRect = null;

just my question is how we can create Flow Chart Controls(Decision,Circle, etc..) using same way by code.I am not getting class for that.please reply me.


Thanks and Regards,
Sattar Shaikh




1 Reply

MW Melba Winshia Syncfusion Team November 23, 2007 11:05 AM UTC

Hi Sattar,

Thank you for your interest in Syncfusion Products.

How we can create Flow Chart Controls(Decision,Circle, etc..)

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

//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;

Please refer the sample in the below link which illustrates the above:

http://websamples.syncfusion.com/samples/Diagram.Web/5.2.0.25/69959/main.htm

Please try this and let me know if this helps.

Thanks,
Melba



Loader.
Live Chat Icon For mobile
Up arrow icon