Пример #1
0
        private VisioAutomation.ShapeSheet.Streams.StreamArray buildstream_sidsrc(WriteCache <SidSrc> wcs)
        {
            var builder = new VisioAutomation.ShapeSheet.Streams.FixedSidSrcStreamBuilder(wcs.Count);

            builder.AddRange(wcs.EnumCoords());
            return(builder.ToStream());
        }
Пример #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.FixedSidSrcStreamBuilder(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, shapeindex);
                var sidsrcs   = cellinfos.Select(i => i.SidSrc);
                stream.AddRange(sidsrcs);
            }

            return(stream.ToStream());
        }