Aspose::Slides::Charts::DataLabelCollection Class Reference

Represents a series labels. More...

Inherits Aspose::Slides::Charts::IDataLabelCollection, and Aspose::Slides::IDOMObject.

Public Member Functions

ASPOSE_SLIDES_SHARED_API System::SharedPtr< IChartget_Chart ()
 Returns the parent chart. Read-only IChart. More...
 
ASPOSE_SLIDES_SHARED_API bool get_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 bool. More...
 
ASPOSE_SLIDES_SHARED_API int32_t get_CountOfVisibleDataLabels ()
 Gets the number of visible data labels in the collection. Read-only int32_t. More...
 
ASPOSE_SLIDES_SHARED_API int32_t get_Count ()
 Gets the number of all data labels in the collection. Read-only int32_t. More...
 
ASPOSE_SLIDES_SHARED_API System::SharedPtr< IDataLabelFormatget_DefaultDataLabelFormat ()
 Gets the default data label format. Read-only IDataLabelFormat. More...
 
ASPOSE_SLIDES_SHARED_API System::SharedPtr< IChartSeriesget_ParentSeries ()
 Gets the parent series. Read-only IChartSeries. More...
 
ASPOSE_SLIDES_SHARED_API System::SharedPtr< System::Collections::Generic::IEnumerator< System::SharedPtr< IDataLabel > > > GetEnumerator ()
 Returns an enumerator that iterates through the collection. More...
 
ASPOSE_SLIDES_SHARED_API 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. More...
 
ASPOSE_SLIDES_SHARED_API int32_t IndexOf (System::SharedPtr< IDataLabel > value)
 Returns an index of the specified DataLabel in the collection. More...
 
ASPOSE_SLIDES_SHARED_API System::SharedPtr< IDataLabelidx_get (int32_t index)
 Gets the data label for the data point with the specified index. More...
 

Protected Member Functions

System::SharedPtr< Aspose::Slides::UnsupportedProps::PPTXUnsupportedProps::Charts::DataLabelCollectionPPTXUnsupportedProps > get_PPTXUnsupportedProps ()
 
System::SharedPtr< IFormatget_LeaderLinesFormat ()
 
 DataLabelCollection (System::SharedPtr< ChartSeries > parentImmediate)
 Creates a new instance of DataLabelCollection class. More...
 
System::String GetFormula ()
 Returns cells address when property ShowValueFromCell is apllied. Used for serialization. More...
 

Detailed Description

Represents a series labels.

Constructor & Destructor Documentation

◆ DataLabelCollection()

Aspose::Slides::Charts::DataLabelCollection::DataLabelCollection ( System::SharedPtr< ChartSeries parentImmediate)
protected

Creates a new instance of DataLabelCollection class.

Parameters
parentImmediateParent series.

Member Function Documentation

◆ get_Chart()

ASPOSE_SLIDES_SHARED_API System::SharedPtr<IChart> Aspose::Slides::Charts::DataLabelCollection::get_Chart ( )
virtual

Returns the parent chart. Read-only IChart.

Implements Aspose::Slides::Charts::IChartComponent.

◆ get_Count()

ASPOSE_SLIDES_SHARED_API int32_t Aspose::Slides::Charts::DataLabelCollection::get_Count ( )
virtual

Gets the number of all data labels in the collection. Read-only int32_t.

Implements Aspose::Slides::Charts::IDataLabelCollection.

◆ get_CountOfVisibleDataLabels()

ASPOSE_SLIDES_SHARED_API int32_t Aspose::Slides::Charts::DataLabelCollection::get_CountOfVisibleDataLabels ( )
virtual

Gets the number of visible data labels in the collection. Read-only int32_t.

Implements Aspose::Slides::Charts::IDataLabelCollection.

◆ get_DefaultDataLabelFormat()

ASPOSE_SLIDES_SHARED_API System::SharedPtr<IDataLabelFormat> Aspose::Slides::Charts::DataLabelCollection::get_DefaultDataLabelFormat ( )
virtual

Gets the default data label format. Read-only IDataLabelFormat.

Implements Aspose::Slides::Charts::IDataLabelCollection.

◆ get_IsVisible()

ASPOSE_SLIDES_SHARED_API bool Aspose::Slides::Charts::DataLabelCollection::get_IsVisible ( )
virtual

False means that data label is not visible by default (and so all Show*-flags (ShowValue, ...) of the DefaultDataLabelFormat property are false). Read-only bool.

If data label is visible by default you can make it hidden by default with Hide() method. But if data label is not visible by default (IsVisible is false) you can make data label "visible by default" with setting Show*-flags (ShowValue, ...) of the DefaultDataLabelFormat property to true state.

Implements Aspose::Slides::Charts::IDataLabelCollection.

◆ get_LeaderLinesFormat()

System::SharedPtr<IFormat> Aspose::Slides::Charts::DataLabelCollection::get_LeaderLinesFormat ( )
protected

◆ get_ParentSeries()

ASPOSE_SLIDES_SHARED_API System::SharedPtr<IChartSeries> Aspose::Slides::Charts::DataLabelCollection::get_ParentSeries ( )
virtual

Gets the parent series. Read-only IChartSeries.

Implements Aspose::Slides::Charts::IDataLabelCollection.

◆ get_PPTXUnsupportedProps()

System::SharedPtr<Aspose::Slides::UnsupportedProps::PPTXUnsupportedProps::Charts::DataLabelCollectionPPTXUnsupportedProps> Aspose::Slides::Charts::DataLabelCollection::get_PPTXUnsupportedProps ( )
protected

◆ GetEnumerator()

ASPOSE_SLIDES_SHARED_API System::SharedPtr<System::Collections::Generic::IEnumerator<System::SharedPtr<IDataLabel> > > Aspose::Slides::Charts::DataLabelCollection::GetEnumerator ( )

Returns an enumerator that iterates through the collection.

Returns
A T:System::Collections::Generic::IEnumerator`1 that can be used to iterate through the collection.

◆ GetFormula()

System::String Aspose::Slides::Charts::DataLabelCollection::GetFormula ( )
protected

Returns cells address when property ShowValueFromCell is apllied. Used for serialization.

Returns
Formula.

◆ Hide()

ASPOSE_SLIDES_SHARED_API void Aspose::Slides::Charts::DataLabelCollection::Hide ( )
virtual

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.

If data label is not visible by default (IsVisible is false) you can make data label "visible by default" with setting Show*-flags (ShowValue, ...) of the DefaultDataLabelFormat property to true state.

Implements Aspose::Slides::Charts::IDataLabelCollection.

◆ idx_get()

ASPOSE_SLIDES_SHARED_API System::SharedPtr<IDataLabel> Aspose::Slides::Charts::DataLabelCollection::idx_get ( int32_t  index)
virtual

Gets the data label for the data point with the specified index.

Alternate way to access data label is:

  • SeriesEx.DataPoints[i].Label - manage label properties.

Implements Aspose::Slides::Charts::IDataLabelCollection.

◆ IndexOf()

ASPOSE_SLIDES_SHARED_API int32_t Aspose::Slides::Charts::DataLabelCollection::IndexOf ( System::SharedPtr< IDataLabel value)
virtual

Returns an index of the specified DataLabel in the collection.

Parameters
valueDataLabel to find.
Returns
Index of a DataLabel or -1 if DataLabel not from this collection.

Implements Aspose::Slides::Charts::IDataLabelCollection.