Compartir a través de


Axes.Item Property (Word)

Returns a single Axis object from an Axes collection.

Version Information

Version Added: Word 2007

Syntax

expression .Item(Type, AxisGroup)

expression A variable that represents an Axes object.

Parameters

Name

Required/Optional

Data Type

Description

Type

Required

XlAxisType

One of the enumeration values that specifies the axis type.

AxisGroup

Optional

XlAxisGroup

One of the enumeration values that specifies the axis.

Example

The following example sets the title text for the category axis for the first chart in the active document.

With ActiveDocument.InlineShapes(1) 
 If .HasChart Then 
 With .Chart.Axes.Item(xlCategory) 
 .HasTitle = True 
 .AxisTitle.Caption = "1994" 
 End With 
 End If 
End With

See Also

Concepts

Axes Object

Axes Object Members