Exemple #1
0
        private VisioAutomation.ShapeSheet.Streams.StreamArray buildstream_sidsrc(WriteCache <SidSrc> wcs)
        {
            var builder = new VisioAutomation.ShapeSheet.Streams.SidSrcStreamArrayBuilder(wcs.Count);

            builder.AddRange(wcs.EnumCoords());
            return(builder.ToStreamArray());
        }
Exemple #2
0
        private VisioAutomation.ShapeSheet.Streams.StreamArray _build_sidsrc_stream(IList <int> shapeids)
        {
            int numshapes = shapeids.Count;
            int numcells  = this._get_total_cell_count(numshapes);

            var stream = new VisioAutomation.ShapeSheet.Streams.SidSrcStreamArrayBuilder(numcells);

            for (int shapeindex = 0; shapeindex < shapeids.Count; shapeindex++)
            {
                // For each shape add the cells to query
                var shapeid = shapeids[shapeindex];

                var cellinfos = this._enum_total_cellinfo(shapeid);
                var sidsrcs   = cellinfos.Select(i => i.SidSrc);
                stream.AddRange(sidsrcs);
            }

            return(stream.ToStreamArray());
        }