CommentCollection

CommentCollection class

Encapsulates a collection of Comment objects.

Properties

NameTypeDescription
Countint
Item (int)CommentGets the Comment element at the specified index.
Item (java.lang.String)CommentGets the Comment element at the specified cell.
Item (int, int)CommentGets the Comment element at the specified row index and column index.

Methods

NameDescription
addThreadedCommentAdds a threaded comment.
getThreadedCommentsGets the threaded comments by row and column index.
addAdds a comment to the collection.
removeAtRemoves the comment of the specific cell.
clearRemoves all comments;
iterator
getReserved for internal use.
containsReserved for internal use.
indexOfReserved for internal use.

CommentCollection.Count property

Type: int

CommentCollection.Item (int) property

Gets the Comment element at the specified index.

Type: Comment

CommentCollection.Item (java.lang.String) property

Gets the Comment element at the specified cell.

Type: Comment

CommentCollection.Item (int, int) property

Gets the Comment element at the specified row index and column index.

Type: Comment

addThreadedComment(row, column, text, author) (1 of 2)

Adds a threaded comment.

ParameterTypeDescription
rowintCell row index.
columnintCell column index.
textStringThe text of the comment
authorThreadedCommentAuthorThe user of this threaded comment.

Returns: ThreadedComment object index.


addThreadedComment(cellName, text, author) (2 of 2)

Adds a threaded comment.

ParameterTypeDescription
cellNameStringThe name of the cell.
textStringThe text of the comment
authorThreadedCommentAuthorThe user of this threaded comment.

Returns: ThreadedComment object index.

getThreadedComments(row, column) (1 of 2)

Gets the threaded comments by row and column index.

ParameterTypeDescription
rowintThe row index.
columnintThe column index.

getThreadedComments(cellName) (2 of 2)

Gets the threaded comments by cell name.

ParameterTypeDescription
cellNameStringThe name of the cell.

add(row, column) (1 of 3)

Adds a comment to the collection.

ParameterTypeDescription
rowintCell row index.
columnintCell column index.

Returns: Comment object index.


add(cellName) (2 of 3)

Adds a comment to the collection.

ParameterTypeDescription
cellNameStringCell name.

Returns: Comment object index.


add(value) (3 of 3)

Reserved for internal use.

removeAt(cellName) (1 of 3)

Removes the comment of the specific cell.

ParameterTypeDescription
cellNameStringThe name of cell which contains a comment.

removeAt(row, column) (2 of 3)

Removes the comment of the specific cell.

ParameterTypeDescription
rowintThe row index.
columnintthe column index.

removeAt(index) (3 of 3)

clear()

Removes all comments;

iterator()

get(index)

Reserved for internal use.

contains(value)

Reserved for internal use.

indexOf(value)

Reserved for internal use.