Aspose::Slides::ISlideCollection Class Referenceabstract

More...

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

Inherited by Aspose::Slides::SlideCollection.

Public Member Functions

virtual System::SharedPtr< ISlideidx_get (int32_t index)=0
 Gets the element at the specified index. Read-only ISlide. More...
 
virtual System::SharedPtr< ISlideAddClone (System::SharedPtr< ISlide > sourceSlide)=0
 Adds a copy of a specified slide to the end of the collection. More...
 
virtual 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 System::SharedPtr< ISlideAddEmptySlide (System::SharedPtr< ILayoutSlide > layout)=0
 Adds a new empty slide to the end of the collection. More...
 
virtual 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 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 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 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 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 void Remove (System::SharedPtr< ISlide > value)=0
 Removes the first occurrence of a specific object from the collection. More...
 
virtual void RemoveAt (int32_t index)=0
 Removes the element at the specified index of the collection. More...
 
virtual System::ArrayPtr< System::SharedPtr< ISlide > > ToArray ()=0
 Creates and returns an array with all slides in it. More...
 
virtual 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.

Parameters
startIndexAn index of a first slide to add.
countA number of slides to add.
More...
 
virtual void Reorder (int32_t index, System::SharedPtr< ISlide > slide)=0
 Moves slide from the collection to the specified position. More...
 
virtual 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 int32_t IndexOf (System::SharedPtr< ISlide > slide)=0
 Returns an index of the specified slide in the collection. More...
 
virtual 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 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 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 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 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 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 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 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 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 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 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 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 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
 
- 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 refernce 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 int GetHashCode () const
 Analog of C# Object.GetHashCode() method. Enables hashing of custom objects. More...
 
virtual String ToString () ASPOSE_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 (unsigned int argument)
 Set n'th template argument a weak pointer (rather than shared). Allows switching pointers in containers to weak mode. More...
 
template<>
bool Equals (float const &objA, float const &objB)
 
template<>
bool Equals (double const &objA, double const &objB)
 
template<>
bool ReferenceEquals (String const &str, std::nullptr_t)
 
template<>
bool ReferenceEquals (String const &str1, String const &str2)
 

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...
 
- Public Types inherited from System::Object
typedef SmartPtr< Objectptr
 Alias for smart pointer type. More...
 
typedef System::Details::SharedMembersType shared_members_type
 structure to keep list of shared pointers contained in object. 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 ()
 Impleemnts C# typeof(System.Object) construct. More...
 

Detailed Description

Member Function Documentation

◆ AddClone() [1/3]

virtual 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(ISlide, ILayoutSlide) or AddClone(ISlide, IMasterSlide, bool) for cloning slides, IGlobalLayoutSlideCollection::AddClone(ILayoutSlide) or IGlobalLayoutSlideCollection::AddClone(ILayoutSlide, IMasterSlide) for cloning layouts and IMasterSlideCollection::AddClone(IMasterSlide) for cloning masters.

Implemented in Aspose::Slides::SlideCollection.

◆ AddClone() [2/3]

virtual 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/3]

virtual 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
PptxEditExceptionThrown if there is no appropriate layout in specified master and allowCloneMissingLayout is false.
Returns
New slide.

Implemented in Aspose::Slides::SlideCollection.

◆ AddEmptySlide()

virtual 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 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.

◆ AddFromHtml() [2/6]

virtual 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() [3/6]

virtual 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() [4/6]

virtual 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() [5/6]

virtual 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() [6/6]

virtual 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.

◆ idx_get()

virtual 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 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 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(int, ISlide, ILayoutSlide) or InsertClone(int, ISlide, IMasterSlide, bool) for cloning slides and IMasterSlideCollection::AddClone(IMasterSlide) for cloning masters.

Returns
Inserted slide.

Implemented in Aspose::Slides::SlideCollection.

◆ InsertClone() [2/3]

virtual 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 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
PptxEditExceptionThrown if there is no appropriate layout in specified master and allowCloneMissingLayout is false.
Returns
Inserted slide.

Implemented in Aspose::Slides::SlideCollection.

◆ InsertEmptySlide()

virtual 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 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.

◆ InsertFromHtml() [2/6]

virtual 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() [3/6]

virtual 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() [4/6]

virtual 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() [5/6]

virtual 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() [6/6]

virtual 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.

◆ Remove()

virtual 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 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.

Not implemented yet.

Implemented in Aspose::Slides::SlideCollection.

◆ Reorder() [1/2]

virtual 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.

◆ Reorder() [2/2]

virtual 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.

◆ ToArray() [1/2]

virtual 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 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.