Trendline
Contents
[
Hide
]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
Method | Description |
---|---|
System::SharedPtr<ITextFrame> AddTextFrameForOverriding(System::String) override | Initialize 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 **) const | For internal purposes only. |
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. |
System::SharedPtr<IChart> get_Chart() override | Returns the parent chart. Read-only IChart. |
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. |
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. |
System::SharedPtr<IFormat> get_Format() override | Represents the format of the trend line. Read IFormat. |
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. |
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. |
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. |
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. |
System::SharedPtr<ILegendEntryProperties> get_RelatedLegendEntry() override | Represents legend entry related with this trendline Read-only ILegendEntryProperties. |
System::SharedPtr<IChartTextFormat> get_TextFormat() override | Returns text format. Read-only IChartTextFormat. |
System::SharedPtr<ITextFrame> get_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. |
System::String get_TrendlineName() override | Gets name of the trendline. Read System::String. |
Aspose::Slides::Charts::TrendlineType get_TrendlineType() override | Gets type of trend line. Read Charts::TrendlineType. |
Detail::SmartPtrCounter * GetCounter() | Gets reference counter data structure associated with the object. |
virtual int32_t GetHashCode() const | Analog of C# Object.GetHashCode() method. Enables hashing of custom objects. |
virtual const TypeInfo& GetType() const | Gets actual type of object. Analog of C# System.Object.GetType() call. |
virtual bool Is(const TypeInfo&) const | Check 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() const | Analog 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) 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. |
void set_DisplayEquation(bool) override | Specifies that the equation for the trendline is displayed on the chart (in the same label as the Rsquaredvalue). Write bool. |
void set_DisplayRSquaredValue(bool) override | Specifies 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>) override | Represents the format of the trend line. Write IFormat. |
void set_Forward(double) 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. |
void set_Intercept(double) 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. |
void set_Order(uint8_t) 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. |
void set_Period(uint8_t) 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. |
void set_TrendlineName(System::String) override | Sets name of the trendline. Write System::String. |
void set_TrendlineType(Aspose::Slides::Charts::TrendlineType) override | Sets type of trend line. Write Charts::TrendlineType. |
void SetTemplateWeakPtr(uint32_t) override | Set n’th template argument a weak pointer (rather than shared). Allows switching pointers in containers to weak mode. |
int SharedCount() const | Gets 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() const | Analog 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
- Class DomObject
- Class ITrendline
- Namespace Aspose::Slides::Charts
- Library Aspose.Slides