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...
 
- Public Member Functions inherited from System::Object
 Object ()
 Creates object. Initializes all internal data structures. More...
 
virtual ~Object ()
 Destroys object. Frees all internal data structures. More...
 
 Object (Object const &x)
 Copy constructor. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More...
 
Objectoperator= (Object const &x)
 Assignment operator. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More...
 
ObjectSharedRefAdded ()
 Increments shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
int SharedRefRemovedSafe ()
 Decrements and returns shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
void SharedRefRemoved ()
 Decrements shared reference count and deletes object if it hits zero. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
Detail::SmartPtrCounter * WeakRefAdded ()
 Increments weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
void WeakRefRemoved ()
 Decrements weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
Detail::SmartPtrCounter * GetCounter ()
 Gets reference counter data structure associated with the object. More...
 
int SharedCount () const
 Gets current value of shared refernce counter. More...
 
void FreeOrDetectCycles (int count)
 Reacts on shared reference counter decrement. Shouldn't be called directly, use smart pointers instead. If neccessary, deletes the object. If allowed, initiates loop references lookup. More...
 
void Lock ()
 Implements C# lock() statement locking. Call directly or use LockContext sentry object. More...
 
void Unlock ()
 Implements C# lock() statement unlocking. Call directly or use LockContext sentry object. More...
 
virtual bool Equals (ptr obj)
 Compares objects using C# Object.Equals semantics. More...
 
virtual int GetHashCode () const
 Analog of C# Object.GetHashCode() method. Enables hashing of custom objects. More...
 
virtual String ToString () ASPOSE_CONST
 Analog of C# Object.ToString() method. Enables converting custom objects to string. More...
 
virtual ptr MemberwiseClone () const
 Analog of C# Object.MemberwiseClone() method. Enables cloning custom types. More...
 
virtual const TypeInfoGetType () const
 Gets actual type of object. Analog of C# System.Object.GetType() call. More...
 
virtual bool Is (const TypeInfo &targetType) const
 Check if object represents an instance of type described by targetType. Analog of C# 'is' operator. More...
 
void __FreePointers ()
 Resets all smart pointers stored inside this object directly (in fields) or indirectly (in value type fields). Used by memory management systems, shouldn't be called directly. More...
 
virtual void SetTemplateWeakPtr (unsigned int argument)
 Set n'th template argument a weak pointer (rather than shared). Allows switching pointers in containers to weak mode. More...
 
template<>
bool Equals (float const &objA, float const &objB)
 
template<>
bool Equals (double const &objA, double const &objB)
 
template<>
bool ReferenceEquals (String const &str, std::nullptr_t)
 
template<>
bool ReferenceEquals (String const &str1, String const &str2)
 

Protected Member Functions

System::String get_CellsRangeCachedFormula () const
 
void set_CellsRangeCachedFormula (System::String value)
 
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...
 
- Protected Member Functions inherited from System::Object
template<class Container , typename Value = typename Container::value_type>
std::enable_if<!System::IsSmartPtr< Value >::value &&!System::detail::is_a< Value, std::pair >::value, void >::type PopulateSharedMembers (Object::shared_members_type &, const char *, Container &)
 
template<class Container , typename Value = typename Container::value_type>
std::enable_if< System::IsSmartPtr< Value >::value, void >::type PopulateSharedMembers (Object::shared_members_type &data, const char *name, Container &container)
 
template<class Container , typename Value = typename Container::value_type>
std::enable_if< System::detail::is_a< Value, std::pair >::value &&!System::IsSmartPtr< typename Value::first_type >::value &&!System::IsSmartPtr< typename Value::second_type >::value, void >::type PopulateSharedMembers (Object::shared_members_type &, const char *, Container &)
 
template<class Container , typename Value = typename Container::value_type>
std::enable_if< System::detail::is_a< Value, std::pair >::value &&System::IsSmartPtr< typename Value::first_type >::value &&!System::IsSmartPtr< typename Value::second_type >::value, void >::type PopulateSharedMembers (Object::shared_members_type &data, const char *name, Container &container)
 
template<class Container , typename Value = typename Container::value_type>
std::enable_if< System::detail::is_a< Value, std::pair >::value &&!System::IsSmartPtr< typename Value::first_type >::value &&System::IsSmartPtr< typename Value::second_type >::value, void >::type PopulateSharedMembers (Object::shared_members_type &data, const char *name, Container &container)
 
template<class Container , typename Value = typename Container::value_type>
std::enable_if< System::detail::is_a< Value, std::pair >::value &&System::IsSmartPtr< typename Value::first_type >::value &&System::IsSmartPtr< typename Value::second_type >::value, void >::type PopulateSharedMembers (Object::shared_members_type &data, const char *name, Container &container)
 

Additional Inherited Members

- Public Types inherited from System::Collections::Generic::IEnumerable< System::SharedPtr< Aspose::Slides::Charts::IDataLabel > >
typedef IEnumerator< System::SharedPtr< Aspose::Slides::Charts::IDataLabel > > IEnumeratorType
 Enumerator type. More...
 
- Public Types inherited from System::Object
typedef SmartPtr< Objectptr
 Alias for smart pointer type. More...
 
- Static Public Member Functions inherited from System::Object
static bool ReferenceEquals (ptr const &objA, ptr const &objB)
 Compares objects by reference. More...
 
template<typename T >
static std::enable_if<!IsSmartPtr< T >::value, bool >::type ReferenceEquals (T const &objA, T const &objB)
 Compares objects by reference. More...
 
template<typename T >
static std::enable_if<!IsSmartPtr< T >::value, bool >::type ReferenceEquals (T const &objA, std::nullptr_t)
 Reference-compares value type object with nullptr. More...
 
template<typename T1 , typename T2 >
static std::enable_if< IsSmartPtr< T1 >::value &&IsSmartPtr< T2 >::value, bool >::type Equals (T1 const &objA, T2 const &objB)
 Compares reference type objects in C# style. More...
 
template<typename T1 , typename T2 >
static std::enable_if<!IsSmartPtr< T1 >::value &&!IsSmartPtr< T2 >::value, bool >::type Equals (T1 const &objA, T2 const &objB)
 Compares value type objects in C# style. More...
 
static const TypeInfoType ()
 Impleemnts C# typeof(System.Object) construct. More...
 
- Protected Types inherited from System::Object
template<class T >
using supports_free_pointers = decltype(__SupportsFreePointers(std::declval< T * >()))
 Checks if T type supports __FreePointers() method. More...
 
- Static Protected Member Functions inherited from System::Object
template<class T , class Check = decltype(std::declval<T*>()->__FreePointers())>
static std::true_type __SupportsFreePointers (T *)
 Formal function for template magic to check if type T supports __FreePointers() method. More...
 
static std::false_type __SupportsFreePointers (...)
 Formal function for template magic to check if type T supports __FreePointers() method. More...
 
template<class T >
static std::enable_if< supports_free_pointers< T >::value, void >::type __DoFreePointers (T &t)
 
template<class T >
static std::enable_if<!supports_free_pointers< T >::value &&!std::is_fundamental< T >::value &&!std::is_enum< T >::value &&!std::is_const< T >::value, void >::type __DoFreePointers (const T &)
 
template<class T >
static std::enable_if<!supports_free_pointers< T >::value &&!std::is_fundamental< T >::value &&!std::is_enum< T >::value &&std::is_const< T >::value, void >::type __DoFreePointers (T &)
 
template<class T >
static std::enable_if< std::is_fundamental< T >::value||std::is_enum< T >::value, void >::type __DoFreePointers (T)
 

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_CellsRangeCachedFormula()

System::String Aspose::Slides::Charts::DataLabelCollection::get_CellsRangeCachedFormula ( ) const
protected

◆ 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 ( )
virtual

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.

Implements System::Collections::Generic::IEnumerable< System::SharedPtr< Aspose::Slides::Charts::IDataLabel > >.

◆ 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.

◆ set_CellsRangeCachedFormula()

void Aspose::Slides::Charts::DataLabelCollection::set_CellsRangeCachedFormula ( System::String  value)
protected