阅读:1227回复:0
[求助]ISegmentCollection.AddSegment参数设置的问题
<P>ISegmentCollection pSegColl;<BR>pSegColl = pPolyLine as ISegmentCollection;<BR>pSegColl.<FONT color=#f73809>AddSegment(pLine as ISegment, , );</FONT></P>
<P>我省略后面两个参数总是出错</P> <P>做如下处理也是不行<FONT color=#000000></FONT></P> <P>ISegmentCollection pSegColl;<BR>pSegColl = pPolyLine as ISegmentCollection;<BR>Object pObject1;<BR>Object pObject2;<BR>pObject1 = null;<BR>pObject2 = null;<BR>pSegColl.AddSegment(pLine as ISegment, ref pObject1, ref pObject2);</P> <P>提示信息为</P> <P>The Add method only accepts either a before index or an after index</P> <P>我是想把后两个参数给省略</P> <P>应该怎么办</P> <P>谢谢俄</P> |
|