Aspose::Slides::Charts::Trendline Class Reference

Class represents trend line of chart series More...

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

Public Member Functions

System::String get_TrendlineName () override
 Gets name of the trendline. Read System::String. More...
 
void set_TrendlineName (System::String value) override
 Sets name of the trendline. Write System::String. More...
 
Aspose::Slides::Charts::TrendlineType get_TrendlineType () override
 Gets type of trend line. Read Charts::TrendlineType. More...
 
void set_TrendlineType (Aspose::Slides::Charts::TrendlineType value) override
 Sets type of trend line. Write Charts::TrendlineType. More...
 
System::SharedPtr< IFormatget_Format () override
 Represents the format of the trend line. Read IFormat. More...
 
void set_Format (System::SharedPtr< IFormat > value) override
 Represents the format of the trend line. Write IFormat. More...
 
double get_Backward () override
 Specifies 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. More...
 
void set_Backward (double value) override
 Specifies 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. More...
 
double get_Forward () override
 Specifies 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. More...
 
void set_Forward (double value) override
 Specifies 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. More...
 
double get_Intercept () override
 Specifies 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. More...
 
void set_Intercept (double value) override
 Specifies 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. More...
 
bool get_DisplayEquation () override
 Specifies that the equation for the trendline is displayed on the chart (in the same label as the Rsquaredvalue). Read bool. More...
 
void set_DisplayEquation (bool value) override
 Specifies that the equation for the trendline is displayed on the chart (in the same label as the Rsquaredvalue). Write bool. More...
 
uint8_t get_Order () override
 Specifies 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. More...
 
void set_Order (uint8_t value) override
 Specifies 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. More...
 
uint8_t get_Period () override
 Specifies 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. More...
 
void set_Period (uint8_t value) override
 Specifies 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. More...
 
bool get_DisplayRSquaredValue () override
 Specifies that the R-squared value of the trendline is displayed on the chart (in the same label as the equation). Read bool. More...
 
void set_DisplayRSquaredValue (bool value) override
 Specifies that the R-squared value of the trendline is displayed on the chart (in the same label as the equation). Write bool. More...
 
System::SharedPtr< ILegendEntryPropertiesget_RelatedLegendEntry () override
 Represents legend entry related with this trendline Read-only ILegendEntryProperties. More...
 
System::SharedPtr< ITextFrameget_TextFrameForOverriding () override
 Can 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. More...
 
System::SharedPtr< IChartTextFormatget_TextFormat () override
 Returns text format. Read-only IChartTextFormat. More...
 
System::SharedPtr< IChartget_Chart () override
 Returns the parent chart. Read-only IChart. More...
 
System::SharedPtr< ITextFrameAddTextFrameForOverriding (System::String text) override
 Initialize TextFrameForOverriding with the text in paramener "text". If TextFrameForOverriding is already initialized then simply changes its text. 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...
 
int RemovedSharedRefs (int count)
 Decreases shared reference count by specified value. 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 reference counter. 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 int32_t GetHashCode () const
 Analog of C# Object.GetHashCode() method. Enables hashing of custom objects. More...
 
virtual String ToString () 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...
 
virtual void SetTemplateWeakPtr (uint32_t argument)
 Set n'th template argument a weak pointer (rather than shared). Allows switching pointers in containers to weak mode. More...
 
virtual bool FastCast (const Details::FastRttiBase &helper, void **out_ptr) const
 For internal purposes only. More...
 
template<>
bool ReferenceEquals (String const &str, std::nullptr_t)
 Specialization of Object::ReferenceEquals for case of string and nullptr. More...
 
template<>
bool ReferenceEquals (String const &str1, String const &str2)
 Specialization of Object::ReferenceEquals for case of strings. More...
 

Protected Member Functions

virtual ~Trendline ()
 

Additional Inherited Members

- 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 ()
 Implements C# typeof(System.Object) construct. More...
 
template<>
bool Equals (float const &objA, float const &objB)
 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. More...
 
template<>
bool Equals (double const &objA, double const &objB)
 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. More...
 

Detailed Description

Class represents trend line of chart series

Constructor & Destructor Documentation

◆ ~Trendline()

virtual Aspose::Slides::Charts::Trendline::~Trendline ( )
protectedvirtual

Member Function Documentation

◆ AddTextFrameForOverriding()

System::SharedPtr<ITextFrame> Aspose::Slides::Charts::Trendline::AddTextFrameForOverriding ( System::String  text)
overridevirtual

Initialize TextFrameForOverriding with the text in paramener "text". If TextFrameForOverriding is already initialized then simply changes its text.

Parameters
textText for a new TextFrameForOverriding.

Implements Aspose::Slides::Charts::IOverridableText.

◆ get_Backward()

double Aspose::Slides::Charts::Trendline::get_Backward ( )
overridevirtual

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

Implements Aspose::Slides::Charts::ITrendline.

◆ get_Chart()

System::SharedPtr<IChart> Aspose::Slides::Charts::Trendline::get_Chart ( )
overridevirtual

Returns the parent chart. Read-only IChart.

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

◆ get_DisplayEquation()

bool Aspose::Slides::Charts::Trendline::get_DisplayEquation ( )
overridevirtual

Specifies that the equation for the trendline is displayed on the chart (in the same label as the Rsquaredvalue). Read bool.

Implements Aspose::Slides::Charts::ITrendline.

◆ get_DisplayRSquaredValue()

bool Aspose::Slides::Charts::Trendline::get_DisplayRSquaredValue ( )
overridevirtual

Specifies that the R-squared value of the trendline is displayed on the chart (in the same label as the equation). Read bool.

Implements Aspose::Slides::Charts::ITrendline.

◆ get_Format()

System::SharedPtr<IFormat> Aspose::Slides::Charts::Trendline::get_Format ( )
overridevirtual

Represents the format of the trend line. Read IFormat.


Implements Aspose::Slides::Charts::ITrendline.

◆ get_Forward()

double Aspose::Slides::Charts::Trendline::get_Forward ( )
overridevirtual

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

Implements Aspose::Slides::Charts::ITrendline.

◆ get_Intercept()

double Aspose::Slides::Charts::Trendline::get_Intercept ( )
overridevirtual

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

Implements Aspose::Slides::Charts::ITrendline.

◆ get_Order()

uint8_t Aspose::Slides::Charts::Trendline::get_Order ( )
overridevirtual

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

Implements Aspose::Slides::Charts::ITrendline.

◆ get_Period()

uint8_t Aspose::Slides::Charts::Trendline::get_Period ( )
overridevirtual

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

Implements Aspose::Slides::Charts::ITrendline.

◆ get_RelatedLegendEntry()

System::SharedPtr<ILegendEntryProperties> Aspose::Slides::Charts::Trendline::get_RelatedLegendEntry ( )
overridevirtual

Represents legend entry related with this trendline Read-only ILegendEntryProperties.

Implements Aspose::Slides::Charts::ITrendline.

◆ get_TextFormat()

System::SharedPtr<IChartTextFormat> Aspose::Slides::Charts::Trendline::get_TextFormat ( )
overridevirtual

Returns text format. Read-only IChartTextFormat.

Implements Aspose::Slides::Charts::IFormattedTextContainer.

◆ get_TextFrameForOverriding()

System::SharedPtr<ITextFrame> Aspose::Slides::Charts::Trendline::get_TextFrameForOverriding ( )
overridevirtual

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

Implements Aspose::Slides::Charts::IOverridableText.

◆ get_TrendlineName()

System::String Aspose::Slides::Charts::Trendline::get_TrendlineName ( )
overridevirtual

Gets name of the trendline. Read System::String.

Implements Aspose::Slides::Charts::ITrendline.

◆ get_TrendlineType()

Aspose::Slides::Charts::TrendlineType Aspose::Slides::Charts::Trendline::get_TrendlineType ( )
overridevirtual

Gets type of trend line. Read Charts::TrendlineType.

Implements Aspose::Slides::Charts::ITrendline.

◆ set_Backward()

void Aspose::Slides::Charts::Trendline::set_Backward ( double  value)
overridevirtual

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

Implements Aspose::Slides::Charts::ITrendline.

◆ set_DisplayEquation()

void Aspose::Slides::Charts::Trendline::set_DisplayEquation ( bool  value)
overridevirtual

Specifies that the equation for the trendline is displayed on the chart (in the same label as the Rsquaredvalue). Write bool.

Implements Aspose::Slides::Charts::ITrendline.

◆ set_DisplayRSquaredValue()

void Aspose::Slides::Charts::Trendline::set_DisplayRSquaredValue ( bool  value)
overridevirtual

Specifies that the R-squared value of the trendline is displayed on the chart (in the same label as the equation). Write bool.

Implements Aspose::Slides::Charts::ITrendline.

◆ set_Format()

void Aspose::Slides::Charts::Trendline::set_Format ( System::SharedPtr< IFormat value)
overridevirtual

Represents the format of the trend line. Write IFormat.


Implements Aspose::Slides::Charts::ITrendline.

◆ set_Forward()

void Aspose::Slides::Charts::Trendline::set_Forward ( double  value)
overridevirtual

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

Implements Aspose::Slides::Charts::ITrendline.

◆ set_Intercept()

void Aspose::Slides::Charts::Trendline::set_Intercept ( double  value)
overridevirtual

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

Implements Aspose::Slides::Charts::ITrendline.

◆ set_Order()

void Aspose::Slides::Charts::Trendline::set_Order ( uint8_t  value)
overridevirtual

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

Implements Aspose::Slides::Charts::ITrendline.

◆ set_Period()

void Aspose::Slides::Charts::Trendline::set_Period ( uint8_t  value)
overridevirtual

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

Implements Aspose::Slides::Charts::ITrendline.

◆ set_TrendlineName()

void Aspose::Slides::Charts::Trendline::set_TrendlineName ( System::String  value)
overridevirtual

Sets name of the trendline. Write System::String.

Implements Aspose::Slides::Charts::ITrendline.

◆ set_TrendlineType()

void Aspose::Slides::Charts::Trendline::set_TrendlineType ( Aspose::Slides::Charts::TrendlineType  value)
overridevirtual

Sets type of trend line. Write Charts::TrendlineType.

Implements Aspose::Slides::Charts::ITrendline.