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 ()
 Gets name of the trendline. Read System::String. More...
 
void set_TrendlineName (System::String value)
 Sets name of the trendline. Write System::String. More...
 
Aspose::Slides::Charts::TrendlineType get_TrendlineType ()
 Gets type of trend line. Read Charts::TrendlineType. More...
 
void set_TrendlineType (Aspose::Slides::Charts::TrendlineType value)
 Sets type of trend line. Write Charts::TrendlineType. More...
 
System::SharedPtr< IFormatget_Format ()
 Represents the format of the trend line. Read IFormat. More...
 
void set_Format (System::SharedPtr< IFormat > value)
 Represents the format of the trend line. Write IFormat. More...
 
double get_Backward ()
 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)
 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 ()
 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)
 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 ()
 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)
 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 ()
 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)
 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 ()
 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)
 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 ()
 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)
 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 ()
 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)
 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 ()
 Represents legend entry related with this trendline Read-only ILegendEntryProperties. More...
 
System::SharedPtr< ITextFrameget_TextFrameForOverriding ()
 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 ()
 Returns text format. Read-only IChartTextFormat. More...
 
System::SharedPtr< IDOMObjectget_Parent_Immediate ()
 Returns Parent_Immediate object. Read-only IDOMObject. More...
 
System::SharedPtr< IChartget_Chart ()
 Returns the parent chart. Read-only IChart. More...
 
System::SharedPtr< IBaseSlideget_Slide ()
 Returns the parent slide of a FillFormat. Read-only BaseSlide. More...
 
System::SharedPtr< IPresentationget_Presentation ()
 Returns the parent presentation of a FillFormat. Read-only IPresentation. More...
 
System::SharedPtr< ITextFrameAddTextFrameForOverriding (System::String text)
 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 refernce 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 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...
 
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::SharedPtr< Aspose::Slides::UnsupportedProps::PPTXUnsupportedProps::Charts::TrendlinePPTXUnsupportedProps > get_PPTXUnsupportedProps ()
 
 Trendline (System::SharedPtr< TrendlineCollection > parentImmediate)
 Creates a new instance of Trendline class. More...
 

Additional Inherited Members

- Public Types inherited from System::Object
typedef SmartPtr< Objectptr
 Alias for smart pointer type. More...
 
typedef System::Details::SharedMembersType shared_members_type
 structure to keep list of shared pointers contained in object. 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...
 

Detailed Description

Class represents trend line of chart series

Constructor & Destructor Documentation

◆ Trendline()

Aspose::Slides::Charts::Trendline::Trendline ( System::SharedPtr< TrendlineCollection parentImmediate)
protected

Creates a new instance of Trendline class.

Member Function Documentation

◆ AddTextFrameForOverriding()

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

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

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

Returns the parent chart. Read-only IChart.

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

◆ get_DisplayEquation()

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

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

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

Represents the format of the trend line. Read IFormat.

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

◆ get_Forward()

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

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

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

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

System::SharedPtr<IDOMObject> Aspose::Slides::Charts::Trendline::get_Parent_Immediate ( )
virtual

Returns Parent_Immediate object. Read-only IDOMObject.

Implements Aspose::Slides::IDOMObject.

◆ get_Period()

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

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

System::SharedPtr<Aspose::Slides::UnsupportedProps::PPTXUnsupportedProps::Charts::TrendlinePPTXUnsupportedProps> Aspose::Slides::Charts::Trendline::get_PPTXUnsupportedProps ( )
protected

◆ get_Presentation()

System::SharedPtr<IPresentation> Aspose::Slides::Charts::Trendline::get_Presentation ( )
virtual

Returns the parent presentation of a FillFormat. Read-only IPresentation.

Implements Aspose::Slides::IPresentationComponent.

◆ get_RelatedLegendEntry()

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

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

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

◆ get_Slide()

System::SharedPtr<IBaseSlide> Aspose::Slides::Charts::Trendline::get_Slide ( )
virtual

Returns the parent slide of a FillFormat. Read-only BaseSlide.

Implements Aspose::Slides::ISlideComponent.

◆ get_TextFormat()

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

Returns text format. Read-only IChartTextFormat.

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

◆ get_TextFrameForOverriding()

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

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

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

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

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

◆ set_Backward()

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

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

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

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

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

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

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

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

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

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

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

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