SlideCollection

SlideCollection class

Represents a collection of a slides.

class SlideCollection : public Aspose::Slides::DomObject<System::SharedPtr<Aspose::Slides::Presentation>>,
                        public Aspose::Slides::ISlideCollection

Methods

MethodDescription
System::SharedPtr<ISlide> AddClone(System::SharedPtr<ISlide>) overrideAdds a copy of a specified slide to the end of the collection.
System::SharedPtr<ISlide> AddClone(System::SharedPtr<ISlide>, System::SharedPtr<ISection>) overrideAdds a copy of a specified slide to the end of the specified section.
System::SharedPtr<ISlide> AddClone(System::SharedPtr<ISlide>, System::SharedPtr<ILayoutSlide>) overrideAdds a copy of a specified slide to the end of the collection.
System::SharedPtr<ISlide> AddClone(System::SharedPtr<ISlide>, System::SharedPtr<IMasterSlide>, bool) overrideAdds a copy of a specified source slide to the end of the collection. Appropriate layout will be selected automatically from the specified master (appropriate layout is the layout with the same Type or Name as of layout of the source slide). If there is no appropriate layout then layout of the source slide will be cloned (if allowCloneMissingLayout is true) or PptxEditException will be thrown (if allowCloneMissingLayout is false).
System::SharedPtr<ISlide> AddEmptySlide(System::SharedPtr<ILayoutSlide>) overrideAdds a new empty slide to the end of the collection.
System::ArrayPtr<System::SharedPtr<ISlide>> AddFromHtml(System::String, System::SharedPtr<Import::IExternalResourceResolver>, System::String) overrideCreates slides from HTML text and adds them to the end of the collection.
System::ArrayPtr<System::SharedPtr<ISlide>> AddFromHtml(System::String) overrideCreates slides from HTML text and adds them to the end of the collection.
System::ArrayPtr<System::SharedPtr<ISlide>> AddFromHtml(System::SharedPtr<System::IO::TextReader>, System::SharedPtr<Import::IExternalResourceResolver>, System::String) overrideCreates slides from HTML text and adds them to the end of the collection.
System::ArrayPtr<System::SharedPtr<ISlide>> AddFromHtml(System::SharedPtr<System::IO::TextReader>) overrideCreates slides from HTML text and adds them to the end of the collection.
System::ArrayPtr<System::SharedPtr<ISlide>> AddFromHtml(System::SharedPtr<System::IO::Stream>, System::SharedPtr<Import::IExternalResourceResolver>, System::String) overrideCreates slides from HTML text and adds them to the end of the collection.
System::ArrayPtr<System::SharedPtr<ISlide>> AddFromHtml(System::SharedPtr<System::IO::Stream>) overrideCreates slides from HTML text and adds them to the end of the collection.
System::ArrayPtr<System::SharedPtr<ISlide>> AddFromPdf(System::String) overrideCreates slides from the PDF document and adds them to the end of the collection.
System::ArrayPtr<System::SharedPtr<ISlide>> AddFromPdf(System::String, System::SharedPtr<Import::PdfImportOptions>) overrideCreates slides from the PDF document and adds them to the end of the collection considering the pdf import options.
System::ArrayPtr<System::SharedPtr<ISlide>> AddFromPdf(System::SharedPtr<System::IO::Stream>) overrideCreates slides from the PDF document and adds them to the end of the collection.
System::ArrayPtr<System::SharedPtr<ISlide>> AddFromPdf(System::SharedPtr<System::IO::Stream>, System::SharedPtr<Import::PdfImportOptions>) overrideCreates slides from the PDF document and adds them to the end of the collection.
iterator begin()Gets iterator pointing to the first element (if any) of the collection.
const_iterator begin() constGets iterator pointing to the first element (if any) of the const-qualified instance of the collection.
const_iterator cbegin() constGets iterator pointing to the first const-qualified element (if any) of the collection.
const_iterator cend() constGets iterator pointing right after the last const-qualified element (if any) of the collection.
void CopyTo(System::ArrayPtr<System::SharedPtr<ISlide>>, int32_t) overrideCopies 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() constGets 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 **) constFor internal purposes only.
int32_t get_Count() overrideGets the number of elements actually contained in the collection. Read-only int32_t.
bool get_IsSynchronized() overrideReturns a value indicating whether access to the collection is synchronized (thread-safe). Read-only bool.
System::SharedPtr<System::Object> get_SyncRoot() overrideReturns 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<ISlide>>> GetEnumerator() overrideReturns an enumerator that iterates through the collection.
virtual int32_t GetHashCode() constAnalog of C# Object.GetHashCode() method. Enables hashing of custom objects.
virtual const TypeInfo& GetType() constGets actual type of object. Analog of C# System.Object.GetType() call.
System::SharedPtr<ISlide> idx_get(int32_t) overrideGets the element at the specified index. Read-only Slide.
int32_t IndexOf(System::SharedPtr<ISlide>) overrideReturns an index of the specified slide in the collection.
System::SharedPtr<ISlide> InsertClone(int32_t, System::SharedPtr<ISlide>) overrideInserts a copy of a specified slide to specified position of the collection.
System::SharedPtr<ISlide> InsertClone(int32_t, System::SharedPtr<ISlide>, System::SharedPtr<ILayoutSlide>) overrideInserts a copy of a specified slide to specified position of the collection.
System::SharedPtr<ISlide> InsertClone(int32_t, System::SharedPtr<ISlide>, System::SharedPtr<IMasterSlide>, bool) overrideInserts a copy of a specified source slide to specified position of the collection. Appropriate layout will be selected automatically from the specified master (appropriate layout is the layout with the same Type or Name as of layout of the source slide). If there is no appropriate layout then layout of the source slide will be cloned (if allowCloneMissingLayout is true) or PptxEditException will be thrown (if allowCloneMissingLayout is false).
System::SharedPtr<ISlide> InsertEmptySlide(int32_t, System::SharedPtr<ILayoutSlide>) overrideInserts a copy of a specified slide to specified position of the collection.
System::ArrayPtr<System::SharedPtr<ISlide>> InsertFromHtml(int32_t, System::String, System::SharedPtr<Import::IExternalResourceResolver>, System::String) overrideCreates slides from HTML text and inserts them to the collection at the specified position.
System::ArrayPtr<System::SharedPtr<ISlide>> InsertFromHtml(int32_t, System::String) overrideCreates slides from HTML text and inserts them to the collection at the specified position.
System::ArrayPtr<System::SharedPtr<ISlide>> InsertFromHtml(int32_t, System::SharedPtr<System::IO::TextReader>, System::SharedPtr<Import::IExternalResourceResolver>, System::String) overrideCreates slides from HTML text and inserts them to the collection at the specified position.
System::ArrayPtr<System::SharedPtr<ISlide>> InsertFromHtml(int32_t, System::SharedPtr<System::IO::TextReader>) overrideCreates slides from HTML text and inserts them to the collection at the specified position.
System::ArrayPtr<System::SharedPtr<ISlide>> InsertFromHtml(int32_t, System::SharedPtr<System::IO::Stream>, System::SharedPtr<Import::IExternalResourceResolver>, System::String) overrideCreates slides from HTML text and inserts them to the collection at the specified position.
System::ArrayPtr<System::SharedPtr<ISlide>> InsertFromHtml(int32_t, System::SharedPtr<System::IO::Stream>) overrideCreates slides from HTML text and inserts them to the collection at the specified position.
virtual bool Is(const TypeInfo&) constCheck if object represents an instance of type described by targetType. Analog of C# ‘is’ operator.
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_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.
SharedPtr<IEnumerable<ResultType>> LINQ_OfType()Filters the elements of the sequence based on the specified type.
SharedPtr<IEnumerable<Result>> LINQ_OfType()
SharedPtr<IEnumerable<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<IEnumerable<Source>> LINQ_OrderBy(const Func<Source, Key>&)
SharedPtr<IEnumerable<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<IEnumerable<Source>> LINQ_OrderByDescending(const Func<Source, Key>&)
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>>>&)
System::ArrayPtr<T> LINQ_ToArray()Creates an array from a sequence.
SharedPtr<List<T>> LINQ_ToList()Creates a List from a sequence.
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() constAnalog 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<ISlide>) overrideRemoves the first occurrence of a specific object from the collection.
void RemoveAt(int32_t) overrideRemoves 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<ISlide>) overrideMoves slide from the collection to the specified position.
void Reorder(int32_t, const System::ArrayPtr<System::SharedPtr<ISlide>>&) overrideMoves slides from the collection to the specified position. Slides will be placed starting from index in order they appear in list.
void SetTemplateWeakPtr(uint32_t) overrideSet n’th template argument a weak pointer (rather than shared). Allows switching pointers in containers to weak mode.
int SharedCount() constGets 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<ISlide>> ToArray() overrideCreates and returns an array with all slides in it.
System::ArrayPtr<System::SharedPtr<ISlide>> ToArray(int32_t, int32_t) overrideCreates and returns an array with all slides from the specified range in it.
virtual String ToString() constAnalog 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 overrideGets iterator pointing to the first element (if any)of the const-qualified instance of the collection.
virtualized_iterator * virtualizeBeginIterator() overrideGets iterator pointing to the first element (if any) of the collection.
virtualized_iterator * virtualizeEndConstIterator() const overrideGets iterator pointing right after the last element (if any)of the const-qualified instance of the collection.
virtualized_iterator * virtualizeEndIterator() overrideGets 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

TypedefDescription
iterator_holder_typeA collection type whose iterator types is used as iterator types in the current collection.
iteratorIterator type.
const_iteratorConst iterator type.
virtualized_iterator_elementVirtualized element type.
virtualized_iteratorVirtualized type.

See Also