コード例 #1
0
        public static void Reverse(IPointCollection pts)
        {
            IEnumerable <IMapPoint> reversedPts = pts.Reverse();

            IPointCollection newPts = Runtime.geometryEngine.newPointCollection();

            foreach (IMapPoint pt in reversedPts)
            {
                newPts.Add(pt);
            }

            pts = Runtime.geometryEngine.newPointCollection();
            foreach (IMapPoint pt in newPts)
            {
                pts.Add(pt);
            }
        }
コード例 #2
0
ファイル: GeomUtil.cs プロジェクト: iS3-Project/iS3
        public static void Reverse(IPointCollection pts)
        {
            IEnumerable<IMapPoint> reversedPts = pts.Reverse();

            IPointCollection newPts = Runtime.geometryEngine.newPointCollection();
            foreach (IMapPoint pt in reversedPts)
                newPts.Add(pt);

            pts = Runtime.geometryEngine.newPointCollection();
            foreach (IMapPoint pt in newPts)
                pts.Add(pt);
        }