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
| Name | Type | Access | Description |
|---|---|---|---|
Index | int | Read | Specifies the index of the containing element. |
ShowCategoryName | bool | Read/Write | Allows to specify if category name is to be displayed for the data labels on a chart. |
ShowBubbleSize | bool | Read/Write | Allows to specify if bubble size is to be displayed for the data labels on a chart. |
ShowLegendKey | bool | Read/Write | Allows to specify if legend key is to be displayed for the data labels on a chart. |
ShowPercentage | bool | Read/Write | Allows to specify if percentage value is to be displayed for the data labels on a chart. |
ShowSeriesName | bool | Read/Write | Returns or sets a Boolean to indicate the series name display behavior for the data labels on a chart. |
ShowValue | bool | Read/Write | Allows to specify if values are to be displayed in the data labels. |
ShowLeaderLines | bool | Read/Write | Allows to specify if data label leader lines need be shown. |
ShowDataLabelsRange | bool | Read/Write | Allows to specify if values from data labels range to be displayed in the data labels. |
Separator | string | Read/Write | Gets or sets string separator used for the data labels on a chart. |
Orientation | ShapeTextOrientation | Read/Write | Gets or sets the orientation of the label text. |
Rotation | int | Read/Write | Gets or sets the rotation of the label in degrees. |
IsVisible | bool | Read | Returns true if this data label has something to display. |
NumberFormat | ChartNumberFormat | Read | Returns number format of the parent element. |
IsHidden | bool | Read/Write | Gets/sets a flag indicating whether this label is hidden. |
Font | Font | Read | Provides access to the font formatting of this data label. |
Format | ChartFormat | Read | Provides access to fill and line formatting of the data label. |
Left | double | Read/Write | Gets 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. |
LeftMode | ChartDataLabelLocationMode | Read/Write | Gets 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. |
Top | double | Read/Write | Gets 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. |
TopMode | ChartDataLabelLocationMode | Read/Write | Gets 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. |
Position | ChartDataLabelPosition | Read/Write | Gets or sets the position of the data label. |
Methods
| Signature | Description |
|---|---|
ClearFormat() | Clears format of this data label. |