|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.aspose.slides.SlidesEx
com.aspose.slides.SlideExCollection
public final class SlideExCollection
Represents a collection of a slides.
Method Summary | |
---|---|
int |
addClone(SlideEx slide)
Adds a copy of a specified slide to the end of the collection. |
int |
addClone(SlideEx slide,
LayoutSlideEx layout)
Adds a copy of a specified slide to the end of the collection. |
int |
addClone(SlideEx slide,
MasterSlideEx master)
Adds a copy of a specified slide to the end of the collection. |
int |
addEmptySlide(LayoutSlideEx layout)
Adds a new empty slide to the end of the collection. |
SlideEx[] |
addFromHtml(java.io.InputStream htmlStream)
|
SlideEx[] |
addFromHtml(java.io.InputStream htmlStream,
HtmlExternalResolver resolver,
java.lang.String uri)
|
SlideEx[] |
addFromHtml(java.lang.String htmlText)
Creates slides from HTML text and adds them to the end of the collection. |
SlideEx[] |
addFromHtml(java.lang.String htmlText,
HtmlExternalResolver resolver,
java.lang.String uri)
Creates slides from HTML text and adds them to the end of the collection. |
SlideEx[] |
addFromHtml(com.aspose.ms.System.IO.TextReader htmlReader)
Creates slides from HTML text and adds them to the end of the collection. |
SlideEx[] |
addFromHtml(com.aspose.ms.System.IO.TextReader htmlReader,
HtmlExternalResolver resolver,
java.lang.String uri)
Creates slides from HTML text and adds them to the end of the collection. |
void |
copyTo(com.aspose.ms.System.Array array,
int index)
Copies all elements from the collection to the specified array. |
SlideEx |
get_Item(int index)
Gets the element at the specified index. |
int |
getCount()
Gets the number of elements actually contained in the collection. |
java.lang.Object |
getSyncRoot()
Returns a synchronization root. |
int |
indexOf(SlideEx slide)
Returns an index of the specified slide in the collection. |
void |
insertClone(int index,
SlideEx slide)
Inserts a copy of a specified slide to specified position of the collection. |
void |
insertClone(int index,
SlideEx slide,
LayoutSlideEx layout)
Inserts a copy of a specified slide to specified position of the collection. |
void |
insertClone(int index,
SlideEx slide,
MasterSlideEx master)
Inserts a copy of a specified slide to specified position of the collection. |
void |
insertEmptySlide(int index,
LayoutSlideEx layout)
Inserts a copy of a specified slide to specified position of the collection. |
SlideEx[] |
insertFromHtml(int index,
java.io.InputStream htmlStream)
|
SlideEx[] |
insertFromHtml(int index,
java.io.InputStream htmlStream,
HtmlExternalResolver resolver,
java.lang.String uri)
|
SlideEx[] |
insertFromHtml(int index,
java.lang.String htmlText)
Creates slides from HTML text and inserts them to the collection at the specified position. |
SlideEx[] |
insertFromHtml(int index,
java.lang.String htmlText,
HtmlExternalResolver resolver,
java.lang.String uri)
Creates slides from HTML text and inserts them to the collection at the specified position. |
SlideEx[] |
insertFromHtml(int index,
com.aspose.ms.System.IO.TextReader htmlReader)
Creates slides from HTML text and inserts them to the collection at the specified position. |
SlideEx[] |
insertFromHtml(int index,
com.aspose.ms.System.IO.TextReader htmlReader,
HtmlExternalResolver resolver,
java.lang.String uri)
Creates slides from HTML text and inserts them to the collection at the specified position. |
boolean |
isSynchronized()
Returns a value indicating whether access to the collection is synchronized (thread-safe). |
com.aspose.ms.System.Collections.IEnumerator<SlideEx> |
iterator()
Returns an enumerator for the entire collection. |
void |
remove(SlideEx value)
Removes the first occurrence of a specific object from the collection. |
void |
removeAt(int index)
Removes the element at the specified index of the collection. |
void |
reorder(int index,
SlideEx... slides)
Moves slides from the collection to the specified position. |
void |
reorder(int index,
SlideEx slide)
Moves slide from the collection to the specified position. |
int |
size()
|
SlideEx[] |
toArray()
Creates and returns an array with all slides in it. |
SlideEx[] |
toArray(int startIndex,
int count)
Creates and returns an array with all slides from the specified range in it. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public SlideEx[] addFromHtml(java.lang.String htmlText, HtmlExternalResolver resolver, java.lang.String uri)
Creates slides from HTML text and adds them to the end of the collection.
htmlText
- Html to add.resolver
- A callback object used to fetch external objects. If this parameter is null all external objects will be ignored.uri
- An URI of the specified HTML. Used to resolve relative links.
public SlideEx[] addFromHtml(java.lang.String htmlText)
Creates slides from HTML text and adds them to the end of the collection.
htmlText
- Html to add.
public SlideEx[] addFromHtml(com.aspose.ms.System.IO.TextReader htmlReader, HtmlExternalResolver resolver, java.lang.String uri)
Creates slides from HTML text and adds them to the end of the collection.
htmlReader
- TextReader object which will be used as a source of a HTML file.resolver
- A callback object used to fetch external objects. If this parameter is null all external objects will be ignored.uri
- An URI of the specified HTML. Used to resolve relative links.
public SlideEx[] addFromHtml(com.aspose.ms.System.IO.TextReader htmlReader)
Creates slides from HTML text and adds them to the end of the collection.
htmlReader
- TextReader object which will be used as a source of a HTML file.
public SlideEx[] addFromHtml(java.io.InputStream htmlStream, HtmlExternalResolver resolver, java.lang.String uri)
public SlideEx[] addFromHtml(java.io.InputStream htmlStream)
public SlideEx[] insertFromHtml(int index, java.lang.String htmlText, HtmlExternalResolver resolver, java.lang.String uri)
Creates slides from HTML text and inserts them to the collection at the specified position.
index
- Position to insert.htmlText
- Html to add.resolver
- A callback object used to fetch external objects. If this parameter is null all external objects will be ignored.uri
- An URI of the specified HTML. Used to resolve relative links.
public SlideEx[] insertFromHtml(int index, java.lang.String htmlText)
Creates slides from HTML text and inserts them to the collection at the specified position.
index
- Position to insert.htmlText
- Html to add.
public SlideEx[] insertFromHtml(int index, com.aspose.ms.System.IO.TextReader htmlReader, HtmlExternalResolver resolver, java.lang.String uri)
Creates slides from HTML text and inserts them to the collection at the specified position.
index
- Position to insert.htmlReader
- TextReader object which will be used as a source of a HTML file.resolver
- A callback object used to fetch external objects. If this parameter is null all external objects will be ignored.uri
- An URI of the specified HTML. Used to resolve relative links.
public SlideEx[] insertFromHtml(int index, com.aspose.ms.System.IO.TextReader htmlReader)
Creates slides from HTML text and inserts them to the collection at the specified position.
index
- Position to insert.htmlReader
- TextReader object which will be used as a source of a HTML file.
public SlideEx[] insertFromHtml(int index, java.io.InputStream htmlStream, HtmlExternalResolver resolver, java.lang.String uri)
public SlideEx[] insertFromHtml(int index, java.io.InputStream htmlStream)
public void copyTo(com.aspose.ms.System.Array array, int index)
Copies all elements from the collection to the specified array.
copyTo
in interface com.aspose.ms.System.Collections.ICollection<SlideEx>
array
- Target array.index
- Starting index in the target array.public boolean isSynchronized()
Returns a value indicating whether access to the collection is synchronized (thread-safe).
isSynchronized
in interface com.aspose.ms.System.Collections.ICollection<SlideEx>
public java.lang.Object getSyncRoot()
Returns a synchronization root.
Readonly object
.
getSyncRoot
in interface com.aspose.ms.System.Collections.ICollection<SlideEx>
public int size()
size
in interface com.aspose.ms.System.Collections.ICollection<SlideEx>
public int getCount()
SlidesEx
Gets the number of elements actually contained in the collection.
getCount
in class SlidesEx
public SlideEx get_Item(int index)
SlidesEx
Gets the element at the specified index.
Read-only SlideEx
.
get_Item
in class SlidesEx
public int addClone(SlideEx slide)
SlidesEx
Adds a copy of a specified slide to the end of the collection.
addClone
in class SlidesEx
slide
- Slide to clone.
AddClone(SlideEx, LayoutSlideEx)
or
AddClone(SlideEx, MasterSlideEx)
for clonning slides and
MasterSlidesEx.AddClone(MasterSlideEx)
for clonning masters.
public void insertClone(int index, SlideEx slide)
SlidesEx
Inserts a copy of a specified slide to specified position of the collection.
insertClone
in class SlidesEx
index
- Index of new slide.slide
- Slide to clone.
InsertClone(int, SlideEx, LayoutSlideEx)
or
InsertClone(int, SlideEx, MasterSlideEx)
for clonning slides and
MasterSlidesEx.AddClone(MasterSlideEx)
for clonning masters.
public int addEmptySlide(LayoutSlideEx layout)
SlidesEx
Adds a new empty slide to the end of the collection.
addEmptySlide
in class SlidesEx
layout
- Layout for a slide.
public void insertEmptySlide(int index, LayoutSlideEx layout)
SlidesEx
Inserts a copy of a specified slide to specified position of the collection.
insertEmptySlide
in class SlidesEx
index
- Index of a new slide.layout
- Layout for a slide.public int addClone(SlideEx slide, LayoutSlideEx layout)
SlidesEx
Adds a copy of a specified slide to the end of the collection.
addClone
in class SlidesEx
slide
- Slide to clone.layout
- Layout slide for a new slide.
public void insertClone(int index, SlideEx slide, LayoutSlideEx layout)
SlidesEx
Inserts a copy of a specified slide to specified position of the collection.
insertClone
in class SlidesEx
index
- Index of new slide.slide
- Slide to clone.layout
- Layout slide for a new slide.public int addClone(SlideEx slide, MasterSlideEx master)
SlidesEx
Adds a copy of a specified slide to the end of the collection. Layout will be selected automatically from the specified master.
addClone
in class SlidesEx
slide
- Slide to clone.master
- Master slide for a new slide.
public void insertClone(int index, SlideEx slide, MasterSlideEx master)
SlidesEx
Inserts a copy of a specified slide to specified position of the collection. Layout will be selected automatically from the specified master.
insertClone
in class SlidesEx
index
- Index of new slide.slide
- Slide to clone.master
- Master slide for a new slide.public void remove(SlideEx value)
SlidesEx
Removes the first occurrence of a specific object from the collection.
remove
in class SlidesEx
value
- The slide to remove from the collection.public void removeAt(int index)
SlidesEx
Removes the element at the specified index of the collection.
removeAt
in class SlidesEx
index
- The zero-based index of the element to remove.
public com.aspose.ms.System.Collections.IEnumerator<SlideEx> iterator()
SlidesEx
Returns an enumerator for the entire collection.
iterator
in interface com.aspose.ms.System.Collections.IEnumerable<SlideEx>
iterator
in interface java.lang.Iterable<SlideEx>
iterator
in class SlidesEx
IEnumerator
for the entire collection.public SlideEx[] toArray()
SlidesEx
Creates and returns an array with all slides in it.
toArray
in class SlidesEx
SlideEx
public SlideEx[] toArray(int startIndex, int count)
SlidesEx
Creates and returns an array with all slides from the specified range in it.
toArray
in class SlidesEx
startIndex
- An index of a first slide to add.count
- A number of slides to add.
SlideEx
public void reorder(int index, SlideEx slide)
SlidesEx
Moves slide from the collection to the specified position.
reorder
in class SlidesEx
index
- Target index.slide
- Slide to move.public void reorder(int index, SlideEx... slides)
SlidesEx
Moves slides from the collection to the specified position. Slides will be placed starting from index in order they appear in list.
reorder
in class SlidesEx
index
- Target index.slides
- Slides to move.public int indexOf(SlideEx slide)
SlidesEx
Returns an index of the specified slide in the collection.
indexOf
in class SlidesEx
slide
- Slide to find.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |