private VisioAutomation.ShapeSheet.Streams.StreamArray buildstream_src(WriteCache <Src> wcs) { var builder = new VisioAutomation.ShapeSheet.Streams.FixedSrcStreamBuilder(wcs.Count); builder.AddRange(wcs.EnumCoords()); return(builder.ToStream()); }
private Streams.StreamArray _build_src_stream() { int dummy_shapeid = -1; int numshapes = 1; int shapeindex = 0; int numcells = this._get_total_cell_count(numshapes); var stream = new VisioAutomation.ShapeSheet.Streams.FixedSrcStreamBuilder(numcells); var cellinfos = this._enum_total_cellinfo(dummy_shapeid, shapeindex); var srcs = cellinfos.Select(i => i.SidSrc.Src); stream.AddRange(srcs); return(stream.ToStream()); }