Aspose::Slides::ISlideCollection Class Referenceabstract

Represents a collection of a slides. More...

#include <ISlideCollection.h>

Inherits Aspose::Slides::IGenericCollection< System::SharedPtr< Aspose::Slides::ISlide > >.

Inherited by Aspose::Slides::SlideCollection.

Public Member Functions

virtual ASPOSE_SLIDES_API_LOCAL_API System::SharedPtr< ISlideidx_get (int32_t index)=0
 Gets the element at the specified index. Read-only ISlide. More...
 
virtual ASPOSE_SLIDES_API_LOCAL_API System::SharedPtr< ISlideAddClone (System::SharedPtr< ISlide > sourceSlide)=0
 Adds a copy of a specified slide to the end of the collection. More...
 
virtual ASPOSE_SLIDES_API_LOCAL_API System::SharedPtr< ISlideAddClone (System::SharedPtr< ISlide > sourceSlide, System::SharedPtr< ISection > section)=0
 Adds a copy of a specified slide to the end of the specified section. More...
 
virtual ASPOSE_SLIDES_API_LOCAL_API System::SharedPtr< ISlideInsertClone (int32_t index, System::SharedPtr< ISlide > sourceSlide)=0
 Inserts a copy of a specified slide to specified position of the collection. More...
 
virtual ASPOSE_SLIDES_API_LOCAL_API System::SharedPtr< ISlideAddEmptySlide (System::SharedPtr< ILayoutSlide > layout)=0
 Adds a new empty slide to the end of the collection. More...
 
virtual ASPOSE_SLIDES_API_LOCAL_API System::SharedPtr< ISlideInsertEmptySlide (int32_t index, System::SharedPtr< ILayoutSlide > layout)=0
 Inserts a copy of a specified slide to specified position of the collection. More...
 
virtual ASPOSE_SLIDES_API_LOCAL_API System::SharedPtr< ISlideAddClone (System::SharedPtr< ISlide > sourceSlide, System::SharedPtr< ILayoutSlide > destLayout)=0
 Adds a copy of a specified slide to the end of the collection. More...
 
virtual ASPOSE_SLIDES_API_LOCAL_API System::SharedPtr< ISlideInsertClone (int32_t index, System::SharedPtr< ISlide > sourceSlide, System::SharedPtr< ILayoutSlide > destLayout)=0
 Inserts a copy of a specified slide to specified position of the collection. More...
 
virtual ASPOSE_SLIDES_API_LOCAL_API System::SharedPtr< ISlideAddClone (System::SharedPtr< ISlide > sourceSlide, System::SharedPtr< IMasterSlide > destMaster, bool allowCloneMissingLayout)=0
 Adds 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). More...
 
virtual ASPOSE_SLIDES_API_LOCAL_API System::SharedPtr< ISlideInsertClone (int32_t index, System::SharedPtr< ISlide > sourceSlide, System::SharedPtr< IMasterSlide > destMaster, bool allowCloneMissingLayout)=0
 Inserts 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). More...
 
virtual ASPOSE_SLIDES_API_LOCAL_API void Remove (System::SharedPtr< ISlide > value)=0
 Removes the first occurrence of a specific object from the collection. More...
 
virtual ASPOSE_SLIDES_API_LOCAL_API void RemoveAt (int32_t index)=0
 Removes the element at the specified index of the collection. More...
 
virtual ASPOSE_SLIDES_API_LOCAL_API System::ArrayPtr< System::SharedPtr< ISlide > > ToArray ()=0
 Creates and returns an array with all slides in it. More...
 
virtual ASPOSE_SLIDES_API_LOCAL_API System::ArrayPtr< System::SharedPtr< ISlide > > ToArray (int32_t startIndex, int32_t count)=0
 Creates and returns an array with all slides from the specified range in it. More...
 
virtual ASPOSE_SLIDES_API_LOCAL_API void Reorder (int32_t index, System::SharedPtr< ISlide > slide)=0
 Moves slide from the collection to the specified position. More...
 
virtual ASPOSE_SLIDES_API_LOCAL_API void Reorder (int32_t index, const System::ArrayPtr< System::SharedPtr< ISlide > > &slides)=0
 Moves slides from the collection to the specified position. Slides will be placed starting from index in order they appear in list. More...
 
virtual ASPOSE_SLIDES_API_LOCAL_API int32_t IndexOf (System::SharedPtr< ISlide > slide)=0
 Returns an index of the specified slide in the collection. More...
 
virtual ASPOSE_SLIDES_API_LOCAL_API System::ArrayPtr< System::SharedPtr< ISlide > > AddFromPdf (System::String path)=0
 Creates slides from the PDF document and adds them to the end of the collection. More...
 
virtual ASPOSE_SLIDES_API_LOCAL_API System::ArrayPtr< System::SharedPtr< ISlide > > AddFromPdf (System::SharedPtr< System::IO::Stream > pdfStream)=0
 Creates slides from the PDF document and adds them to the end of the collection. More...
 
virtual ASPOSE_SLIDES_API_LOCAL_API System::ArrayPtr< System::SharedPtr< ISlide > > AddFromHtml (System::String htmlText, System::SharedPtr< Import::IExternalResourceResolver > resolver, System::String uri)=0
 Creates slides from HTML text and adds them to the end of the collection. More...
 
virtual ASPOSE_SLIDES_API_LOCAL_API System::ArrayPtr< System::SharedPtr< ISlide > > AddFromHtml (System::String htmlText)=0
 Creates slides from HTML text and adds them to the end of the collection. More...
 
virtual ASPOSE_SLIDES_API_LOCAL_API System::ArrayPtr< System::SharedPtr< ISlide > > AddFromHtml (System::SharedPtr< System::IO::TextReader > htmlReader, System::SharedPtr< Import::IExternalResourceResolver > resolver, System::String uri)=0
 Creates slides from HTML text and adds them to the end of the collection. More...
 
virtual ASPOSE_SLIDES_API_LOCAL_API System::ArrayPtr< System::SharedPtr< ISlide > > AddFromHtml (System::SharedPtr< System::IO::TextReader > htmlReader)=0
 Creates slides from HTML text and adds them to the end of the collection. More...
 
virtual ASPOSE_SLIDES_API_LOCAL_API System::ArrayPtr< System::SharedPtr< ISlide > > AddFromHtml (System::SharedPtr< System::IO::Stream > htmlStream, System::SharedPtr< Import::IExternalResourceResolver > resolver, System::String uri)=0
 Creates slides from HTML text and adds them to the end of the collection. More...
 
virtual ASPOSE_SLIDES_API_LOCAL_API System::ArrayPtr< System::SharedPtr< ISlide > > AddFromHtml (System::SharedPtr< System::IO::Stream > htmlStream)=0
 Creates slides from HTML text and adds them to the end of the collection. More...
 
virtual ASPOSE_SLIDES_API_LOCAL_API System::ArrayPtr< System::SharedPtr< ISlide > > InsertFromHtml (int32_t index, System::String htmlText, System::SharedPtr< Import::IExternalResourceResolver > resolver, System::String uri)=0
 Creates slides from HTML text and inserts them to the collection at the specified position. More...
 
virtual ASPOSE_SLIDES_API_LOCAL_API System::ArrayPtr< System::SharedPtr< ISlide > > InsertFromHtml (int32_t index, System::String htmlText)=0
 Creates slides from HTML text and inserts them to the collection at the specified position. More...
 
virtual ASPOSE_SLIDES_API_LOCAL_API System::ArrayPtr< System::SharedPtr< ISlide > > InsertFromHtml (int32_t index, System::SharedPtr< System::IO::TextReader > htmlReader, System::SharedPtr< Import::IExternalResourceResolver > resolver, System::String uri)=0
 Creates slides from HTML text and inserts them to the collection at the specified position. More...
 
virtual ASPOSE_SLIDES_API_LOCAL_API System::ArrayPtr< System::SharedPtr< ISlide > > InsertFromHtml (int32_t index, System::SharedPtr< System::IO::TextReader > htmlReader)=0
 Creates slides from HTML text and inserts them to the collection at the specified position. More...
 
virtual ASPOSE_SLIDES_API_LOCAL_API System::ArrayPtr< System::SharedPtr< ISlide > > InsertFromHtml (int32_t index, System::SharedPtr< System::IO::Stream > htmlStream, System::SharedPtr< Import::IExternalResourceResolver > resolver, System::String uri)=0
 Creates slides from HTML text and inserts them to the collection at the specified position. More...
 
virtual ASPOSE_SLIDES_API_LOCAL_API System::ArrayPtr< System::SharedPtr< ISlide > > InsertFromHtml (int32_t index, System::SharedPtr< System::IO::Stream > htmlStream)=0
 Creates slides from HTML text and inserts them to the collection at the specified position. More...
 
- Public Member Functions inherited from Aspose::Slides::IGenericCollection< System::SharedPtr< Aspose::Slides::ISlide > >
virtual int32_t get_Count ()=0
 Returns the number of behaviors in a collection. Read-only int32_t. More...
 
virtual System::SharedPtr< System::Objectget_SyncRoot ()=0
 Returns a synchronization root. Read-only System::Object. More...
 
virtual bool get_IsSynchronized ()=0
 Returns a value indicating whether access to the collection is synchronized (thread-safe). Read-only bool. More...
 
virtual void CopyTo (System::ArrayPtr< System::SharedPtr< Aspose::Slides::ISlide > > array, int32_t index)=0
 Copies all elements from the collection into the specified array. More...
 
- Public Member Functions inherited from System::Collections::Generic::IEnumerable< System::SharedPtr< Aspose::Slides::ISlide > >
virtual SharedPtr< IEnumerator< System::SharedPtr< Aspose::Slides::ISlide > > > GetEnumerator ()=0
 Gets enumerator. More...
 
System::SharedPtr< Aspose::Slides::ISlideLINQ_ElementAt (int index)
 Returns the element at a specified index in a sequence. More...
 
System::SharedPtr< Aspose::Slides::ISlideLINQ_First ()
 Returns the first element of a sequence. More...
 
System::SharedPtr< Aspose::Slides::ISlideLINQ_First (const Func< System::SharedPtr< Aspose::Slides::ISlide >, bool > &predicate)
 Returns the first element of a sequence that satisfy the specified condition. More...
 
System::SharedPtr< Aspose::Slides::ISlideLINQ_FirstOrDefault ()
 Returns the first element of a sequence, or a default value if the sequence is empty. More...
 
System::SharedPtr< Aspose::Slides::ISlideLINQ_FirstOrDefault (std::function< bool(System::SharedPtr< Aspose::Slides::ISlide >)> predicate)
 Returns the first element of the sequence that satisfies a condition or a default value if no such element is found. More...
 
System::SharedPtr< Aspose::Slides::ISlideLINQ_Last ()
 Returns the last element of a sequence. More...
 
System::SharedPtr< Aspose::Slides::ISlideLINQ_LastOrDefault ()
 Returns the last element of a sequence, or a default value if the sequence is empty. More...
 
SharedPtr< List< System::SharedPtr< Aspose::Slides::ISlide > > > LINQ_ToList ()
 Creates a List<T> from a sequence. More...
 
int LINQ_Count ()
 Returns the number of elements in the sequence (calculated via direct counting). More...
 
int LINQ_Count (const Func< System::SharedPtr< Aspose::Slides::ISlide >, bool > &predicate)
 Returns the number of elements in the sequence that satisfy the specified condition. More...
 
System::ArrayPtr< System::SharedPtr< Aspose::Slides::ISlide > > LINQ_ToArray ()
 Creates an array from a sequence. More...
 
bool LINQ_All (std::function< bool(System::SharedPtr< Aspose::Slides::ISlide >)> predicate)
 Determines whether all elements of a sequence satisfy a condition. More...
 
bool LINQ_Any ()
 Determines whether a sequence contains any elements. More...
 
bool LINQ_Any (std::function< bool(System::SharedPtr< Aspose::Slides::ISlide >)> predicate)
 Determines whether any element of a sequence exists or satisfies a condition. More...
 
SharedPtr< IEnumerable< System::SharedPtr< Aspose::Slides::ISlide > > > LINQ_Where (std::function< bool(System::SharedPtr< Aspose::Slides::ISlide >)> predicate)
 Filters a sequence based on the specified predicate. More...
 
bool LINQ_Contains (System::SharedPtr< Aspose::Slides::ISlide > value)
 Determines if a sequence contains a specified value. More...
 
SharedPtr< IEnumerable< ResultType > > LINQ_Cast ()
 Casts the elements to the specified type. More...
 
SharedPtr< IEnumerable< Result > > LINQ_Cast ()
 
SharedPtr< IEnumerable< System::SharedPtr< Aspose::Slides::ISlide > > > LINQ_OrderBy (const Func< System::SharedPtr< Aspose::Slides::ISlide >, Key > &keySelector)
 Sorts the elements of a sequence in ascending order according to the key values selected by keySelector. More...
 
SharedPtr< IEnumerable< Source > > LINQ_OrderBy (const Func< Source, Key > &keySelector)
 
SharedPtr< IEnumerable< System::SharedPtr< Aspose::Slides::ISlide > > > LINQ_OrderByDescending (const Func< System::SharedPtr< Aspose::Slides::ISlide >, Key > &keySelector)
 Sorts the elements of a sequence in descending order according to the key values selected by keySelector. More...
 
SharedPtr< IEnumerable< Source > > LINQ_OrderByDescending (const Func< Source, Key > &keySelector)
 
SharedPtr< IEnumerable< ResultType > > LINQ_OfType ()
 Filters the elements of the sequence based on the specified type. More...
 
SharedPtr< IEnumerable< Result > > LINQ_OfType ()
 
SharedPtr< IEnumerable< ResultType > > LINQ_Select (const Func< System::SharedPtr< Aspose::Slides::ISlide >, ResultType > &selector)
 Transforms elements of a sequence. More...
 
SharedPtr< IEnumerable< ResultType > > LINQ_Select (const Func< System::SharedPtr< Aspose::Slides::ISlide >, int32_t, ResultType > &selector)
 Transforms each element of a sequence into a new form by incorporating the element's index. More...
 
SharedPtr< IEnumerable< Result > > LINQ_Select (const Func< Source, Result > &selector)
 
SharedPtr< IEnumerable< Result > > LINQ_Select (const Func< Source, int32_t, Result > &selector)
 
SharedPtr< IEnumerable< System::SharedPtr< Aspose::Slides::ISlide > > > LINQ_Concat (SharedPtr< IEnumerable< System::SharedPtr< Aspose::Slides::ISlide > > > sequence)
 Concatenates two sequences. More...
 
System::SharedPtr< IEnumerable< System::SharedPtr< System::Linq::IGrouping< Key, System::SharedPtr< Aspose::Slides::ISlide > > > > > LINQ_GroupBy (System::Func< System::SharedPtr< Aspose::Slides::ISlide >, Key > keyPredicate)
 Groups the elements of a sequence. More...
 
SharedPtr< IEnumerable< SharedPtr< System::Linq::IGrouping< Key, Source > > > > LINQ_GroupBy (System::Func< Source, Key > keyPredicate)
 
SharedPtr< IEnumerable< ResultType > > LINQ_SelectMany (const Func< System::SharedPtr< Aspose::Slides::ISlide >, SharedPtr< IEnumerable< ResultType > > > &selector)
 Projects each element of a sequence and combines the resulting sequences into one sequence. More...
 
SharedPtr< IEnumerable< Result > > LINQ_SelectMany (const Func< Source, SharedPtr< IEnumerable< Result > > > &selector)
 
iterator begin ()
 Gets iterator pointing to the first element (if any) of the collection. This iterator can't be used to change a referenced object because GetEnumerator() returns a copy-object of T. More...
 
const_iterator begin () const
 Gets iterator pointing to the first element (if any) of the const-qualified instance of the collection. More...
 
iterator end ()
 Gets iterator pointing right after the last element (if any) of the collection. This iterator can't be used to change a referenced object because GetEnumerator() returns a copy-object of T. More...
 
const_iterator end () const
 Gets iterator pointing right after the last element (if any) of the const-qualified instance of the collection. More...
 
const_iterator cbegin () const
 Gets iterator pointing to the first const-qualified element (if any) of the collection. More...
 
const_iterator cend () const
 Gets iterator pointing right after the last const-qualified element (if any) of the collection. More...
 
virtual virtualized_iteratorvirtualizeBeginIterator ()
 Gets the implementation of begin iterator for the current container. More...
 
virtual virtualized_iteratorvirtualizeEndIterator ()
 Gets the implementation of end iterator for the current container. More...
 
virtual virtualized_iteratorvirtualizeBeginConstIterator () const
 Gets the implementation of begin const iterator for the current container. More...
 
virtual virtualized_iteratorvirtualizeEndConstIterator () const
 Gets the implementation of end const iterator for the current container. 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 reference 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 int32_t GetHashCode () const
 Analog of C# Object.GetHashCode() method. Enables hashing of custom objects. More...
 
virtual String ToString () 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 (uint32_t argument)
 Set n'th template argument a weak pointer (rather than shared). Allows switching pointers in containers to weak mode. More...
 
virtual bool FastCast (const Details::FastRttiBase &helper, void **out_ptr) const
 For internal purposes only. More...
 
template<>
bool ReferenceEquals (String const &str, std::nullptr_t)
 Specialization of Object::ReferenceEquals for case of string and nullptr. More...
 
template<>
bool ReferenceEquals (String const &str1, String const &str2)
 Specialization of Object::ReferenceEquals for case of strings. More...
 

Additional Inherited Members

- Public Types inherited from System::Collections::Generic::IEnumerable< System::SharedPtr< Aspose::Slides::ISlide > >
typedef IEnumerator< System::SharedPtr< Aspose::Slides::ISlide > > IEnumeratorType
 Enumerator type. More...
 
using ValueType = System::SharedPtr< Aspose::Slides::ISlide >
 
using iterator = System::Details::VirtualizedIterator< System::SharedPtr< Aspose::Slides::ISlide > >
 Iterator type. More...
 
using const_iterator = System::Details::VirtualizedConstIterator< System::SharedPtr< Aspose::Slides::ISlide > >
 Const iterator type. More...
 
using virtualized_iterator = System::Details::VirtualizedIteratorBase< System::SharedPtr< Aspose::Slides::ISlide > >
 Inner iterator base type. More...
 
using virtualized_iterator_element = System::SharedPtr< Aspose::Slides::ISlide >
 Inner iterator element type. More...
 
- Public Types inherited from System::Object
typedef SmartPtr< Objectptr
 Alias for smart pointer type. 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 ()
 Implements C# typeof(System.Object) construct. More...
 
template<>
bool Equals (float const &objA, float const &objB)
 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. More...
 
template<>
bool Equals (double const &objA, double const &objB)
 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. More...
 
- Protected Member Functions inherited from System::Collections::Generic::IEnumerable< System::SharedPtr< Aspose::Slides::ISlide > >
 ~IEnumerable () override
 Destructor. More...
 
virtualized_iteratorGetEnumeratorAsVirtualizedIterator ()
 Gets enumerator instance and prepares it to be used as iterator kernel. More...
 
virtualized_iteratorGetEnumeratorAsVirtualizedIterator () const
 Gets enumerator instance and prepares it to be used as iterator kernel. More...
 

Detailed Description

Represents a collection of a slides.

Member Function Documentation

◆ AddClone() [1/4]

virtual ASPOSE_SLIDES_API_LOCAL_API System::SharedPtr< ISlide > Aspose::Slides::ISlideCollection::AddClone ( System::SharedPtr< ISlide sourceSlide)
pure virtual

Adds a copy of a specified slide to the end of the collection.

Parameters
sourceSlideSlide to clone.
Returns
New slide.

When cloning a slide between different presentations slide's master can be cloned too. Internal registry is used to track automatically cloned masters to prevent creation of multiple clones of the same master slide. Manual cloning of master slides will be neither prevented nor registered. If you need more control over cloning process use AddClone(SharedPtr<ISlide>, SharedPtr<ILayoutSlide>) or AddClone(SharedPtr<ISlide>, SharedPtr<IMasterSlide>, bool) for cloning slides, IGlobalLayoutSlideCollection::AddClone(SharedPtr<ILayoutSlide>) or IGlobalLayoutSlideCollection::AddClone(SharedPtr<ILayoutSlide>, SharedPtr<IMasterSlide>) for cloning layouts and IMasterSlideCollection::AddClone(SharedPtr<IMasterSlide>) for cloning masters.

Implemented in Aspose::Slides::SlideCollection.

◆ AddClone() [2/4]

virtual ASPOSE_SLIDES_API_LOCAL_API System::SharedPtr< ISlide > Aspose::Slides::ISlideCollection::AddClone ( System::SharedPtr< ISlide sourceSlide,
System::SharedPtr< ILayoutSlide destLayout 
)
pure virtual

Adds a copy of a specified slide to the end of the collection.

Parameters
sourceSlideSlide to clone.
destLayoutLayout slide for a new slide.
Returns
New slide.

Implemented in Aspose::Slides::SlideCollection.

◆ AddClone() [3/4]

virtual ASPOSE_SLIDES_API_LOCAL_API System::SharedPtr< ISlide > Aspose::Slides::ISlideCollection::AddClone ( System::SharedPtr< ISlide sourceSlide,
System::SharedPtr< IMasterSlide destMaster,
bool  allowCloneMissingLayout 
)
pure virtual

Adds 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).

Parameters
sourceSlideSlide to clone.
destMasterMaster slide for a new slide.
allowCloneMissingLayoutIf there is no appropriate layout in specified master then layout of the source slide will be cloned (if allowCloneMissingLayout is true) or PptxEditException will be thrown (if allowCloneMissingLayout is false).
Exceptions
Aspose::Slides::PptxEditExceptionThrown if there is no appropriate layout in specified master and allowCloneMissingLayout is false.
Returns
New slide.

Implemented in Aspose::Slides::SlideCollection.

◆ AddClone() [4/4]

virtual ASPOSE_SLIDES_API_LOCAL_API System::SharedPtr< ISlide > Aspose::Slides::ISlideCollection::AddClone ( System::SharedPtr< ISlide sourceSlide,
System::SharedPtr< ISection section 
)
pure virtual

Adds a copy of a specified slide to the end of the specified section.

auto presentation = MakeObject<Presentation>();
presentation->get_Slides()->idx_get(0)->get_Shapes()->AddAutoShape(ShapeType::Rectangle, 200.0f, 50.0f, 300.0f, 100.0f);
presentation->get_Sections()->AddSection(u"Section 1", presentation->get_Slides()->idx_get(0));
auto section2 = presentation->get_Sections()->AppendEmptySection(u"Section 2");
presentation->get_Slides()->AddClone(presentation->get_Slides()->idx_get(0), section2);
// Now the second section contains a copy of the first slide.
@ Rectangle
Rectangle Shape.
Parameters
sourceSlideSlide to clone.
sectionSection for a new slide.
Returns
New slide.
Exceptions
System::ArgumentNullException
Aspose::Slides::PptxEditException

Implemented in Aspose::Slides::SlideCollection.

◆ AddEmptySlide()

virtual ASPOSE_SLIDES_API_LOCAL_API System::SharedPtr< ISlide > Aspose::Slides::ISlideCollection::AddEmptySlide ( System::SharedPtr< ILayoutSlide layout)
pure virtual

Adds a new empty slide to the end of the collection.

Parameters
layoutLayout for a slide.
Returns
Added slide.

Implemented in Aspose::Slides::SlideCollection.

◆ AddFromHtml() [1/6]

virtual ASPOSE_SLIDES_API_LOCAL_API System::ArrayPtr< System::SharedPtr< ISlide > > Aspose::Slides::ISlideCollection::AddFromHtml ( System::SharedPtr< System::IO::Stream htmlStream)
pure virtual

Creates slides from HTML text and adds them to the end of the collection.

Parameters
htmlStreamA Stream object which will be used as a source of a HTML file.
Returns
Added slides

Implemented in Aspose::Slides::SlideCollection.

◆ AddFromHtml() [2/6]

virtual ASPOSE_SLIDES_API_LOCAL_API System::ArrayPtr< System::SharedPtr< ISlide > > Aspose::Slides::ISlideCollection::AddFromHtml ( System::SharedPtr< System::IO::Stream htmlStream,
System::SharedPtr< Import::IExternalResourceResolver resolver,
System::String  uri 
)
pure virtual

Creates slides from HTML text and adds them to the end of the collection.

Parameters
htmlStreamA Stream object which will be used as a source of a HTML file.
resolverA callback object used to fetch external objects. If this parameter is null all external objects will be ignored.
uriAn URI of the specified HTML. Used to resolve relative links.
Returns
Added slides.

Implemented in Aspose::Slides::SlideCollection.

◆ AddFromHtml() [3/6]

virtual ASPOSE_SLIDES_API_LOCAL_API System::ArrayPtr< System::SharedPtr< ISlide > > Aspose::Slides::ISlideCollection::AddFromHtml ( System::SharedPtr< System::IO::TextReader htmlReader)
pure virtual

Creates slides from HTML text and adds them to the end of the collection.

Parameters
htmlReaderTextReader object which will be used as a source of a HTML file.
Returns
Added slides

Implemented in Aspose::Slides::SlideCollection.

◆ AddFromHtml() [4/6]

virtual ASPOSE_SLIDES_API_LOCAL_API System::ArrayPtr< System::SharedPtr< ISlide > > Aspose::Slides::ISlideCollection::AddFromHtml ( System::SharedPtr< System::IO::TextReader htmlReader,
System::SharedPtr< Import::IExternalResourceResolver resolver,
System::String  uri 
)
pure virtual

Creates slides from HTML text and adds them to the end of the collection.

Parameters
htmlReaderTextReader object which will be used as a source of a HTML file.
resolverA callback object used to fetch external objects. If this parameter is null all external objects will be ignored.
uriAn URI of the specified HTML. Used to resolve relative links.
Returns
Added slides.

Implemented in Aspose::Slides::SlideCollection.

◆ AddFromHtml() [5/6]

virtual ASPOSE_SLIDES_API_LOCAL_API System::ArrayPtr< System::SharedPtr< ISlide > > Aspose::Slides::ISlideCollection::AddFromHtml ( System::String  htmlText)
pure virtual

Creates slides from HTML text and adds them to the end of the collection.

Parameters
htmlTextHtml to add.
Returns
Added slides

Implemented in Aspose::Slides::SlideCollection.

◆ AddFromHtml() [6/6]

virtual ASPOSE_SLIDES_API_LOCAL_API System::ArrayPtr< System::SharedPtr< ISlide > > Aspose::Slides::ISlideCollection::AddFromHtml ( System::String  htmlText,
System::SharedPtr< Import::IExternalResourceResolver resolver,
System::String  uri 
)
pure virtual

Creates slides from HTML text and adds them to the end of the collection.

Parameters
htmlTextHtml to add.
resolverA callback object used to fetch external objects. If this parameter is null all external objects will be ignored.
uriAn URI of the specified HTML. Used to resolve relative links.
Returns
Added slides.

Implemented in Aspose::Slides::SlideCollection.

◆ AddFromPdf() [1/2]

virtual ASPOSE_SLIDES_API_LOCAL_API System::ArrayPtr< System::SharedPtr< ISlide > > Aspose::Slides::ISlideCollection::AddFromPdf ( System::SharedPtr< System::IO::Stream pdfStream)
pure virtual

Creates slides from the PDF document and adds them to the end of the collection.

Parameters
pdfStreamA stream which will be used as a source of the PDF document
Returns
Added slides

Example:

auto pres = MakeObject<Presentation>();
auto stream = MakeObject<IO::FileStream>(u"document.pdf", IO::FileMode::Open, IO::FileAccess::Read, IO::FileShare::Read);
pres->get_Slides()->AddFromPdf(stream);
pres->Save(u"fromPdfDocument.pptx", SaveFormat::Pptx);


Implemented in Aspose::Slides::SlideCollection.

◆ AddFromPdf() [2/2]

virtual ASPOSE_SLIDES_API_LOCAL_API System::ArrayPtr< System::SharedPtr< ISlide > > Aspose::Slides::ISlideCollection::AddFromPdf ( System::String  path)
pure virtual

Creates slides from the PDF document and adds them to the end of the collection.

Parameters
pathA path to the PDF document
Returns
Added slides

Example:

auto pres = MakeObject<Presentation>();
pres->get_Slides()->AddFromPdf(u"document.pdf");
pres->Save(u"fromPdfDocument.pptx", SaveFormat::Pptx);


Implemented in Aspose::Slides::SlideCollection.

◆ idx_get()

virtual ASPOSE_SLIDES_API_LOCAL_API System::SharedPtr< ISlide > Aspose::Slides::ISlideCollection::idx_get ( int32_t  index)
pure virtual

Gets the element at the specified index. Read-only ISlide.

Implemented in Aspose::Slides::SlideCollection.

◆ IndexOf()

virtual ASPOSE_SLIDES_API_LOCAL_API int32_t Aspose::Slides::ISlideCollection::IndexOf ( System::SharedPtr< ISlide slide)
pure virtual

Returns an index of the specified slide in the collection.

Parameters
slideSlide to find.
Returns
Index of a slide or -1 if slide not from this collection.

Implemented in Aspose::Slides::SlideCollection.

◆ InsertClone() [1/3]

virtual ASPOSE_SLIDES_API_LOCAL_API System::SharedPtr< ISlide > Aspose::Slides::ISlideCollection::InsertClone ( int32_t  index,
System::SharedPtr< ISlide sourceSlide 
)
pure virtual

Inserts a copy of a specified slide to specified position of the collection.

Parameters
indexIndex of new slide.
sourceSlideSlide to clone.

When cloning a slide between different presentations slide's master can be cloned too. Internal registry is used to track automatically cloned masters to prevent creation of multiple clones of the same master slide. Manual cloning of master slides will be neither prevented nor registered. If you need more control over cloning process use InsertClone(int32_t, SharedPtr<ISlide>, SharedPtr<ILayoutSlide>) or InsertClone(int32_t, SharedPtr<ISlide>, SharedPtr<IMasterSlide>, bool) for cloning slides and IMasterSlideCollection::AddClone(SharedPtr<IMasterSlide>) for cloning masters.

Returns
Inserted slide.

Implemented in Aspose::Slides::SlideCollection.

◆ InsertClone() [2/3]

virtual ASPOSE_SLIDES_API_LOCAL_API System::SharedPtr< ISlide > Aspose::Slides::ISlideCollection::InsertClone ( int32_t  index,
System::SharedPtr< ISlide sourceSlide,
System::SharedPtr< ILayoutSlide destLayout 
)
pure virtual

Inserts a copy of a specified slide to specified position of the collection.

Parameters
indexIndex of new slide.
sourceSlideSlide to clone.
destLayoutLayout slide for a new slide.
Returns
Inserted slide.

Implemented in Aspose::Slides::SlideCollection.

◆ InsertClone() [3/3]

virtual ASPOSE_SLIDES_API_LOCAL_API System::SharedPtr< ISlide > Aspose::Slides::ISlideCollection::InsertClone ( int32_t  index,
System::SharedPtr< ISlide sourceSlide,
System::SharedPtr< IMasterSlide destMaster,
bool  allowCloneMissingLayout 
)
pure virtual

Inserts 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).

Parameters
indexIndex of new slide.
sourceSlideSlide to clone.
destMasterMaster slide for a new slide.
allowCloneMissingLayoutIf there is no appropriate layout in specified master then layout of the source slide will be cloned (if allowCloneMissingLayout is true) or PptxEditException will be thrown (if allowCloneMissingLayout is false).
Exceptions
Aspose::Slides::PptxEditExceptionThrown if there is no appropriate layout in specified master and allowCloneMissingLayout is false.
Returns
Inserted slide.

Implemented in Aspose::Slides::SlideCollection.

◆ InsertEmptySlide()

virtual ASPOSE_SLIDES_API_LOCAL_API System::SharedPtr< ISlide > Aspose::Slides::ISlideCollection::InsertEmptySlide ( int32_t  index,
System::SharedPtr< ILayoutSlide layout 
)
pure virtual

Inserts a copy of a specified slide to specified position of the collection.

Parameters
indexIndex of a new slide.
layoutLayout for a slide.
Returns
Inserted slide.

Implemented in Aspose::Slides::SlideCollection.

◆ InsertFromHtml() [1/6]

virtual ASPOSE_SLIDES_API_LOCAL_API System::ArrayPtr< System::SharedPtr< ISlide > > Aspose::Slides::ISlideCollection::InsertFromHtml ( int32_t  index,
System::SharedPtr< System::IO::Stream htmlStream 
)
pure virtual

Creates slides from HTML text and inserts them to the collection at the specified position.

Parameters
indexPosition to insert.
htmlStreamA Stream object which will be used as a source of a HTML file.
Returns
Added slides

Implemented in Aspose::Slides::SlideCollection.

◆ InsertFromHtml() [2/6]

virtual ASPOSE_SLIDES_API_LOCAL_API System::ArrayPtr< System::SharedPtr< ISlide > > Aspose::Slides::ISlideCollection::InsertFromHtml ( int32_t  index,
System::SharedPtr< System::IO::Stream htmlStream,
System::SharedPtr< Import::IExternalResourceResolver resolver,
System::String  uri 
)
pure virtual

Creates slides from HTML text and inserts them to the collection at the specified position.

Parameters
indexPosition to insert.
htmlStreamA Stream object which will be used as a source of a HTML file.
resolverA callback object used to fetch external objects. If this parameter is null all external objects will be ignored.
uriAn URI of the specified HTML. Used to resolve relative links.
Returns
Added slides.

Implemented in Aspose::Slides::SlideCollection.

◆ InsertFromHtml() [3/6]

virtual ASPOSE_SLIDES_API_LOCAL_API System::ArrayPtr< System::SharedPtr< ISlide > > Aspose::Slides::ISlideCollection::InsertFromHtml ( int32_t  index,
System::SharedPtr< System::IO::TextReader htmlReader 
)
pure virtual

Creates slides from HTML text and inserts them to the collection at the specified position.

Parameters
indexPosition to insert.
htmlReaderTextReader object which will be used as a source of a HTML file.
Returns
Added slides

Implemented in Aspose::Slides::SlideCollection.

◆ InsertFromHtml() [4/6]

virtual ASPOSE_SLIDES_API_LOCAL_API System::ArrayPtr< System::SharedPtr< ISlide > > Aspose::Slides::ISlideCollection::InsertFromHtml ( int32_t  index,
System::SharedPtr< System::IO::TextReader htmlReader,
System::SharedPtr< Import::IExternalResourceResolver resolver,
System::String  uri 
)
pure virtual

Creates slides from HTML text and inserts them to the collection at the specified position.

Parameters
indexPosition to insert.
htmlReaderTextReader object which will be used as a source of a HTML file.
resolverA callback object used to fetch external objects. If this parameter is null all external objects will be ignored.
uriAn URI of the specified HTML. Used to resolve relative links.
Returns
Added slides.

Implemented in Aspose::Slides::SlideCollection.

◆ InsertFromHtml() [5/6]

virtual ASPOSE_SLIDES_API_LOCAL_API System::ArrayPtr< System::SharedPtr< ISlide > > Aspose::Slides::ISlideCollection::InsertFromHtml ( int32_t  index,
System::String  htmlText 
)
pure virtual

Creates slides from HTML text and inserts them to the collection at the specified position.

Parameters
indexPosition to insert.
htmlTextHtml to add.
Returns
Added slides

Implemented in Aspose::Slides::SlideCollection.

◆ InsertFromHtml() [6/6]

virtual ASPOSE_SLIDES_API_LOCAL_API System::ArrayPtr< System::SharedPtr< ISlide > > Aspose::Slides::ISlideCollection::InsertFromHtml ( int32_t  index,
System::String  htmlText,
System::SharedPtr< Import::IExternalResourceResolver resolver,
System::String  uri 
)
pure virtual

Creates slides from HTML text and inserts them to the collection at the specified position.

Parameters
indexPosition to insert.
htmlTextHtml to add.
resolverA callback object used to fetch external objects. If this parameter is null all external objects will be ignored.
uriAn URI of the specified HTML. Used to resolve relative links.
Returns
Added slides.

Implemented in Aspose::Slides::SlideCollection.

◆ Remove()

virtual ASPOSE_SLIDES_API_LOCAL_API void Aspose::Slides::ISlideCollection::Remove ( System::SharedPtr< ISlide value)
pure virtual

Removes the first occurrence of a specific object from the collection.

Parameters
valueThe slide to remove from the collection.

Implemented in Aspose::Slides::SlideCollection.

◆ RemoveAt()

virtual ASPOSE_SLIDES_API_LOCAL_API void Aspose::Slides::ISlideCollection::RemoveAt ( int32_t  index)
pure virtual

Removes the element at the specified index of the collection.

Parameters
indexThe zero-based index of the element to remove.
Exceptions
System::ArgumentOutOfRangeException

Implemented in Aspose::Slides::SlideCollection.

◆ Reorder() [1/2]

virtual ASPOSE_SLIDES_API_LOCAL_API void Aspose::Slides::ISlideCollection::Reorder ( int32_t  index,
const System::ArrayPtr< System::SharedPtr< ISlide > > &  slides 
)
pure virtual

Moves slides from the collection to the specified position. Slides will be placed starting from index in order they appear in list.

Parameters
indexTarget index.
slidesSlides to move.

Implemented in Aspose::Slides::SlideCollection.

◆ Reorder() [2/2]

virtual ASPOSE_SLIDES_API_LOCAL_API void Aspose::Slides::ISlideCollection::Reorder ( int32_t  index,
System::SharedPtr< ISlide slide 
)
pure virtual

Moves slide from the collection to the specified position.

Parameters
indexTarget index.
slideSlide to move.

Implemented in Aspose::Slides::SlideCollection.

◆ ToArray() [1/2]

virtual ASPOSE_SLIDES_API_LOCAL_API System::ArrayPtr< System::SharedPtr< ISlide > > Aspose::Slides::ISlideCollection::ToArray ( )
pure virtual

Creates and returns an array with all slides in it.

Returns
Array of ISlide

Implemented in Aspose::Slides::SlideCollection.

◆ ToArray() [2/2]

virtual ASPOSE_SLIDES_API_LOCAL_API System::ArrayPtr< System::SharedPtr< ISlide > > Aspose::Slides::ISlideCollection::ToArray ( int32_t  startIndex,
int32_t  count 
)
pure virtual

Creates and returns an array with all slides from the specified range in it.

Parameters
startIndexAn index of a first slide to add.
countA number of slides to add.
Returns
Array of ISlide

Implemented in Aspose::Slides::SlideCollection.