[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.IChartTitle

IChartTitle Interface

Represents the title of a chart.

An IChartTitle provides access to the title text and related formatting for a chart, including its text frame, font, layout participation, formula binding, text orientation, and text direction. Use ChartTitle to obtain the title object for a chart.

Namespace: GrapeCity.Documents.Excel.Drawing
Assembly: DS.Documents.Excel.dll
Syntax
public interface IChartTitle
Public Interface IChartTitle
Examples
IChart chart = worksheet.Shapes.AddChart(ChartType.ColumnClustered, 20, 20, 300, 200).Chart;
IChartTitle chartTitle = chart.ChartTitle;
chartTitle.Text = "Sales Analysis";
string titleText = chartTitle.Text;

Properties

Name Description
Direction

Gets or sets the text direction of the chart title.

Use this property to determine how the chart title text is oriented, such as horizontal, vertical, or rotated layout.

Font

Gets the IFontFormat object for the chart title.

Use the returned font format to read or modify font settings for the text displayed in the chart title.

Format

Gets the chart format of the chart title.

Formula

Gets or sets the formula of the chart title using A1-style notation, in English.

FormulaR1C1

Gets or sets the formula of the chart title using R1C1-style notation, in English.

IncludeInLayout

Gets or sets whether the chart title is included in the chart layout.

If this property is true, the chart title occupies chart layout space when the chart layout is determined. The default value is true.

Orientation

Gets or sets the text orientation of the chart title.

The returned value is the rotation angle of the chart title text, in degrees.

Parent

Gets the parent IChart that contains this chart title.

Use this property to access the chart that owns the current chart title.

Text

Gets or sets the text of the chart title.

Use this property to retrieve the text currently displayed in the chart title.

TextFrame

Gets the ITextFrame object that contains the text frame settings of the chart title.

Methods

Name Description
Delete()

Deletes the chart title object.

Use this method to remove the title from the chart.