Item (Method)

Applies To:

AggregateLimits collection, AppendQueries collection, AliasTableName collection, Association collection, ColorRanges collection, Columns collection, Controls collection, ControlsDropDown object, ControlsListBox object, ColorRanges collection, DMCatalogItems collection, DMResults collection, Documents collection, Fact collection, Joins collection, Limits collection, LimitValues collection, ListSelection object, OLAPCatalog object, OLAPCatalogNew object, OLAPLevelOrHierarchyNew collection, Parentheses collection, PivotLabel object, PivotLabelTotals collection, QueryLabel object, RecentFiles collection, Requests collection, Results collection, Sections collection, SortItems collection, Shapes collection, Themes collection, TargetFact collection, Toolbars collection, TopicItems collection, TopLabels collection, Topics collection,, Values collection

Description:

This is the accessor function for all collections. Item is the default method used by all collections. It returns the value of an item in a collection referred to by the name or index.

Note:

The Session.Form.Item (), Session.URL.Item(), and Session.Cookies.Item() object model syntax is not supported in an Interactive Reporting document file deployed in the EPM Workspace.

Syntax:

Expression.Item(NameOrIndex) As Object

Expression Required:

An expression that returns an object for any of these objects:

Example:

This example shows how to return the third section named Query in the current Interactive Reporting document file:

var MySection = ActiveDocument.Sections.Item(3)
or
var MySection = ActiveDocument.Sections[3]
or
var MySection = ActiveDocument.Sections.Item("Query")
or
var MySection = ActiveDocument.Sections["Query"]