public virtual Shape AddFlowShape(PointF location, FlowchartStencilType type) { StencilItem stencil = Stencil[type]; Shape shape = CreateElement(ShapeMode, location, type); Shapes.Add(Shapes.CreateKey(), shape); return(shape); }
private void AddStencilImplementation(Stencil stencil) { Suspend(); foreach (StencilItem item in stencil.Values) { Shape shape = new Shape(item); shape.Label = new TextLabel(item.Key); Shapes.Add(Shapes.CreateKey(), shape); } Resume(); }