Created
April 28, 2017 04:16
-
-
Save tluyben/9742ba161c784190fe09f9045ac9daad to your computer and use it in GitHub Desktop.
Short how to use OpenDiagram Flowchart
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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