Bagikan melalui


LegendEntries.Item Method (Word)

Returns a single object from a collection.

Version Information

Version Added: Word 2007

Syntax

expression .Item(Index)

expression A variable that represents a LegendEntries object.

Parameters

Name

Required/Optional

Data Type

Description

Index

Required

Variant

The index number for the object.

Return Value

A LegendEntry object that the collection contains.

Example

The following example changes the font for the text of the legend entry at the top of the legend (this is usually the legend for series one) for the first chart in the active document.

With ActiveDocument.InlineShapes(1) 
 If .HasChart Then 
 .Chart.Legend.LegendEntries.Item(1). _ 
 Font.Italic = True 
 End If 
End With 

See Also

Concepts

LegendEntries Object

LegendEntries Object Members