Item Method (Multiple Collections)
Applies To
AddIns collection object, Fonts collection object, GroupShapes collection object, HyperLinks collection object, NamedSlideShows collection object, Presentations collection object, ShapeNodes collection object, ShapeRange collection object, Shapes collection object, SlideRange collection object, Slides collection object.
Description
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)
Syntax
expression.Item(Index)
expression Required. An expression that returns an AddIns, Fonts, GroupShapes, Hyperlinks, NamedSlideShows, Presentations, ShapeNodes, ShapeRange, Shapes, SlideRange, or Slides collection.
Index Required Variant. The name or index number of the member in the collection to be returned.
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 |
|
ExtraColors | Long |
GroupShapes | Shape |
ObjectVerbs | String |
Placeholders | Shape |
ShapeRange | Shape |
SlideRange | Slide |
Tags | String |
Example
See the Item method (ActionSettings collection) example.