public interface IDataLabelCollection extends com.aspose.ms.System.Collections.Generic.IGenericEnumerable<IDataLabel>, IChartComponent
Represents a series labels.
| Modifier and Type | Method and Description |
|---|---|
IDataLabel |
get_Item(int index)
Gets the data label for the data point with the specified index.
|
int |
getCount()
Gets the number of all data labels in the collection.
|
int |
getCountOfVisibleDataLabels()
Gets the number of visible data labels in the collection.
|
IDataLabelFormat |
getDefaultDataLabelFormat()
Returns default format of all data labels in the collection.
|
IChartLinesFormat |
getLeaderLinesFormat()
Represents data labels leader lines format.
|
IChartSeries |
getParentSeries()
Returns parent chart series.
|
void |
hide()
Make data label hidden by default by setting all Show*-flags (ShowValue, ...) of the
DefaultDataLabelFormat property to false state.
|
int |
indexOf(IDataLabel value)
Returns an index of the specified DataLabel in the collection.
|
boolean |
isVisible()
False means that data label is not visible by default (and so all
Show*-flags (ShowValue, ...) of the DefaultDataLabelFormat property are false).
|
iteratorgetChartgetSlidegetPresentationIDataLabel get_Item(int index)
Gets the data label for the data point with the specified index.
IDataLabelFormat getDefaultDataLabelFormat()
Returns default format of all data labels in the collection.
Read-only IDataLabelFormat.
IChartLinesFormat getLeaderLinesFormat()
Represents data labels leader lines format.
Read-only IChartLinesFormat.
Example:Presentation pres = new Presentation("pres.pptx"); try { IChart chart = (IChart) pres.getSlides().get_Item(0).getShapes().get_Item(0); IChartSeriesCollection series = chart.getChartData().getSeries(); IDataLabelCollection labels = series.get_Item(0).getLabels(); labels.getLeaderLinesFormat().getLine().getFillFormat().setFillType(FillType.Solid); labels.getLeaderLinesFormat().getLine().getFillFormat().getSolidFillColor().setColor(new java.awt.Color(255, 0, 0, 255)); } finally { if (pres != null) pres.dispose(); }
boolean isVisible()
False means that data label is not visible by default (and so all
Show*-flags (ShowValue, ...) of the DefaultDataLabelFormat property are false).
Read-only boolean.
void hide()
Make data label hidden by default by setting all Show*-flags (ShowValue, ...) of the DefaultDataLabelFormat property to false state. IsVisible will be false after this.
int getCountOfVisibleDataLabels()
Gets the number of visible data labels in the collection.
Read-only int.
int getCount()
Gets the number of all data labels in the collection.
Read-only int.
IChartSeries getParentSeries()
Returns parent chart series.
Read-only IChartSeries.
int indexOf(IDataLabel value)
Returns an index of the specified DataLabel in the collection.
value - DataLabel to find.Copyright © 2004-2025 Aspose Pty Ltd. All Rights Reserved.