ShapeCollection
Contents
[
Hide
]ShapeCollection class
Represents a collection of a shapes.
class ShapeCollection : public Aspose::Slides::DomObject<System::SharedPtr<Aspose::Slides::GroupShape>>,
public Aspose::Slides::IShapeCollection
Methods
Method | Description |
---|---|
System::SharedPtr<IAudioFrame> AddAudioFrameCD(float, float, float, float) override | Adds an AudioFrame with CD to the end of collection. |
System::SharedPtr<IAudioFrame> AddAudioFrameEmbedded(float, float, float, float, System::SharedPtr<System::IO::Stream>) override | Adds a new audio frame with embedded audio file to the end of a collection. Embedded audio file can be a WAV only. It adds new audio into Presentation::get_Audios list. |
System::SharedPtr<IAudioFrame> AddAudioFrameEmbedded(float, float, float, float, System::SharedPtr<IAudio>) override | Adds a new audio frame with embedded audio file to the end of a collection. It uses audio file from Presentation::get_Audios list. |
System::SharedPtr<IAudioFrame> AddAudioFrameLinked(float, float, float, float, System::String) override | Adds a new audio frame with linked audio file to the end of a collection. |
System::SharedPtr<IAutoShape> AddAutoShape(ShapeType, float, float, float, float) override | Creates a new AutoShape, tunes it from default template and adds it to the end of the collection. |
System::SharedPtr<IAutoShape> AddAutoShape(ShapeType, float, float, float, float, bool) override | Creates a new AutoShape and adds it to the end of the collection. |
System::SharedPtr<Charts::IChart> AddChart(Charts::ChartType, float, float, float, float) override | Creates a new Chart, initialize it with sample series data and settings and adds it to the end of the collection. |
System::SharedPtr<Charts::IChart> AddChart(Charts::ChartType, float, float, float, float, bool) override | Creates a new Chart and adds it to the end of the collection. |
System::SharedPtr<IShape> AddClone(System::SharedPtr<IShape>, float, float, float, float) override | Adds a copy of a specified shape to the end of the collection. |
System::SharedPtr<IShape> AddClone(System::SharedPtr<IShape>, float, float) override | Adds a copy of a specified shape to the end of the collection. Width and Height of the new shape are equal to Width and Height of the sourceShape . |
System::SharedPtr<IShape> AddClone(System::SharedPtr<IShape>) override | Adds a copy of a specified shape to the end of the collection. X, Y, Width and Height of the new shape are equal to X, Y, Width and Height of the sourceShape . |
System::SharedPtr<IConnector> AddConnector(ShapeType, float, float, float, float) override | Creates a new Connector, tunes it from default template and adds it to the end of the collection. |
System::SharedPtr<IConnector> AddConnector(ShapeType, float, float, float, float, bool) override | Creates a new Connector and adds it to the end of the collection. |
System::SharedPtr<IGroupShape> AddGroupShape() override | Creates a new GroupShape and adds it to the end of the collection. GroupShape frame size and position will be fitted to content when new shape will be added into the GroupShape. |
System::SharedPtr<IGroupShape> AddGroupShape(System::SharedPtr<ISvgImage>, float, float, float, float) override | Creates a new GroupShape, fills it with converted shapes from SVG and adds it to the end of the collection. |
System::SharedPtr<IAutoShape> AddMathShape(float, float, float, float) override | Creates a new Autoshape tuned from default template to math content and adds it to the end of the collection. |
System::SharedPtr<IOleObjectFrame> AddOleObjectFrame(float, float, float, float, System::SharedPtr<IOleEmbeddedDataInfo>) override | Adds a new OLE object to the end of a collection. |
System::SharedPtr<IOleObjectFrame> AddOleObjectFrame(float, float, float, float, System::String, System::String) override | Adds a new OLE object to the end of a collection. |
System::SharedPtr<IPictureFrame> AddPictureFrame(ShapeType, float, float, float, float, System::SharedPtr<IPPImage>) override | Creates a new PictureFrame and adds it to the end of the collection. |
System::SharedPtr<ISectionZoomFrame> AddSectionZoomFrame(float, float, float, float, System::SharedPtr<ISection>) override | Adds a new Section Zoom object to the end of a collection. |
System::SharedPtr<ISectionZoomFrame> AddSectionZoomFrame(float, float, float, float, System::SharedPtr<ISection>, System::SharedPtr<IPPImage>) override | Adds a new Section Zoom object to the end of a collection with a predefined image. |
System::SharedPtr<SmartArt::ISmartArt> AddSmartArt(float, float, float, float, SmartArt::SmartArtLayoutType) override | Add SmartArt diagram. |
System::SharedPtr<ISummaryZoomFrame> AddSummaryZoomFrame(float, float, float, float) override | Adds a new Summary Zoom object to the end of a collection. |
System::SharedPtr<ITable> AddTable(float, float, System::ArrayPtr<double>, System::ArrayPtr<double>) override | Creates a new Table and adds it to the end of the collection. |
System::SharedPtr<IVideoFrame> AddVideoFrame(float, float, float, float, System::String) override | Adds a new video frame to the end of a collection. |
System::SharedPtr<IVideoFrame> AddVideoFrame(float, float, float, float, System::SharedPtr<IVideo>) override | Adds a new video frame to the end of a collection. |
System::SharedPtr<IZoomFrame> AddZoomFrame(float, float, float, float, System::SharedPtr<ISlide>) override | Adds a new Zoom object to the end of a collection. |
System::SharedPtr<IZoomFrame> AddZoomFrame(float, float, float, float, System::SharedPtr<ISlide>, System::SharedPtr<IPPImage>) override | Adds a new Zoom object to the end of a collection. |
iterator begin() | Gets iterator pointing to the first element (if any) of the collection. |
const_iterator begin() const | Gets iterator pointing to the first element (if any) of the const-qualified instance of the collection. |
const_iterator cbegin() const | Gets iterator pointing to the first const-qualified element (if any) of the collection. |
const_iterator cend() const | Gets iterator pointing right after the last const-qualified element (if any) of the collection. |
void Clear() override | Removes all shapes from the collection. |
void CopyTo(System::ArrayPtr<System::SharedPtr<IShape>>, int32_t) override | Copies all elements from the collection to the specified array. |
virtual void CopyTo(System::ArrayPtr<T>, int32_t) | Copies all elements from the collection into the specified array. |
iterator end() | Gets iterator pointing right after the last element (if any) of the collection. |
const_iterator end() const | Gets iterator pointing right after the last element (if any) of the const-qualified instance of the collection. |
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. |
int32_t get_Count() override | Gets the number of elements actually contained in the collection. Read-only int32_t. |
bool get_IsSynchronized() override | Returns a value indicating whether access to the collection is synchronized (thread-safe). Read-only bool. |
System::SharedPtr<IGroupShape> get_ParentGroup() override | Returns parent GroupShape object for a shapes collection. Read-only IGroupShape. |
System::SharedPtr<System::Object> get_SyncRoot() override | Returns a synchronization root. Read-only System::Object. |
Detail::SmartPtrCounter * GetCounter() | Gets reference counter data structure associated with the object. |
System::SharedPtr<System::Collections::Generic::IEnumerator<System::SharedPtr<IShape>>> GetEnumerator() override | Returns an enumerator that iterates through the collection. |
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. |
System::SharedPtr<IShape> idx_get(int32_t) override | Gets the element at the specified index. Read-only IShape. |
int32_t IndexOf(System::SharedPtr<IShape>) override | Returns the zero-based index of the first occurrence of a shape in the collection. |
System::SharedPtr<IAudioFrame> InsertAudioFrameCD(int32_t, float, float, float, float) override | Insert an AudioFrame with CD. |
System::SharedPtr<IAudioFrame> InsertAudioFrameEmbedded(int32_t, float, float, float, float, System::SharedPtr<System::IO::Stream>) override | Insert an AudioFrame with embedded audio file. Embedded audio file sound can be a WAV only. |
System::SharedPtr<IAudioFrame> InsertAudioFrameEmbedded(int32_t, float, float, float, float, System::SharedPtr<IAudio>) override | Insert an AudioFrame with embedded audio file. It uses audio file from Presentation::get_Audios list. |
System::SharedPtr<IAudioFrame> InsertAudioFrameLinked(int32_t, float, float, float, float, System::String) override | Creates a new audio frame with linked audio file and inserts it to a collection at the specified index. |
System::SharedPtr<IAutoShape> InsertAutoShape(int32_t, ShapeType, float, float, float, float) override | Creates a new AutoShape, tunes it from default template and inserts it to the collection at the specified index. Note: the type of the shape will be determined by the shapeType parameter. |
System::SharedPtr<IAutoShape> InsertAutoShape(int32_t, ShapeType, float, float, float, float, bool) override | Creates a new AutoShape and inserts it to the collection at the specified index. Note: the type of the shape will be determined by the shapeType parameter. |
System::SharedPtr<Charts::IChart> InsertChart(Charts::ChartType, float, float, float, float, int32_t) override | Creates a new Chart, initialize it with sample series data and settings and inserts it to the specified position in the collection. |
System::SharedPtr<Charts::IChart> InsertChart(Charts::ChartType, float, float, float, float, int32_t, bool) override | Creates a new Chart and inserts it to the specified position in the collection. |
System::SharedPtr<IShape> InsertClone(int32_t, System::SharedPtr<IShape>, float, float, float, float) override | Inserts a copy of a specified shape to specified position of the collection. |
System::SharedPtr<IShape> InsertClone(int32_t, System::SharedPtr<IShape>, float, float) override | Inserts a copy of a specified shape to specified position of the collection. Width and Height of the new shape are equal to Width and Height of the sourceShape . |
System::SharedPtr<IShape> InsertClone(int32_t, System::SharedPtr<IShape>) override | Inserts a copy of a specified shape to specified position of the collection. X, Y, Width and Height of the new shape are equal to X, Y, Width and Height of the sourceShape . |
System::SharedPtr<IConnector> InsertConnector(int32_t, ShapeType, float, float, float, float) override | Creates a new Connector, tunes it from default template and inserts it to the collection at the specified index. |
System::SharedPtr<IConnector> InsertConnector(int32_t, ShapeType, float, float, float, float, bool) override | Creates a new Connector and inserts it to the collection at the specified index. |
System::SharedPtr<IGroupShape> InsertGroupShape(int32_t) override | Creates a new GroupShape and inserts it to the collection at the specified index. GroupShape frame size and position will be fitted to content when new shape will be added into the GroupShape. |
System::SharedPtr<IOleObjectFrame> InsertOleObjectFrame(int32_t, float, float, float, float, System::SharedPtr<IOleEmbeddedDataInfo>) override | Creates a new OLE object and inserts it to a collection at the specified index. |
System::SharedPtr<IOleObjectFrame> InsertOleObjectFrame(int32_t, float, float, float, float, System::String, System::String) override | Creates a new OLE object and inserts it to a collection at the specified index. |
System::SharedPtr<IPictureFrame> InsertPictureFrame(int32_t, ShapeType, float, float, float, float, System::SharedPtr<IPPImage>) override | Creates a new PictureFrame and inserts it to the collection at the specified index. |
System::SharedPtr<ISectionZoomFrame> InsertSectionZoomFrame(int32_t, float, float, float, float, System::SharedPtr<ISection>) override | Creates a new Section Zoom object and inserts into to a collection at the specified index. |
System::SharedPtr<ISectionZoomFrame> InsertSectionZoomFrame(int32_t, float, float, float, float, System::SharedPtr<ISection>, System::SharedPtr<IPPImage>) override | Creates a new Section Zoom object and inserts it to a collection at the specified index. |
System::SharedPtr<ISummaryZoomFrame> InsertSummaryZoomFrame(int32_t, float, float, float, float) override | Creates a new Summary Zoom object and inserts it to a collection at the specified index. |
System::SharedPtr<ITable> InsertTable(int32_t, float, float, System::ArrayPtr<double>, System::ArrayPtr<double>) override | Creates a new Table and inserts it to the collection at the specified index. |
System::SharedPtr<IVideoFrame> InsertVideoFrame(int32_t, float, float, float, float, System::String) override | Creates a new video frame and inserts it to a collection at the specified index. |
System::SharedPtr<IZoomFrame> InsertZoomFrame(int32_t, float, float, float, float, System::SharedPtr<ISlide>) override | Creates a new Zoom object and inserts it to a collection at the specified index. |
System::SharedPtr<IZoomFrame> InsertZoomFrame(int32_t, float, float, float, float, System::SharedPtr<ISlide>, System::SharedPtr<IPPImage>) override | Creates a new Zoom object and inserts it to a collection at the specified index. |
virtual bool Is(const TypeInfo&) const | Check if object represents an instance of type described by targetType. Analog of C# ‘is’ operator. |
T LINQ_Aggregate(const Func<T, T, T>&) | Applies an accumulator function over a sequence. |
bool LINQ_All(std::function<bool(T)>) | Determines whether all elements of a sequence satisfy a condition. |
bool LINQ_Any() | Determines whether a sequence contains any elements. |
bool LINQ_Any(std::function<bool(T)>) | Determines whether any element of a sequence exists or satisfies a condition. |
SharedPtr<IEnumerable<ResultType>> LINQ_Cast() | Casts the elements to the specified type. |
SharedPtr<IEnumerable<Result>> LINQ_Cast() | |
SharedPtr<IEnumerable<T>> LINQ_Concat(SharedPtr<IEnumerable<T>>) | Concatenates two sequences. |
bool LINQ_Contains(T) | Determines if a sequence contains a specified value. |
int LINQ_Count() | Returns the number of elements in the sequence (calculated via direct counting). |
int LINQ_Count(const Func<T, bool>&) | Returns the number of elements in the sequence that satisfy the specified condition. |
T LINQ_ElementAt(int) | Returns the element at a specified index in a sequence. |
T LINQ_ElementAtOrDefault(int) | Returns the element at a specified index in a sequence. |
T LINQ_First() | Returns the first element of a sequence. |
T LINQ_First(const Func<T, bool>&) | Returns the first element of a sequence that satisfy the specified condition. |
T LINQ_FirstOrDefault() | Returns the first element of a sequence, or a default value if the sequence is empty. |
T LINQ_FirstOrDefault(std::function<bool(T)>) | Returns the first element of the sequence that satisfies a condition or a default value if no such element is found. |
System::SharedPtr<IEnumerable<System::SharedPtr<System::Linq::IGrouping<Key, T>>>> LINQ_GroupBy(System::Func<T, Key>) | Groups the elements of a sequence. |
SharedPtr<IEnumerable<SharedPtr<System::Linq::IGrouping<Key, Source>>>> LINQ_GroupBy(System::Func<Source, Key>) | |
T LINQ_Last() | Returns the last element of a sequence. |
T LINQ_LastOrDefault() | Returns the last element of a sequence, or a default value if the sequence is empty. |
ResultType LINQ_Max(const Func<T, ResultType>&) | Invokes a transform function on each element of a generic sequence and returns the maximum resulting value. |
ResultType LINQ_Max(const Func<Source, ResultType>&) | |
ResultType LINQ_Min(const Func<T, ResultType>&) | Invokes a transform function on each element of a generic sequence and returns the minimum resulting value. |
ResultType LINQ_Min(const Func<Source, ResultType>&) | |
SharedPtr<IEnumerable<ResultType>> LINQ_OfType() | Filters the elements of the sequence based on the specified type. |
SharedPtr<IEnumerable<Result>> LINQ_OfType() | |
SharedPtr<Linq::IOrderedEnumerable<T>> LINQ_OrderBy(const Func<T, Key>&) | Sorts the elements of a sequence in ascending order according to the key values selected by keySelector. |
SharedPtr<Linq::IOrderedEnumerable<Source>> LINQ_OrderBy(const Func<Source, Key>&) | |
SharedPtr<Linq::IOrderedEnumerable<T>> LINQ_OrderByDescending(const Func<T, Key>&) | Sorts the elements of a sequence in descending order according to the key values selected by keySelector. |
SharedPtr<Linq::IOrderedEnumerable<Source>> LINQ_OrderByDescending(const Func<Source, Key>&) | |
SharedPtr<IEnumerable<T>> LINQ_Reverse() | Inverts the order of the elements in a sequence. |
SharedPtr<IEnumerable<ResultType>> LINQ_Select(const Func<T, ResultType>&) | Transforms elements of a sequence. |
SharedPtr<IEnumerable<ResultType>> LINQ_Select(const Func<T, int32_t, ResultType>&) | Transforms each element of a sequence into a new form by incorporating the element’s index. |
SharedPtr<IEnumerable<Result>> LINQ_Select(const Func<Source, Result>&) | |
SharedPtr<IEnumerable<Result>> LINQ_Select(const Func<Source, int32_t, Result>&) | |
SharedPtr<IEnumerable<ResultType>> LINQ_SelectMany(const Func<T, SharedPtr<IEnumerable<ResultType>>>&) | Projects each element of a sequence and combines the resulting sequences into one sequence. |
SharedPtr<IEnumerable<Result>> LINQ_SelectMany(const Func<Source, SharedPtr<IEnumerable<Result>>>&) | |
SharedPtr<IEnumerable<T>> LINQ_Take(int32_t) | Returns a specified number of contiguous elements from the start of a sequence. |
System::ArrayPtr<T> LINQ_ToArray() | Creates an array from a sequence. |
SharedPtr<List<T>> LINQ_ToList() | Creates a List |
SharedPtr<IEnumerable<T>> LINQ_Where(std::function<bool(T)>) | Filters a sequence based on the specified predicate. |
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. |
void Remove(System::SharedPtr<IShape>) override | Removes the first occurrence of a specific shape from the collection. |
void RemoveAt(int32_t) override | Removes the element at the specified index of the collection. |
int RemovedSharedRefs(int) | Decreases shared reference count by specified value. |
void Reorder(int32_t, System::SharedPtr<IShape>) override | Moves a shape from the collection to the specified position. |
void Reorder(int32_t, const System::ArrayPtr<System::SharedPtr<IShape>>&) override | Moves shapes from the collection to the specified position. Shapes will be placed starting from index in order they appear in list. |
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. |
System::ArrayPtr<System::SharedPtr<IShape>> ToArray() override | Creates and returns an array with all shapse in it. |
System::ArrayPtr<System::SharedPtr<IShape>> ToArray(int32_t, int32_t) override | Creates and returns an array with all shapes from the specified range in it. |
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. |
virtualized_iterator * virtualizeBeginConstIterator() const override | Gets iterator pointing to the first element (if any)of the const-qualified instance of the collection. |
virtualized_iterator * virtualizeBeginIterator() override | Gets iterator pointing to the first element (if any) of the collection. |
virtualized_iterator * virtualizeEndConstIterator() const override | Gets iterator pointing right after the last element (if any)of the const-qualified instance of the collection. |
virtualized_iterator * virtualizeEndIterator() override | Gets iterator pointing right after the last element (if any) of the collection. |
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. |
Typedefs
Typedef | Description |
---|---|
iterator_holder_type | A collection type whose iterator types is used as iterator types in the current collection. |
iterator | Iterator type. |
const_iterator | Const iterator type. |
virtualized_iterator_element | Virtualized element type. |
virtualized_iterator | Virtualized type. |
See Also
- Class DomObject
- Class IShapeCollection
- Namespace Aspose::Slides
- Library Aspose.Slides