DataLabel
DataLabel class
Represents a series labels.
DataLabel
| Name | Description |
|---|
| DataLabel(ChartDataPoint) | Creates a new instance of DataLabel class. |
Parameters:
| Name | Type | Description |
|---|
| parentImmediate | ChartDataPoint | Parent ChartDataPoint. |
Returns:
DataLabel
addTextFrameForOverriding
| Name | Description |
|---|
| addTextFrameForOverriding(String) | Initialize TextFrameForOverriding with the text in paramener “text”. If TextFrameForOverriding is already initialized then simply changes its text. |
Parameters:
| Name | Type | Description |
|---|
| text | String | Text for a new TextFrameForOverriding. |
Returns:
TextFrame
getActualHeight
| Name | Description |
|---|
| getActualHeight() | Specifies actual height of the chart element. Call method IChart.ValidateChartLayout() before to get actual values. Read float. |
Returns:
float
getActualLabelText
| Name | Description |
|---|
| getActualLabelText() | Returns actual label text based on DataLabelFormat settings or TextFrameForOverriding.Text value. |
Returns:
String
getActualWidth
| Name | Description |
|---|
| getActualWidth() | Specifies actual width of the chart element. Call method IChart.ValidateChartLayout() before to get actual values. Read float. |
Returns:
float
getActualX
| Name | Description |
|---|
| getActualX() | Specifies actual x location (left) of the chart element relative to the left top corner of the chart. Call method IChart.ValidateChartLayout() before to get actual values. Read float. |
Returns:
float
getActualY
| Name | Description |
|---|
| getActualY() | Specifies actual top of the chart element relative to the left top corner of the chart. Call method IChart.ValidateChartLayout() before to get actual values. Read float. |
Returns:
float
getBottom
| Name | Description |
|---|
| getBottom() | Bottom. Read-only float. |
Returns:
float
getChart
| Name | Description |
|---|
| getChart() | Returns the parent chart. Read-only IChart. |
Returns:
Chart
| Name | Description |
|---|
| getDataLabelFormat() | Returns data label format. Read-only IDataLabelFormat. |
Returns:
DataLabelFormat
getHeight
| Name | Description |
|---|
| getHeight() | Returns or sets the height of a title as a fraction of the height of the chart. Read/write float. |
Returns:
float
getPresentation
| Name | Description |
|---|
| getPresentation() | Returns the parent presentation of a FillFormat. Read-only IPresentation. |
Returns:
Presentation
getRight
| Name | Description |
|---|
| getRight() | Right. Read-only float. |
Returns:
float
getSlide
| Name | Description |
|---|
| getSlide() | Returns the parent slide of a FillFormat. Read-only BaseSlide. |
Returns:
Slide, MasterSlide, LayoutSlide, MasterHandoutSlide, NotesSlide, BaseSlide, MasterNotesSlide
getTextFormat
| Name | Description |
|---|
| getTextFormat() | Returns text format. Read-only IChartTextFormat. |
Returns:
ChartTextFormat
getTextFrameForOverriding
| Name | Description |
|---|
| getTextFrameForOverriding() | Can contain a rich formatted text. If this property is not null then this formatted text value overrides auto-generated text of data label. Auto-generated text of data label means text that is managed by ShowSeriesName, ShowValue, … properties and is formatted with the TextFormatManager.TextFormat property. Read-only ITextFrame. |
Returns:
TextFrame
getValueFromCell
| Name | Description |
|---|
| getValueFromCell() | Gets or sets workbook data cell. Applied if IDataLabelFormat.ShowLabelValueFromCell property equals true. |
Returns:
ChartDataCell
getWidth
| Name | Description |
|---|
| getWidth() | Returns or sets the width of a title as a fraction of the width of the chart. Read/write float. |
Returns:
float
getX
| Name | Description |
|---|
| getX() | Returns or sets the x coordinate of a title as a fraction of the width of the chart. Read/write float. |
Returns:
float
getY
| Name | Description |
|---|
| getY() | Returns or sets the y coordinate of a title as a fraction of the height of the chart. Read/write float. |
Returns:
float
hide
| Name | Description |
|---|
| hide() | Make data label hidden by setting all Show*-flags (ShowValue, …) to false state. IsVisible will be false after this. If data label is not visible (IsVisible is false) you can make data label visible with setting Show*-flags (ShowValue, …) to true state. |
isVisible
| Name | Description |
|---|
| isVisible() | False means that data label is not visible (and so all Show*-flags (ShowValue, …) are false). Read-only boolean. If data label is visible you can make it hidden with Hide() method. But if data label is not visible (IsVisible is false) you can make data label visible with setting Show*-flags (ShowValue, …) to true state. |
Returns:
boolean
setHeight
| Name | Description |
|---|
| setHeight(float) | Returns or sets the height of a title as a fraction of the height of the chart. Read/write float. |
setValueFromCell
| Name | Description |
|---|
| setValueFromCell(ChartDataCell) | Gets or sets workbook data cell. Applied if IDataLabelFormat.ShowLabelValueFromCell property equals true. |
setWidth
| Name | Description |
|---|
| setWidth(float) | Returns or sets the width of a title as a fraction of the width of the chart. Read/write float. |
setX
| Name | Description |
|---|
| setX(float) | Returns or sets the x coordinate of a title as a fraction of the width of the chart. Read/write float. |
setY
| Name | Description |
|---|
| setY(float) | Returns or sets the y coordinate of a title as a fraction of the height of the chart. Read/write float. |