|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ICommentCollection
Represents a collection of comments of one author.
Method Summary | |
---|---|
IComment |
addComment(java.lang.String text,
ISlide slide,
java.awt.geom.Point2D.Float position,
java.util.Date creationTime)
Add new comment at the end of a collection. |
void |
clear()
Removes all comments from a collection. |
IComment |
get_Item(int index)
Gets the element at the specified index. |
IComment |
insertComment(int index,
java.lang.String text,
ISlide slide,
java.awt.geom.Point2D.Float position,
java.util.Date creationTime)
Insert new comment to a collection at the specified index. |
void |
remove(IComment comment)
Removes the first occurrence of the specified comment in a collection. |
void |
removeAt(int index)
Removes the element at the specified index in a collection. |
IComment[] |
toArray()
Creates and returns an array with all comments. |
IComment[] |
toArray(int startIndex,
int count)
Creates and returns an array with all comments from the specified range. |
Methods inherited from interface com.aspose.slides.IGenericCollection |
---|
copyTo, getSyncRoot, isSynchronized, size |
Methods inherited from interface com.aspose.ms.System.Collections.Generic.IGenericEnumerable |
---|
iterator |
Method Detail |
---|
IComment get_Item(int index)
Gets the element at the specified index.
Read-only IComment
.
IComment addComment(java.lang.String text, ISlide slide, java.awt.geom.Point2D.Float position, java.util.Date creationTime)
Add new comment at the end of a collection.
text
- Plain text of a new comment.slide
- Slide in a presentation where to add a new comment.position
- Position on a slide where to add a new comment.creationTime
- Time of a comment creation.
IComment insertComment(int index, java.lang.String text, ISlide slide, java.awt.geom.Point2D.Float position, java.util.Date creationTime)
Insert new comment to a collection at the specified index.
index
- Index of the element in a collection at which comment should be inserted.text
- Plain text of a new comment.slide
- Slide in a presentation where to add a new comment.position
- Position on a slide where to add a new comment.creationTime
- Time of a comment creation.
IComment[] toArray()
Creates and returns an array with all comments.
CommentEx
.IComment[] toArray(int startIndex, int count)
Creates and returns an array with all comments from the specified range.
startIndex
- An index of a first comment to return.count
- A number of comments to return.
CommentEx
.void removeAt(int index)
Removes the element at the specified index in a collection.
index
- The zero-based index of the element to remove.
com.aspose.ms.System.ArgumentOutOfRangeException
- Index is less than 0 or index is equal or greater than Count.
PptxEditException
- Thrown if comment is already removed.void remove(IComment comment)
Removes the first occurrence of the specified comment in a collection.
comment
- The comment to remove from a collection.
com.aspose.ms.System.ArgumentNullException
- If comment is PptxEditException
- Thrown if comment is already removed.void clear()
Removes all comments from a collection.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |