Format related procedures in class ChartTitle (PowerPoint VBA)

This page presents procedures from class ChartTitle related to the theme Format: Format, Height, IncludeInLayout and Width

Format

Returns the line, fill, and effect formatting for the object.

Dim cftFormatted As ChartFormat
Set cftFormatted = ActiveWindow.RangeFromPoint.Chart.ChartTitle.Format

Height

Returns or sets a Double value that represents the height, in points, of the object.

Dim dblHeight As Double
dblHeight = ActiveWindow.RangeFromPoint.Chart.ChartTitle.Height

IncludeInLayout

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

This property does not affect whether a chart is in autolayout mode or not. If the user adds a title by using the Above Chart command, the chart will resize smaller, as in previous versions of Microsoft Office. If the user then removes the title or selects one of the overlay title options, the chart will resize larger, as if the title were not on the chart.

ActiveWindow.RangeFromPoint.Chart.ChartTitle.IncludeInLayout = True

Width

Returns or sets a Double value that represents the width, in points, of the object.

Dim dblWidth As Double
dblWidth = ActiveWindow.RangeFromPoint.Chart.ChartTitle.Width