Class ChartTitle (Excel VBA)

The class ChartTitle represents the chart title.

Class Chart gives access to class ChartTitle.


Dim cte as ChartTitle
Set cte = ActiveChart.ChartTitle

Methods

Delete - Deletes the object.

Select - Selects the object.

Properties

Caption returns or sets a String value that represents the chart title 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.

Formula gets or sets a String value that represents the formula of the object by using A1-style notation, in English.

FormulaLocal gets or sets a String value that represents the formula of the object by using A1-style notation, in the language of the user.

FormulaR1C1 gets or sets a String value that represents the formula of the object by using R1C1-style notation, in English.

FormulaR1C1Local gets or sets a String value that represents the formula of the object by using R1C1-style notation, in the language of the user.

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

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

IncludeInLayout true if a chart title will occupy the chart layout space when a chart layout is being determined. The default value is True.

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.

Position returns or sets the position of the chart title on 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.

Characters - Represents characters in an object that contains text.

ChartFormat - Provides access to the Office Art formatting for chart elements.