Item Method

Item Method

See Also

Returns a single member of a collection. Depending on the collection, you use an index number, a name, or a built-in constant to specify which member to return.

Item is the default member for a collection. For example, the following two lines of code are equivalent:

ActivePresentation.Slides.Item(1)
ActivePresentation.Slides(1)

For more information about returning a single member of a collection, see Returning an Object from a Collection.

For specific information about the Item method for a given collection, select the name of the collection in the following list.

ActionSettings

AddIns

Borders

CellRange

ColorSchemes

Columns

DocumentWindows

ExtraColors

Fonts

GroupShapes

Hyperlinks

NamedSlideShows

ObjectVerbs

Panes

Presentations

PrintRanges

PublishObjects

Rows

RulerLevels

ShapeNodes

ShapeRange

Shapes

SlideRange

Slides

SlideShowWindows

TabStops

Tags

TextStyleLevels


Remarks

The Item method generally returns an object whose name is the singular form of the collection to which the method is applied. For example, the Item method of the Shapes collection returns a Shape object. The exceptions to this rule are listed in the following table.

Object Return type of the Item method
Borders BorderType
CellRange Cell
ExtraColors Long
GroupShapes Shape
ObjectVerbs String
Placeholders Shape
ShapeRange Shape
SlideRange Slide
Tags String