Title
Title class
Encapsulates the object that represents the title of chart or axis.
Properties
| Name | Type | Description |
|---|---|---|
| Text | String | Gets or sets the text of display unit label. |
| IsVisible | boolean | Represents whether the title is visible. |
| X | Number | Gets or sets the x coordinate of the upper left corner in units of 1/4000 of the chart area. |
| Y | Number | Gets or sets the y coordinate of the upper left corner in units of 1/4000 of the chart area. |
| XRatioToChart | Number | |
| YRatioToChart | Number | |
| OverLay | boolean | Represents overlay centered title on chart without resizing chart. |
| IsAutoText | boolean | Indicates the text is auto generated. |
| IsDeleted | boolean | Indicates whether this data labels is deleted. |
| TextHorizontalAlignment | Number | Gets and sets the text horizontal alignment. The value of the property is TextAlignmentType integer constant. |
| TextVerticalAlignment | Number | Gets or sets the text vertical alignment of text. The value of the property is TextAlignmentType integer constant. |
| RotationAngle | Number | Represents text rotation angle. 0: Not rotated. 255: Top to Bottom. -90: Downward. 90: Upward. |
| IsAutomaticRotation | boolean | Indicates whether the text of the chart is automatically rotated. |
| LinkedSource | String | Gets and sets a reference to the worksheet. |
| TextDirection | Number | Represents text reading order. The value of the property is TextDirectionType integer constant. NOTE: This member is now |
| ReadingOrder | Number | Represents text reading order. The value of the property is TextDirectionType integer constant. |
| DirectionType | Number | Gets and sets the direction of text. The value of the property is ChartTextDirectionType integer constant. |
| IsTextWrapped | boolean | Gets or sets a value indicating whether the text is wrapped. |
| IsResizeShapeToFitText | boolean | Gets or sets whether a shape should be auto-fit to fully contain the text described within it. Auto-fitting is when text |
| IsInnerMode | boolean | Indicates whether the size of the plot area size includes the tick marks, and the axis labels. False specifies that the |
| Chart | Chart | Gets the chart to which this object belongs. |
| Border | Line | Gets the Line . |
| Area | Area | Gets the area . |
| TextFont | Font | Gets a Font object of the specified ChartFrame object. NOTE: This member is now obsolete. Instead, please use ChartFrame |
| TextOptions | TextOptions | Gets and sets the options of the text. |
| Font | Font | Gets a Font object of the specified ChartFrame object. |
| AutoScaleFont | boolean | True if the text in the object changes font size when the object size changes. The default value is True. |
| BackgroundMode | Number | Gets and sets the display mode of the background The value of the property is BackgroundMode integer constant. |
| Background | Number | Gets and sets the display mode of the background The value of the property is BackgroundMode integer constant. NOTE: Thi |
| IsAutomaticSize | boolean | Indicates whether the chart frame is automatic sized. |
| Height | Number | Gets or sets the height of frame in units of 1/4000 of the chart area. How to convert units of 1/4000 to pixels? Height |
| Width | Number | Gets or sets the width of frame in units of 1/4000 of the chart area. How to convert units of 1/4000 to pixels? Width In |
| Shadow | boolean | True if the frame has a shadow. |
| ShapeProperties | ShapePropertyCollection | Gets the ShapeProperties object. |
| IsDefaultPosBeSet | boolean | Indicates whether default position(DefaultX, DefaultY, DefaultWidth and DefaultHeight) are set. |
| DefaultX | Number | Represents x of default position |
| DefaultY | Number | Represents y of default position |
| DefaultWidth | Number | Represents width of default position |
| DefaultHeight | Number | Represents height of default position |
| DefaultXRatioToChart | Number | |
| DefaultYRatioToChart | Number | |
| DefaultWidthRatioToChart | Number | |
| DefaultHeightRatioToChart | Number | |
| WidthRatioToChart | Number | |
| HeightRatioToChart | Number | |
| XPixel | Number | |
| YPixel | Number | |
| WidthPixel | Number | Represents width |
| HeightPixel | Number | Represents height |
Methods
| Name | Description |
|---|---|
| getCharacters | Gets rich text formatting of this Title. |
NOTE: This member is now obsolete. Instead, please use Title.Characters() meth | | characters | Gets rich text formatting of this Title. | | setPositionAuto | Set position of the frame to automatic |
Title.Text property
Gets or sets the text of display unit label.
Type: String
Title.IsVisible property
Represents whether the title is visible.
Type: boolean
Title.X property
Gets or sets the x coordinate of the upper left corner in units of 1/4000 of the chart area.
Type: Number
Title.Y property
Gets or sets the y coordinate of the upper left corner in units of 1/4000 of the chart area.
Type: Number
Title.XRatioToChart property
Type: Number
Title.YRatioToChart property
Type: Number
Title.OverLay property
Represents overlay centered title on chart without resizing chart.
Type: boolean
Title.IsAutoText property
Indicates the text is auto generated.
Type: boolean
Title.IsDeleted property
Indicates whether this data labels is deleted.
Type: boolean
Title.TextHorizontalAlignment property
Gets and sets the text horizontal alignment. The value of the property is TextAlignmentType integer constant.
Type: Number
Title.TextVerticalAlignment property
Gets or sets the text vertical alignment of text. The value of the property is TextAlignmentType integer constant.
Type: Number
Title.RotationAngle property
Represents text rotation angle. 0: Not rotated. 255: Top to Bottom. -90: Downward. 90: Upward.
Type: Number
Title.IsAutomaticRotation property
Indicates whether the text of the chart is automatically rotated.
Type: boolean
Title.LinkedSource property
Gets and sets a reference to the worksheet.
Type: String
Title.TextDirection property
Represents text reading order. The value of the property is TextDirectionType integer constant. NOTE: This member is now obsolete. Instead, please use ChartTextFrame.ReadingOrder property. This property will be removed 12 months later since March 2020. Aspose apologizes for any inconvenience you may have experienced.
Type: Number
Title.ReadingOrder property
Represents text reading order. The value of the property is TextDirectionType integer constant.
Type: Number
Title.DirectionType property
Gets and sets the direction of text. The value of the property is ChartTextDirectionType integer constant.
Type: Number
Title.IsTextWrapped property
Gets or sets a value indicating whether the text is wrapped.
Type: boolean
Title.IsResizeShapeToFitText property
Gets or sets whether a shape should be auto-fit to fully contain the text described within it. Auto-fitting is when text within a shape is scaled in order to contain all the text inside.
Type: boolean
Title.IsInnerMode property
Indicates whether the size of the plot area size includes the tick marks, and the axis labels. False specifies that the size shall determine the size of the plot area, the tick marks, and the axis labels. Only for Xlsx file.
Type: boolean
Title.Chart property
Gets the chart to which this object belongs.
Type: Chart
Title.Border property
Gets the Line .
Type: Line
Title.Area property
Gets the area .
Type: Area
Title.TextFont property
Gets a Font object of the specified ChartFrame object. NOTE: This member is now obsolete. Instead, please use ChartFrame.Font property. This property will be removed 12 months later since JANUARY 2012. Aspose apologizes for any inconvenience you may have experienced.
Type: Font
Title.TextOptions property
Gets and sets the options of the text.
Type: TextOptions
Title.Font property
Gets a Font object of the specified ChartFrame object.
Type: Font
Title.AutoScaleFont property
True if the text in the object changes font size when the object size changes. The default value is True.
Type: boolean
Title.BackgroundMode property
Gets and sets the display mode of the background The value of the property is BackgroundMode integer constant.
Type: Number
Title.Background property
Gets and sets the display mode of the background The value of the property is BackgroundMode integer constant. NOTE: This member is now obsolete. Instead, please use ChartFrame.BackgroundMode property. This property will be removed 12 months later since JANUARY 2012. Aspose apologizes for any inconvenience you may have experienced.
Type: Number
Title.IsAutomaticSize property
Indicates whether the chart frame is automatic sized.
Type: boolean
Title.Height property
Gets or sets the height of frame in units of 1/4000 of the chart area. How to convert units of 1/4000 to pixels? Height In Pixels = Y * Chart.ChartObject.Height / 4000;
Type: Number
Title.Width property
Gets or sets the width of frame in units of 1/4000 of the chart area. How to convert units of 1/4000 to pixels? Width In Pixels = Width * Chart.ChartObject.Height / 4000;
Type: Number
Title.Shadow property
True if the frame has a shadow.
Type: boolean
Title.ShapeProperties property
Gets the ShapeProperties object.
Type: ShapePropertyCollection
Title.IsDefaultPosBeSet property
Indicates whether default position(DefaultX, DefaultY, DefaultWidth and DefaultHeight) are set.
Type: boolean
Title.DefaultX property
Represents x of default position
Type: Number
Title.DefaultY property
Represents y of default position
Type: Number
Title.DefaultWidth property
Represents width of default position
Type: Number
Title.DefaultHeight property
Represents height of default position
Type: Number
Title.DefaultXRatioToChart property
Type: Number
Title.DefaultYRatioToChart property
Type: Number
Title.DefaultWidthRatioToChart property
Type: Number
Title.DefaultHeightRatioToChart property
Type: Number
Title.WidthRatioToChart property
Type: Number
Title.HeightRatioToChart property
Type: Number
Title.XPixel property
Type: Number
Title.YPixel property
Type: Number
Title.WidthPixel property
Represents width
Type: Number
Title.HeightPixel property
Represents height
Type: Number
getCharacters()
Gets rich text formatting of this Title.
NOTE: This member is now obsolete. Instead, please use Title.Characters() method. This property will be removed 12 months later since November 2016. Aspose apologizes for any inconvenience you may have experienced.
Returns: returns FontSetting array
characters() (1 of 2)
Gets rich text formatting of this Title.
Returns: returns FontSetting array
characters(startIndex, length) (2 of 2)
Returns a Characters object that represents a range of characters within the text.
| Parameter | Type | Description |
|---|---|---|
| startIndex | Number | The index of the start of the character. |
| length | Number | The number of characters. |
Returns: Characters object.
setPositionAuto()
Set position of the frame to automatic