Show pageOld revisionsBacklinksAdd to bookBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== Collection Objects ====== Collection objects used in different HE API calls and simplify access to object sets. In general case collection object has following method/properties: ^Property^ Description^ |**Count**| Returns number of items in collection| ^Method^ Description^ |**Item**| Returns item object by index| ===== Syntax ===== ==== JavaScript ==== <code javascript> var oOutput = Application.Output("Test Output"); var oBookmarks = ActiveDocument.Bookmarks; for (var i = 1; i <= oBookmarks.Count; ++i) { var oBookmark = oBookmarks.Item(i) } output.writeln( i + " : " + Syntaxes.Item(i).Name + " (" + Syntaxes[i].Description + ")"); </code> ==== Visual Basic Script ==== <code vb> pBookmarks = DocumentData.Bookmarks </code>==== C++ ==== <code cpp> CComPtr<IBookmarks> pBookmarks; HRESULT hr = DocumentData.get_Bookmarks(&pBookmarks); </code> ===== See Also ===== ~~NOTOC~~