ChartDataLabel

ChartDataLabel

Overview

ChartDataLabel is a class in Aspose.Words FOSS for .NET. Inherits from: INumberFormatProvider, IChartItemTextProperties, IChartFormatSource.

Represents data label on a chart point or trendline.

This class provides 1 method for working with ChartDataLabel objects in .NET programs. Available methods include: ClearFormat. All public members are accessible to any .NET application after installing the Aspose.Words FOSS for .NET package. Properties: Font, Format, Index, IsHidden, IsVisible, Left, and 16 more.

Properties

NameTypeAccessDescription
IndexintReadSpecifies the index of the containing element.
ShowCategoryNameboolRead/WriteAllows to specify if category name is to be displayed for the data labels on a chart.
ShowBubbleSizeboolRead/WriteAllows to specify if bubble size is to be displayed for the data labels on a chart.
ShowLegendKeyboolRead/WriteAllows to specify if legend key is to be displayed for the data labels on a chart.
ShowPercentageboolRead/WriteAllows to specify if percentage value is to be displayed for the data labels on a chart.
ShowSeriesNameboolRead/WriteReturns or sets a Boolean to indicate the series name display behavior for the data labels on a chart.
ShowValueboolRead/WriteAllows to specify if values are to be displayed in the data labels.
ShowLeaderLinesboolRead/WriteAllows to specify if data label leader lines need be shown.
ShowDataLabelsRangeboolRead/WriteAllows to specify if values from data labels range to be displayed in the data labels.
SeparatorstringRead/WriteGets or sets string separator used for the data labels on a chart.
OrientationShapeTextOrientationRead/WriteGets or sets the orientation of the label text.
RotationintRead/WriteGets or sets the rotation of the label in degrees.
IsVisibleboolReadReturns true if this data label has something to display.
NumberFormatChartNumberFormatReadReturns number format of the parent element.
IsHiddenboolRead/WriteGets/sets a flag indicating whether this label is hidden.
FontFontReadProvides access to the font formatting of this data label.
FormatChartFormatReadProvides access to fill and line formatting of the data label.
LeftdoubleRead/WriteGets or sets the distance of the data label in points from the left edge of the chart or from the position specified by its Position property, depending on the value of the LeftMode property.
LeftModeChartDataLabelLocationModeRead/WriteGets or sets the interpretation mode of the Left property value: whether it sets the location of the data label from the left edge of the chart of from the position specified by its Position property.
TopdoubleRead/WriteGets or sets the distance of the data label in points from the top edge of the chart or from the position specified by its Position property, depending on the value of the TopMode property.
TopModeChartDataLabelLocationModeRead/WriteGets or sets the interpretation mode of the Top property value: whether it sets the location of the data label from the top edge of the chart of from the position specified by its Position property.
PositionChartDataLabelPositionRead/WriteGets or sets the position of the data label.

Methods

SignatureDescription
ClearFormat()Clears format of this data label.

See Also