Trendline

Trendline class

Class represents trend line of chart series

class Trendline : public Aspose::Slides::DomObject<System::SharedPtr<Aspose::Slides::Charts::TrendlineCollection>>,
                  public Aspose::Slides::Charts::ITrendline

Methods

MethodDescription
System::SharedPtr<ITextFrame> AddTextFrameForOverriding(System::String) overrideInitialize TextFrameForOverriding with the text in paramener "text". If TextFrameForOverriding is already initialized then simply changes its text.
virtual bool Equals(ptr)Compares objects using C# Object.Equals semantics.
static std::enable_if<IsSmartPtr<T1>::value&&IsSmartPtr<T2>::value, bool>::type Equals(T1 const&, T2 const&)Compares reference type objects in C# style.
static std::enable_if<!IsSmartPtr<T1>::value&&!IsSmartPtr<T2>::value, bool>::type Equals(T1 const&, T2 const&)Compares value type objects in C# style.
static bool Equals(float const&, float const&)Emulates C#-style floating point comparison where two NaNs are considered equal even though according to IEC 60559:1989 NaN is not equal to any value, including NaN.
static bool Equals(double const&, double const&)Emulates C#-style floating point comparison where two NaNs are considered equal even though according to IEC 60559:1989 NaN is not equal to any value, including NaN.
virtual bool FastCast(const Details::FastRttiBase&, void **) constFor internal purposes only.
double get_Backward() overrideSpecifies the number of categories (or units on a scatter chart) that the trend line extends before the data for the series that is being trended. On scatter and non-scatter charts, the value shall be any nonnegative value. Read double.
System::SharedPtr<IChart> get_Chart() overrideReturns the parent chart. Read-only IChart.
bool get_DisplayEquation() overrideSpecifies that the equation for the trendline is displayed on the chart (in the same label as the Rsquaredvalue). Read bool.
bool get_DisplayRSquaredValue() overrideSpecifies that the R-squared value of the trendline is displayed on the chart (in the same label as the equation). Read bool.
System::SharedPtr<IFormat> get_Format() overrideRepresents the format of the trend line. Read IFormat.
double get_Forward() overrideSpecifies the number of categories (or units on a scatter chart) that the trendline extends after the data for the series that is being trended. On scatter and non-scatter charts, the value shall be any non-negative value. Read double.
double get_Intercept() overrideSpecifies the value where the trendline shall cross the y axis. This property shall be supported only when the trendline type is exp, linear, or poly. Read double.
uint8_t get_Order() overrideSpecifies the order of the polynomial trend line. It is ignored for other trend line types. Value must be between 2 and 6. Read uint8_t.
uint8_t get_Period() overrideSpecifies the period of the trend line for a moving average trend line. It is ignored for other trend line variants. Value must be between 2 and 255. Read uint8_t.
System::SharedPtr<ILegendEntryProperties> get_RelatedLegendEntry() overrideRepresents legend entry related with this trendline Read-only ILegendEntryProperties.
System::SharedPtr<IChartTextFormat> get_TextFormat() overrideReturns text format. Read-only IChartTextFormat.
System::SharedPtr<ITextFrame> get_TextFrameForOverriding() overrideCan 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.
System::String get_TrendlineName() overrideGets name of the trendline. Read System::String.
Aspose::Slides::Charts::TrendlineType get_TrendlineType() overrideGets type of trend line. Read Charts::TrendlineType.
Detail::SmartPtrCounter * GetCounter()Gets reference counter data structure associated with the object.
virtual int32_t GetHashCode() constAnalog of C# Object.GetHashCode() method. Enables hashing of custom objects.
virtual const TypeInfo& GetType() constGets actual type of object. Analog of C# System.Object.GetType() call.
virtual bool Is(const TypeInfo&) constCheck if object represents an instance of type described by targetType. Analog of C# ‘is’ operator.
void Lock()Implements C# lock() statement locking. Call directly or use LockContext sentry object.
virtual ptr MemberwiseClone() constAnalog of C# Object.MemberwiseClone() method. Enables cloning custom types.
Object()Creates object. Initializes all internal data structures.
Object(Object const&)Copy constructor. Doesn’t copy anything, really, just initializes new object and enables copy constructing subclasses.
Object& operator=(Object const&)Assignment operator. Doesn’t copy anything, really, just initializes new object and enables copy constructing subclasses.
static bool ReferenceEquals(ptr const&, ptr const&)Compares objects by reference.
static std::enable_if<!IsSmartPtr<T>::value, bool>::type ReferenceEquals(T const&, T const&)Compares objects by reference.
static std::enable_if<!IsSmartPtr<T>::value, bool>::type ReferenceEquals(T const&, std::nullptr_t)Reference-compares value type object with nullptr.
bool ReferenceEquals(String const&, std::nullptr_t)Specialization of Object::ReferenceEquals for case of string and nullptr.
bool ReferenceEquals(String const&, String const&)Specialization of Object::ReferenceEquals for case of strings.
int RemovedSharedRefs(int)Decreases shared reference count by specified value.
void set_Backward(double) overrideSpecifies the number of categories (or units on a scatter chart) that the trend line extends before the data for the series that is being trended. On scatter and non-scatter charts, the value shall be any nonnegative value. Write double.
void set_DisplayEquation(bool) overrideSpecifies that the equation for the trendline is displayed on the chart (in the same label as the Rsquaredvalue). Write bool.
void set_DisplayRSquaredValue(bool) overrideSpecifies that the R-squared value of the trendline is displayed on the chart (in the same label as the equation). Write bool.
void set_Format(System::SharedPtr<IFormat>) overrideRepresents the format of the trend line. Write IFormat.
void set_Forward(double) overrideSpecifies the number of categories (or units on a scatter chart) that the trendline extends after the data for the series that is being trended. On scatter and non-scatter charts, the value shall be any non-negative value. Write double.
void set_Intercept(double) overrideSpecifies the value where the trendline shall cross the y axis. This property shall be supported only when the trendline type is exp, linear, or poly. Write double.
void set_Order(uint8_t) overrideSpecifies the order of the polynomial trend line. It is ignored for other trend line types. Value must be between 2 and 6. Write uint8_t.
void set_Period(uint8_t) overrideSpecifies the period of the trend line for a moving average trend line. It is ignored for other trend line variants. Value must be between 2 and 255. Write uint8_t.
void set_TrendlineName(System::String) overrideSets name of the trendline. Write System::String.
void set_TrendlineType(Aspose::Slides::Charts::TrendlineType) overrideSets type of trend line. Write Charts::TrendlineType.
void SetTemplateWeakPtr(uint32_t) overrideSet n’th template argument a weak pointer (rather than shared). Allows switching pointers in containers to weak mode.
int SharedCount() constGets current value of shared reference counter.
Object * SharedRefAdded()Increments shared reference count. Shouldn’t be called directly; instead, use smart pointers or ThisProtector.
int SharedRefRemovedSafe()Decrements and returns shared reference count. Shouldn’t be called directly; instead, use smart pointers or ThisProtector.
virtual String ToString() constAnalog of C# Object.ToString() method. Enables converting custom objects to string.
static const TypeInfo& Type()Implements C# typeof(System.Object) construct.
void Unlock()Implements C# lock() statement unlocking. Call directly or use LockContext sentry object.
Detail::SmartPtrCounter * WeakRefAdded()Increments weak reference count. Shouldn’t be called directly; instead, use smart pointers or ThisProtector.
void WeakRefRemoved()Decrements weak reference count. Shouldn’t be called directly; instead, use smart pointers or ThisProtector.
virtual ~Object()Destroys object. Frees all internal data structures.

See Also