ICANodeCollection

[ 
    object, 
    uuid(D647D5C3-42BD-4DB7-8A2A-65B5469847E7), 
    dual, 
    nonextensible, 
    helpstring("ICANodeCollection Interface"), 
    pointer_default(unique) 
] 
interface ICANodeCollection : IDispatch{ 
    [propget, id(1), helpstring("property Count")] HRESULT Count([out, retval] LONG* pVal); 
    [propget, id(2), helpstring("property Item")] HRESULT Item([in] LONG nIndex, [out, retval] IDispatch** pVal); 
    [id(3), helpstring("method Add")] HRESULT Add([in] IDispatch* pDisp); 
}; 

ProgID
CyberArticleBook.CANodeCollection
C/C++头文件
CyberArticleBook.h; CyberArticleBook_i.c
 

属性 Count

获得节点数量。只读

参数

类型

  • get: [out, retval] LONG* pVal:返回数量
  • put: 无

属性 Item

获得一个节点。只读

参数

  • [in] LONG nIndex:节点索引。(0 到 Count - 1)

类型

  • get: [out, retval] IDispatch** pVal:返回节点 (ICANode)
  • put: 无

方法 Add

添加一个节点

参数

  • [in] IDispatch* pDisp:需要添加的节点 (ICANode)

返回