ILine to IPolyline

You need to use an ISegmentCollection and add the ILIne to it, see the example below.

' ---- Assumes pLine exists as an ILine ----

Dim pSegColl as ISegmentCollection
Set pSegColl = New Polyline
pSegColl .AddSegment pPline

Dim pPolyline As IPolyline
Set pPolyline = pSegColl

' ---- You can now use pPolyline ----

ILine to IPolyline

posted @ 2013-02-20 18:56  象牛  阅读(838)  评论(0编辑  收藏  举报