有时候需要改变一下线的方向来组成要要的图形,可以按一下方法来变换一下。

如果看官有好的方法的话,请不吝贴上为谢!

private IPolyline ChangeDirection(IPolyline polyline)

{

IPointCollection pointCollection = polyline as IPointCollection;

IPointCollection newPC = newPolylineClass();

for (int i =pointCollection.PointCount - 1; i >= 0; i--)

     {

      newPC.AddPoint(pointCollection.get_Point(i), mis, mis);

     }

IPolyline newPolyline = newPC as IPolyline;

}

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-08
  • 2021-11-18
  • 2021-11-06
  • 2021-06-04
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-07-26
  • 2022-12-23
  • 2021-09-10
  • 2021-11-12
相关资源
相似解决方案