阅读:2485回复:5
在c#这个addPoint函数如何用?
<P> private IPointCollection pPts</P>
<P>pPts.addPoint(IPoint pt,ref object before,ref object after) //如何设置后两个参数呢?vb中可以省略的</P> |
|
1楼#
发布于:2009-03-07 10:38
<P><img src="images/post/smile/dvbbs/em03.gif" /> 这个在函数使用的时候就已经定义的默认的</P>
<P><B>public void AddPoint (<br> IPoint inPoint,<br> ref object before,<br> ref object after<br>);</B></P><STRONG> <P><B>Optional Values</B></P> <DIV><I>before</I> To indicate that this parameter is undefined, first define a variable <B>object <FONT color=#f73809>Missing = Type.Missing</FONT>;</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 <FONT color=#f73809>Missing = Type.Missing</FONT>;</B> then pass this in as <B>ref Missing</B>.</DIV></STRONG> <P><STRONG></STRONG></P> [此贴子已经被作者于2009-3-7 10:39:16编辑过]
|
|
|
2楼#
发布于:2009-02-06 15:42
后面两个参数用TypeMissing替代就行了。<div>TypeMissing o;</div><div>pPts.addPoint(IPoint pt,ref o,ref o);</div><div><font face="Tahoma" size="3">好像是这个样子。</font></div>
|
|
3楼#
发布于:2009-01-02 10:25
<P>怎么解决的啊?</P>
|
|
4楼#
发布于:2006-02-09 15:25
<P>怎么解决的?</P>
|
|
5楼#
发布于:2006-01-06 17:16
<P>已经解决</P>
|
|