Axis Interface

Definition

Represents a single axis in a chart.

public interface class Axis
[System.Runtime.InteropServices.Guid("7EBC66BD-F788-42C3-91F4-E8C841A69005")]
public interface Axis
type Axis = interface
Public Interface Axis
Attributes

Remarks

The Axis object is a member of the Axes collection.

Use Axes (Type, AxisGroup) where Type is the axis type and AxisGroup is the axis group to return a single Axis object. Type can be one of the following XlAxisType constants: xlCategory, xlSeries, or xlValue. AxisGroup can be one of the following XlAxisGroup constants: xlPrimary or xlSecondary. For more information, see the Axes(Object, XlAxisGroup) method.

Properties

Application

When used without an object qualifier, this property returns an _Application object that represents the Microsoft Word application. When used with an object qualifier, this property returns an _Application object that represents the creator of the specified object (you can use this property with an OLE Automation object to return the application of that object). Read-only.

AxisBetweenCategories

True if the value axis crosses the category axis between categories. Read/write.

AxisGroup

Returns the type of axis group. Read-only.

AxisTitle

Returns the title of the specified axis. Read-only.

BaseUnit

Returns or sets the base unit for the specified category axis. Read/write.

BaseUnitIsAuto

True if Microsoft Word chooses appropriate base units for the specified category axis. The default value is True. Read/write.

Border

Returns the border of the object. Read-only.

CategoryNames

Returns or sets all the category names for the specified axis, as a text array. Read/write.

CategoryType

Returns or sets the category axis type. Read/write.

Creator

Returns a 32-bit integer that indicates the application in which the specified object was created. Read-only.

Crosses

Returns or sets the point on the specified axis where the other axis crosses. Read/write.

CrossesAt

Returns or sets the point on the value axis where the category axis crosses it. Applies only to the value axis. Read/write.

DisplayUnit

Returns or sets the unit label for the value axis. Read/write.

DisplayUnitCustom

If the value of the DisplayUnit property is xlCustom, the DisplayUnitCustom property returns or sets the value of the displayed units. The value must be from 0 through 10E307. Read/write.

DisplayUnitLabel

Returns the DisplayUnitLabel object for the specified axis. Returns Nothing if the HasDisplayUnitLabel property is set to False. Read-only.

Format

Returns the line, fill, and effect formatting for the object. Read-only.

HasDisplayUnitLabel

True if the label specified by the DisplayUnit or DisplayUnitCustom property is displayed on the specified axis. The default value is True. Read/write.

HasMajorGridlines

True if the axis has major gridlines. Only axes in the primary axis group can have gridlines. Read/write.

HasMinorGridlines

True if the axis has minor gridlines. Only axes in the primary axis group can have gridlines. Read/write.

HasTitle

True if the axis or chart has a visible title. Read/write.

Height

Returns the height, in points, of the object.

Left

Returns the distance, in points, from the left edge of the object to the left edge of the chart area.

LogBase

Returns or sets the base of the logarithm when you are using log scales. Read/write.

MajorGridlines

Returns the major gridlines for the specified axis. Only axes in the primary axis group can have gridlines. Read-only.

MajorTickMark

Returns or sets the type of major tick mark for the specified axis. Read/write XlTickMark.

MajorUnit

Returns or sets the major units for the value axis. Read/write.

MajorUnitIsAuto

True if Microsoft Word calculates the major units for the value axis. Read/write.

MajorUnitScale

Returns or sets the major unit scale value for the category axis when the CategoryType property is set to xlTimeScale. Read/write.

MaximumScale

Returns or sets the maximum value on the value axis. Read/write.

MaximumScaleIsAuto

True if Microsoft Word calculates the maximum value for the value axis. Read/write.

MinimumScale

Returns or sets the minimum value on the value axis. Read/write.

MinimumScaleIsAuto

True if Microsoft Word calculates the minimum value for the value axis. Read/write.

MinorGridlines

Returns the minor gridlines for the specified axis. Only axes in the primary axis group can have gridlines. Read-only.

MinorTickMark

Returns or sets the type of minor tick mark for the specified axis. Read/write.

MinorUnit

Returns or sets the minor units on the value axis. Read/write.

MinorUnitIsAuto

True if Microsoft Word calculates minor units for the value axis. Read/write.

MinorUnitScale

Returns or sets the minor unit scale value for the category axis when the CategoryType property is set to xlTimeScale. Read/write.

Parent

Returns the parent for the specified object. Read-only.

ReversePlotOrder

True if Microsoft Word plots data points from last to first. Read/write.

ScaleType

Returns or sets the value axis scale type. Read/write.

TickLabelPosition

Describes the position of tick-mark labels on the specified axis. Read/write.

TickLabels

Returns the tick-mark labels for the specified axis. Read-only.

TickLabelSpacing

Returns or sets the number of categories or series between tick-mark labels. Applies only to category and series axes. Can be a value from 1 through 31999. Read/write.

TickLabelSpacingIsAuto

Returns or sets whether or not the tick label spacing is automatic. Read/write.

TickMarkSpacing

Returns or sets the number of categories or series between tick marks. Applies only to category and series axes. Can be a value from 1 through 31999. Read/write.

Top

Returns the distance, in points, from the top edge of the object to the top of row 1 (on a worksheet) or the top of the chart area (on a chart).

Type

Returns the axis type.

Width

Returns the width, in points, of the object.

Methods

Delete()

Deletes the object.

Select()

Selects the object.

Applies to