ChartTitleOptionsBase Class
The base class for chart and axis title settings.
Declaration
public abstract class ChartTitleOptionsBase extends OfficeObject
Remarks
ChartTitleOptions and ChartTitleOptionsEx classes derive from the ChartTitleOptionsBase class. ChartTitleOptions and the derived ChartTitle class contain axis title and chart title settings in standard charts. ChartTitleOptionsEx and the derived ChartTitleEx class contain axis title and chart title settings in charts of types introduced in Microsoft Excel 2016 (for example, waterfall, histogram, or Pareto charts).
A title displays custom text or text from a chart data reference. If a title has no custom text and no text reference, the chart displays automatic title text.
Inherited Members
Inheritance
Methods
deepClone() Method
Returns a deep copy of this ChartTitleOptionsBase instance.
Declaration
public ChartTitleOptionsBase deepClone()
Returns
| Type | Description |
|---|---|
ChartTitleOptionsBase |
A deep copy of this |
getCustomText() Method
Returns custom title text.
Declaration
public TextArea getCustomText()
Returns
| Type | Description |
|---|---|
| TextArea | Custom title text, or |
getFill() Method
Returns fill settings of the title background.
Declaration
public Fill getFill()
Returns
| Type | Description |
|---|---|
| Fill | Fill settings of the title background. |
getOutlineStyle() Method
Returns outline settings of the title.
Declaration
public OutlineStyle getOutlineStyle()
Returns
| Type | Description |
|---|---|
| OutlineStyle | Outline settings of the title. |
setCustomText(TextArea value) Method
Sets custom title text.
Declaration
public void setCustomText(TextArea value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | TextArea | Custom title text. |
Remarks
A TextArea object contains title text and text formatting settings.
If you pass a text area, the API clears the title’s chart data reference. For standard charts, the ChartTitleOptions.getTextReference() method returns this reference.
setFill(Fill value) Method
Sets fill settings of the title background.
Declaration
public void setFill(Fill value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | Fill | Fill settings of the title background. |
setOutlineStyle(OutlineStyle value) Method
Sets outline settings of the title.
Declaration
public void setOutlineStyle(OutlineStyle value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | OutlineStyle | Outline settings of the title. |