Beispiel #1
0
        private VisioAutomation.ShapeSheet.Streams.StreamArray buildstream_src(WriteCache <Src> wcs)
        {
            var builder = new VisioAutomation.ShapeSheet.Streams.SrcStreamArrayBuilder(wcs.Count);

            builder.AddRange(wcs.EnumCoords());
            return(builder.ToStreamArray());
        }
Beispiel #2
0
        private Streams.StreamArray _build_src_stream()
        {
            int dummy_shapeid = -1;
            int numshapes     = 1;
            int numcells      = this._get_total_cell_count(numshapes);
            var stream        = new VisioAutomation.ShapeSheet.Streams.SrcStreamArrayBuilder(numcells);
            var cellinfos     = this._enum_total_cellinfo(dummy_shapeid);
            var srcs          = cellinfos.Select(i => i.SidSrc.Src);

            stream.AddRange(srcs);

            return(stream.ToStreamArray());
        }