lsfgis8210
路人甲
路人甲
  • 注册日期2006-08-10
  • 发帖数17
  • QQ
  • 铜币184枚
  • 威望0点
  • 贡献值0点
  • 银元0个
阅读:2206回复:2

arcengine中,如何在一条线上增加一个点

楼主#
更多 发布于:2006-10-26 11:12
<P>在arcengine中,想在一条线上增加一个点需要调用AddPoint函数,帮助中说可以省略后面两个参数,调用函数时省略参数出了问题,大家看看怎么办;</P>
<P>IPointCollection pPC;</P>
<P>IPolyline pPolyline = new PolylineClass();</P>
<P>pPC =(IPointCollection)pPolyline;</P>
<P>IPoint pAddP = new PointClass();</P>
<P>pPC.AddPoint( pAddP,null,null );//用null表示忽略参数</P>
喜欢0 评分0
cl991036
管理员
管理员
  • 注册日期2003-07-25
  • 发帖数5917
  • QQ14265545
  • 铜币29669枚
  • 威望217点
  • 贡献值0点
  • 银元0个
  • GIS帝国居民
  • GIS帝国铁杆
1楼#
发布于:2006-10-27 19:14
<DIV>[C#]
<P><B>Optional Values</B></P>
<DIV><I>before</I>   To indicate that this parameter is undefined, first define a variable <B>object Missing = Type.Missing;</B> then pass this in as <B>ref Missing</B>.</DIV>
<DIV><I>after</I>   To indicate that this parameter is undefined, first define a variable <B>object Missing = Type.Missing;</B> then pass this in as <B>ref Missing</B>.</DIV>
<DIV> </DIV>
<DIV>null?OY-</DIV></DIV>
没钱又丑,农村户口。头可断,发型一定不能乱。 邮箱:gisempire@qq.com
举报 回复(0) 喜欢(0)     评分
lsfgis8210
路人甲
路人甲
  • 注册日期2006-08-10
  • 发帖数17
  • QQ
  • 铜币184枚
  • 威望0点
  • 贡献值0点
  • 银元0个
2楼#
发布于:2006-10-30 13:23
<P>谢谢上面的朋友,问题解决了,看来我的基本功还有待加强,以后多多指教</P>
举报 回复(0) 喜欢(0)     评分
游客

返回顶部