Class DisplayUnitLabel (Excel VBA)

The class DisplayUnitLabel represents a unit label on an axis in the specified chart.

The main procedures of class DisplayUnitLabel are Delete and Select

Themes

The following procedures in this class have been grouped together and are described on a separate theme page

Formula with its procedures Formula, FormulaLocal, FormulaR1C1 and FormulaR1C1Local

Methods

These are the main methods of the DisplayUnitLabel class

Delete - Deletes the object.

Select - Selects the object.

Properties

Caption returns or sets a String value that represents the display unit label text.

Characters returns a Characters object that represents a range of characters within the object text. You can use the Characters object to format characters within a text string.

Format returns the ChartFormat object.

Height returns the height, in points, of the object.

HorizontalAlignment returns or sets a value that represents the horizontal alignment for the specified object.

Left returns or sets a Double value that represents the distance, in points, from the left edge of the object to the left edge of column A (on a worksheet) or the left edge of the chart area (on a chart).

Name returns a String value that represents the name of the object.

Orientation returns or sets a value that represents the text orientation.

Parent returns the parent object for the specified object. Read-only.

Position returns or sets the position of the unit label on an axis in the chart.

ReadingOrder returns or sets the reading order for the specified object. Can be one of the following XlReadingOrder constants: xlRTL (right-to-left), xlLTR (left-to-right), or xlContext.

Shadow returns or sets a Boolean value that determines if the object has a shadow.

Text returns or sets the text for the specified object.

Top returns or sets a Double value that represents 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).

VerticalAlignment returns or sets a value that represents the vertical alignment of the specified object.

Width returns the width, in points, of the object.