Skip to content

Instantly share code, notes, and snippets.

@tluyben
Created April 28, 2017 04:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tluyben/9742ba161c784190fe09f9045ac9daad to your computer and use it in GitHub Desktop.
Save tluyben/9742ba161c784190fe09f9045ac9daad to your computer and use it in GitHub Desktop.
Short how to use OpenDiagram Flowchart
Model model = diagram1.Model;
diagram1.Model.SetSize(new Size(1000, 1000));
Shape shape = new Shape();
shape.Location = new PointF(10, 20);
//model.Shapes.Add("a1", shape);
Flowchart f = (Flowchart)diagram1;
shape = f.AddFlowShape(shape.Location, FlowchartStencilType.Terminator);
shape.Label = new Label("kaas");
var p = f.AddDecision(shape, "test1", "test2", FlowchartStencilType.Process, "test3", FlowchartStencilType.Card);
p.FalseLine.Label = new Label("no");
p.TrueLine.Label = new Label("yes");
p.DecisionShape.Label = new Label("wat?");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment