Chart
Contents
[
Hide
]Chart class
Represents an graphic chart on a slide.
class Chart : public Aspose::Slides::GraphicalObject,
public Aspose::Slides::Charts::IChart
Methods
Method | Description |
---|---|
System::SharedPtr<IPlaceholder> AddPlaceholder(System::SharedPtr<IPlaceholder>) override | Adds a new placeholder if there is no and sets placeholder properties to a specified one. |
System::SharedPtr<Aspose::Slides::Theme::IThemeEffectiveData> CreateThemeEffective() override | Returns an effective theme for this chart. |
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. |
System::String get_AlternativeText() override | Returns the alternative text associated with a shape. Read System::String. |
System::String get_AlternativeTextTitle() override | Returns the title of alternative text associated with a shape. Read System::String. |
System::SharedPtr<IAxesManager> get_Axes() override | Provide access to chart axes. Read-only IAxesManager. |
System::SharedPtr<IChartWall> get_BackWall() override | Returns an object which allows to change format of the back wall of a 3D chart. Read-only IChartWall. |
Aspose::Slides::BlackWhiteMode get_BlackWhiteMode() override | Property specifies how a shape will render in black-and-white display mode.. Read Slides::BlackWhiteMode. |
System::SharedPtr<IChartData> get_ChartData() override | Returns information about the linked or embedded data associated with a chart. Read-only IChartData. |
System::SharedPtr<IDataTable> get_ChartDataTable() override | Returns a data table of a chart. Read-only IDataTable. |
System::SharedPtr<IChartTitle> get_ChartTitle() override | Returns a chart title. Read-only IChartTitle. |
int32_t get_ConnectionSiteCount() override | Returns the number of connection sites on the shape. Read-only int32_t. |
System::SharedPtr<ICustomData> get_CustomData() override | Returns the shape’s custom data. Read-only ICustomData. |
DisplayBlanksAsType get_DisplayBlanksAs() override | Returns the way to plot blank cells on a chart. Read DisplayBlanksAsType. |
System::SharedPtr<IEffectFormat> get_EffectFormat() override | Returns the EffectFormat object which contains pixel effects applied to a shape. Note: can return null for certain types of shapes which don’t have effect properties. Read-only IEffectFormat. |
System::SharedPtr<IFillFormat> get_FillFormat() override | Returns the FillFormat object that contains fill formatting properties for a shape. Note: can return null for certain types of shapes which don’t have fill properties. Read-only IFillFormat. |
System::SharedPtr<IChartWall> get_Floor() override | Returns an object which allows to change format of the floor of a 3D chart. Read-only IChartWall. |
System::SharedPtr<IShapeFrame> get_Frame() override | Returns the shape frame’s properties. Read IShapeFrame. |
System::SharedPtr<IGraphicalObjectLock> get_GraphicalObjectLock() override | Returns shape’s locks. Read-only IGraphicalObjectLock. |
bool get_HasDataTable() override | Determines whether a chart has a data table. Read bool. |
bool get_HasLegend() override | Determines whether a chart has a legend. Read bool. |
bool get_HasRoundedCorners() override | Specifies the chart area shall have rounded corners. Read bool. |
bool get_HasTitle() override | Determines whether a chart has a visible title. Read bool. |
float get_Height() override | Returns the height of the shape. Read float. |
bool get_Hidden() override | Determines whether the shape is hidden. Read bool. |
System::SharedPtr<IHyperlink> get_HyperlinkClick() override | Returns the hyperlink defined for mouse click. Read IHyperlink. |
System::SharedPtr<IHyperlinkManager> get_HyperlinkManager() override | Returns the hyperlink manager. Read-only IHyperlinkManager. |
System::SharedPtr<IHyperlink> get_HyperlinkMouseOver() override | Returns the hyperlink defined for mouse over. Read IHyperlink. |
bool get_IsDecorative() override | Gets ‘Mark as decorative’ option Reed/write bool. |
bool get_IsGrouped() override | Determines whether the shape is grouped. Read-only bool. |
bool get_IsTextHolder() override | Determines whether the shape is TextHolder_PPT. Read-only bool. |
System::SharedPtr<ILegend> get_Legend() override | Returns a legend for a chart. Read-only ILegend. |
System::SharedPtr<ILineFormat> get_LineFormat() override | Returns the LineFormat object that contains line formatting properties for a shape. Note: can return null for certain types of shapes which don’t have line properties. Read-only ILineFormat. |
System::String get_Name() override | Returns the name of a shape. Must be not null. Use empty string value if needed. Read System::String. |
uint32_t get_OfficeInteropShapeId() override | Gets unique shape identifier in slide scope. Read-only uint32_t. See also Shape::get_UniqueId for getting unique shape identifier in presentation scope. |
System::SharedPtr<IGroupShape> get_ParentGroup() override | Returns parent GroupShape object if shape is grouped. Otherwise returns null. Read-only IGroupShape. |
System::SharedPtr<IPlaceholder> get_Placeholder() override | Returns the placeholder for a shape. Returns null if the shape has no placeholder. Read-only IPlaceholder. |
System::SharedPtr<IChartPlotArea> get_PlotArea() override | Represents the plot area of a chart. Read-only IChartPlotArea. |
bool get_PlotVisibleCellsOnly() override | Determines whether the only visible cells are plotted. False to plot both visible and hidden cells. Read bool. |
System::SharedPtr<IPresentation> get_Presentation() override | Returns the parent presentation of a slide. Read-only IPresentation. |
System::SharedPtr<IShapeFrame> get_RawFrame() override | Returns the raw shape frame’s properties. Read IShapeFrame. |
float get_Rotation() override | Returns the number of degrees the specified shape is rotated around the z-axis. A positive value indicates clockwise rotation; a negative value indicates counterclockwise rotation. Read float. |
System::SharedPtr<IRotation3D> get_Rotation3D() override | Returns a 3D rotation of a chart. Read-only IRotation3D. |
System::SharedPtr<IBaseShapeLock> get_ShapeLock() override | Returns shape’s locks. Read-only IBaseShapeLock. |
bool get_ShowDataLabelsOverMaximum() override | Specifies data labels over the maximum of the chart shall be shown. Read bool. |
System::SharedPtr<IChartWall> get_SideWall() override | Returns an object which allows to change format of the side wall of a 3D chart. Read-only IChartWall. |
System::SharedPtr<IBaseSlide> get_Slide() override | Returns the parent slide of a shape. Read-only IBaseSlide. |
StyleType get_Style() override | Returns the chart style. Read StyleType. |
System::SharedPtr<IChartTextFormat> get_TextFormat() override | Returns chart text format. The property is not applicable for the following types: ChartType::Treemap, ChartType::Sunburst, ChartType::Waterfall, ChartType::Histogram, ChartType::Funnel,ChartType::BoxAndWhisker. Read-only IChartTextFormat. |
System::SharedPtr<Aspose::Slides::Theme::IOverrideThemeManager> get_ThemeManager() override | Returns theme manager. Read-only Aspose::Slides::Theme::IOverrideThemeManager. |
System::SharedPtr<IThreeDFormat> get_ThreeDFormat() override | Returns the ThreeDFormat object that 3d effect properties for a shape. Note: can return null for certain types of shapes which don’t have 3d properties. Read-only IThreeDFormat. |
ChartType get_Type() override | Returns the chart type. Read ChartType. |
uint32_t get_UniqueId() override | Gets unique shape identifier in presentation scope. Read-only uint32_t. See also Shape::get_OfficeInteropShapeId for getting unique shape identifier in slide scope. |
System::SharedPtr<IGroupShape> get_UserShapes() override | Specify the shapes drawn on top of the chart. Read-only IGroupShape. |
float get_Width() override | Returns the width of the shape. Read float. |
float get_X() override | Returns the x-coordinate of the upper-left corner of the shape. Read float. |
float get_Y() override | Returns the y-coordinate of the upper-left corner of the shape. Read float. |
int32_t get_ZOrderPosition() override | Returns the position of a shape in the z-order. Shapes[0] returns the shape at the back of the z-order, and Shapes[Shapes.Count - 1] returns the shape at the front of the z-order. Read-only int32_t. |
System::SharedPtr<IShape> GetBasePlaceholder() override | Returns a basic placeholder shape (shape from the layout and/or master slide that the current shape is inherited from). |
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. |
System::SharedPtr<IImage> GetImage() override | Returns shape thumbnail. ShapeThumbnailBounds::Shape shape thumbnail bounds type is used by default. |
System::SharedPtr<IImage> GetImage(ShapeThumbnailBounds, float, float) override | Returns shape thumbnail. |
System::SharedPtr<System::Drawing::Bitmap> GetThumbnail() override | Returns shape thumbnail. ShapeThumbnailBounds::Shape shape thumbnail bounds type is used by default. |
System::SharedPtr<System::Drawing::Bitmap> GetThumbnail(ShapeThumbnailBounds, float, float) override | Returns shape thumbnail. |
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 RemovePlaceholder() override | Defines that this shape isn’t a placeholder. |
void set_AlternativeText(System::String) override | Sets the alternative text associated with a shape. Write System::String. |
void set_AlternativeTextTitle(System::String) override | Sets the title of alternative text associated with a shape. Write System::String. |
void set_BlackWhiteMode(Aspose::Slides::BlackWhiteMode) override | Property specifies how a shape will render in black-and-white display mode.. Write Slides::BlackWhiteMode. |
void set_DisplayBlanksAs(DisplayBlanksAsType) override | Sets the way to plot blank cells on a chart. Write DisplayBlanksAsType. |
void set_Frame(System::SharedPtr<IShapeFrame>) override | Sets the shape frame’s properties. Write IShapeFrame. |
void set_HasDataTable(bool) override | Determines whether a chart has a data table. Write bool. |
void set_HasLegend(bool) override | Determines whether a chart has a legend. Write bool. |
void set_HasRoundedCorners(bool) override | Specifies the chart area shall have rounded corners. Write bool. |
void set_HasTitle(bool) override | Determines whether a chart has a visible title. Write bool. |
void set_Height(float) override | Sets the height of the shape. Write float. |
void set_Hidden(bool) override | Determines whether the shape is hidden. Write bool. |
void set_HyperlinkClick(System::SharedPtr<IHyperlink>) override | Sets the hyperlink defined for mouse click. Write IHyperlink. |
void set_HyperlinkMouseOver(System::SharedPtr<IHyperlink>) override | Sets the hyperlink defined for mouse over. Write IHyperlink. |
void set_IsDecorative(bool) override | Sets ‘Mark as decorative’ option Reed/write bool. |
void set_Name(System::String) override | Sets the name of a shape. Must be not null. Use empty string value if needed. Write System::String. |
void set_PlotVisibleCellsOnly(bool) override | Determines whether the only visible cells are plotted. False to plot both visible and hidden cells. Write bool. |
void set_RawFrame(System::SharedPtr<IShapeFrame>) override | Sets the raw shape frame’s properties. Write IShapeFrame. |
void set_Rotation(float) override | Sets the number of degrees the specified shape is rotated around the z-axis. A positive value indicates clockwise rotation; a negative value indicates counterclockwise rotation. Write float. |
void set_ShowDataLabelsOverMaximum(bool) override | Specifies data labels over the maximum of the chart shall be shown. Write bool. |
void set_Style(StyleType) override | Sets the chart style. Write StyleType. |
void set_Type(ChartType) override | Sets the chart type. Write ChartType. |
void set_Width(float) override | Sets the width of the shape. Write float. |
void set_X(float) override | Sets the x-coordinate of the upper-left corner of the shape. Write float. |
void set_Y(float) override | Sets the y-coordinate of the upper-left corner of the shape. Write float. |
virtual void SetTemplateWeakPtr(uint32_t) | 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. |
void ValidateChartLayout() override | Calculates actual values of chart elements. The actual values include position of elements that implement IActualLayout interface (IActualLayout::get_ActualX, IActualLayout::get_ActualY, IActualLayout::get_ActualWidth, IActualLayout::get_ActualHeight) and actual axes values (IAxis::get_ActualMaxValue, IAxis::get_ActualMinValue, IAxis::get_ActualMajorUnit, IAxis::get_ActualMinorUnit, IAxis::get_ActualMajorUnitScale, IAxis::get_ActualMinorUnitScale) |
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. |
void WriteAsSvg(System::SharedPtr<System::IO::Stream>) override | Saves content of Shape as SVG file. |
void WriteAsSvg(System::SharedPtr<System::IO::Stream>, System::SharedPtr<Export::ISVGOptions>) override | Saves content of Shape as SVG file. |
virtual ~Object() | Destroys object. Frees all internal data structures. |
See Also
- Class GraphicalObject
- Class IChart
- Namespace Aspose::Slides::Charts
- Library Aspose.Slides