HorizontalAlignment Property
Applies To
AxisTitle object, ChartTitle object, DataLabel object, DataLabels collection object.
Description
Returns or sets the horizontal alignment for the object. For all objects, this can be one of the following XlHAlign constants: xlHAlignCenter, xlHAlignDistributed, xlHAlignJustify, xlHAlignLeft, or xlHAlignRight. Read/write Long.
Remarks
The xlHAlignDistributed alignment style works only in Far East versions of Microsoft Graph.
See Also
VerticalAlignment property.
Example
This example centers the chart title.
myChart.ChartTitle.HorizontalAlignment = xlCenter