Methods

Methods

characters(startIndex, length) → FontSetting

Returns a Characters object that represents a range of characters within the text.

Parameters

Name Type Optional Description

startIndex

Number

 

The index of the start of the character.

length

Number

 

The number of characters.

Returns

FontSetting Characters object.

getArea()

Gets the Area.

getAutoScaleFont()

True if the text in the object changes font size when the object size changes. The default value is True.

getBackground()

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.

getBackgroundMode()

Gets and sets the display mode of the background The value of the property is BackgroundMode integer constant.

getBorder()

Gets the Line.

getChart()

Gets the chart to which this object belongs.

getDefaultHeight()

Represents height of default position

getDefaultWidth()

Represents width of default position

getDefaultX()

Represents x of default position

getDefaultY()

Represents y of default position

getDirectionType()

Gets and sets the direction of text. The value of the property is ChartTextDirectionType integer constant.

getFont()

Gets the font of the DataLabels;

getHeight()

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;

getLinkedSource()

Gets and sets a reference to the worksheet.

getNumber()

Gets and sets the built-in number format.

getNumberFormat()

Represents the format string for the DataLabels object.

getNumberFormatLinked()

True if the number format is linked to the cells (so that the number format changes in the labels when it changes in the cells).

getPosition()

Represents the position of the data label. The value of the property is LabelPositionType integer constant.

getReadingOrder()

Represents text reading order. The value of the property is TextDirectionType integer constant.

getRotationAngle()

Represents text rotation angle. 0: Not rotated.255: Top to Bottom.-90: Downward.90: Upward.

getSeparatorType()

Gets or sets the separator type used for the data labels on a chart. The value of the property is DataLabelsSeparatorType integer constant. To set custom separator, please set the property SeparatorType as DataLabelsSeparatorType.CUSTOM and then specify the expected value for SeparatorValue.

getSeparatorValue()

Gets or sets the separator value used for the data labels on a chart.

getShadow()

True if the frame has a shadow.

getShapeProperties()

Gets the ShapeProperties object.

getShapeType()

Gets or sets shape type of data label. The value of the property is DataLabelShapeType integer constant.

getShowBubbleSize()

Represents a specified chart's data label percentage value display behavior. True displays the percentage value. False to hide.

getShowCategoryName()

Represents a specified chart's data label category name display behavior.True to display the category name for the data labels on a chart. False to hide.

getShowCellRange()

Indicates whether showing cell range as the data labels.

getShowLegendKey()

Represents a specified chart's data label legend key display behavior. True if the data label legend key is visible.

getShowPercentage()

Represents a specified chart's data label percentage value display behavior. True displays the percentage value. False to hide.

getShowSeriesName()

Returns or sets a Boolean to indicate the series name display behavior for the data labels on a chart. True to show the series name. False to hide.

getShowValue()

Represents a specified chart's data label values display behavior. True displays the values. False to hide.

getText()

Gets or sets the text of data label.

getTextDirection()

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.

getTextFont()

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.

getTextHorizontalAlignment()

Gets and sets the text horizontal alignment. The value of the property is TextAlignmentType integer constant.

getTextOptions()

Gets and sets the options of the text.

getTextVerticalAlignment()

Gets or sets the text vertical alignment of text. The value of the property is TextAlignmentType integer constant.

getWidth()

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;

getX()

Gets or sets the x coordinate of the upper left corner in units of 1/4000 of the chart area. How to convert units of 1/4000 to pixels? X In Pixels = X * Chart.ChartObject.Width / 4000;

getY()

Gets or sets the y coordinate of the upper left corner in units of 1/4000 of the chart area. How to convert units of 1/4000 to pixels? Y In Pixels = Y * Chart.ChartObject.Height / 4000;

isAutoText()

Indicates the text is auto generated.

isAutomaticRotation()

Indicates whether the text of the chart is automatically rotated.

isAutomaticSize()

Indicates whether the chart frame is automatic sized.

isDefaultPosBeSet()

Indicates whether default position(DefaultX, DefaultY, DefaultWidth and DefaultHeight) are set.

isDeleted()

Indicates whether this data labels is deleted.

isInnerMode()

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.

isNeverOverlap()

Indicates whether the datalabels display never overlap. (For Pie chart)

isResizeShapeToFitText()

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.

isTextWrapped()

Gets or sets a value indicating whether the text is wrapped.

setAutoScaleFont()

True if the text in the object changes font size when the object size changes. The default value is True.

setAutoText()

Indicates the text is auto generated.

setAutomaticSize()

Indicates whether the chart frame is automatic sized.

setBackground()

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.

setBackgroundMode()

Gets and sets the display mode of the background The value of the property is BackgroundMode integer constant.

setDeleted()

Indicates whether this data labels is deleted.

setDirectionType()

Gets and sets the direction of text. The value of the property is ChartTextDirectionType integer constant.

setHeight()

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;

setInnerMode()

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.

setLinkedSource()

Gets and sets a reference to the worksheet.

setNeverOverlap()

Indicates whether the datalabels display never overlap. (For Pie chart)

setNumber()

Gets and sets the built-in number format.

setNumberFormat()

Represents the format string for the DataLabels object.

setNumberFormatLinked()

True if the number format is linked to the cells (so that the number format changes in the labels when it changes in the cells).

setPosition()

Represents the position of the data label. The value of the property is LabelPositionType integer constant.

setPositionAuto()

Set position of the frame to automatic

setReadingOrder()

Represents text reading order. The value of the property is TextDirectionType integer constant.

setResizeShapeToFitText()

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.

setRotationAngle()

Represents text rotation angle. 0: Not rotated.255: Top to Bottom.-90: Downward.90: Upward.

setSeparatorType()

Gets or sets the separator type used for the data labels on a chart. The value of the property is DataLabelsSeparatorType integer constant. To set custom separator, please set the property SeparatorType as DataLabelsSeparatorType.CUSTOM and then specify the expected value for SeparatorValue.

setSeparatorValue()

Gets or sets the separator value used for the data labels on a chart.

setShadow()

True if the frame has a shadow.

setShapeType()

Gets or sets shape type of data label. The value of the property is DataLabelShapeType integer constant.

setShowBubbleSize()

Represents a specified chart's data label percentage value display behavior. True displays the percentage value. False to hide.

setShowCategoryName()

Represents a specified chart's data label category name display behavior.True to display the category name for the data labels on a chart. False to hide.

setShowCellRange()

Indicates whether showing cell range as the data labels.

setShowLegendKey()

Represents a specified chart's data label legend key display behavior. True if the data label legend key is visible.

setShowPercentage()

Represents a specified chart's data label percentage value display behavior. True displays the percentage value. False to hide.

setShowSeriesName()

Returns or sets a Boolean to indicate the series name display behavior for the data labels on a chart. True to show the series name. False to hide.

setShowValue()

Represents a specified chart's data label values display behavior. True displays the values. False to hide.

setText()

Gets or sets the text of data label.

setTextDirection()

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.

setTextHorizontalAlignment()

Gets and sets the text horizontal alignment. The value of the property is TextAlignmentType integer constant.

setTextVerticalAlignment()

Gets or sets the text vertical alignment of text. The value of the property is TextAlignmentType integer constant.

setTextWrapped()

Gets or sets a value indicating whether the text is wrapped.

setWidth()

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;

setX()

Gets or sets the x coordinate of the upper left corner in units of 1/4000 of the chart area. How to convert units of 1/4000 to pixels? X In Pixels = X * Chart.ChartObject.Width / 4000;

setY()

Gets or sets the y coordinate of the upper left corner in units of 1/4000 of the chart area. How to convert units of 1/4000 to pixels? Y In Pixels = Y * Chart.ChartObject.Height / 4000;