public class DataLabelCollection extends DomObject<ChartSeries> implements IDataLabelCollection
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.
|
IChart |
getChart()
Returns the parent chart.
|
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()
Gets the default data label format.
|
IChartLinesFormat |
getLeaderLinesFormat()
Represents data labels leader lines format.
|
IChartSeries |
getParentSeries()
Gets the parent series.
|
IPresentation |
getPresentation()
Returns the parent presentation of a FillFormat.
|
IBaseSlide |
getSlide()
Returns the parent slide of a FillFormat.
|
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).
|
com.aspose.ms.System.Collections.Generic.IGenericEnumerator<IDataLabel> |
iterator()
Returns an enumerator that iterates through the collection.
|
com.aspose.ms.System.Collections.Generic.IGenericEnumerator<IDataLabel> |
iteratorJava()
Returns a java iterator for the entire collection.
|
getParent_Immediatepublic final IChart getChart()
Returns the parent chart.
Read-only IChart.
getChart in interface IChartComponentpublic final com.aspose.ms.System.Collections.Generic.IGenericEnumerator<IDataLabel> iterator()
Returns an enumerator that iterates through the collection.
iterator in interface com.aspose.ms.System.Collections.Generic.IGenericEnumerable<IDataLabel>iterator in interface com.aspose.ms.System.Collections.IEnumerable<IDataLabel>iterator in interface java.lang.Iterable<IDataLabel>IGenericEnumerator that can be used to iterate through the collection.public final com.aspose.ms.System.Collections.Generic.IGenericEnumerator<IDataLabel> iteratorJava()
Returns a java iterator for the entire collection.
Iterator for the entire collection.public final 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.
isVisible in interface IDataLabelCollectionpublic final 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.
hide in interface IDataLabelCollectionpublic final int getCountOfVisibleDataLabels()
Gets the number of visible data labels in the collection. Read-only int.
getCountOfVisibleDataLabels in interface IDataLabelCollectionpublic final int getCount()
Gets the number of all data labels in the collection. Read-only int.
getCount in interface IDataLabelCollectionpublic final IDataLabelFormat getDefaultDataLabelFormat()
Gets the default data label format.
Read-only IDataLabelFormat.
getDefaultDataLabelFormat in interface IDataLabelCollectionpublic final 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(); }
getLeaderLinesFormat in interface IDataLabelCollectionpublic final IChartSeries getParentSeries()
Gets the parent series.
Read-only IChartSeries.
getParentSeries in interface IDataLabelCollectionpublic final int indexOf(IDataLabel value)
Returns an index of the specified DataLabel in the collection.
indexOf in interface IDataLabelCollectionvalue - DataLabel to find.public final IDataLabel get_Item(int index)
Gets the data label for the data point with the specified index.
get_Item in interface IDataLabelCollectionpublic final IBaseSlide getSlide()
Returns the parent slide of a FillFormat.
Read-only BaseSlide.
getSlide in interface ISlideComponentpublic final IPresentation getPresentation()
Returns the parent presentation of a FillFormat.
Read-only IPresentation.
getPresentation in interface IPresentationComponentCopyright © 2004-2025 Aspose Pty Ltd. All Rights Reserved.