commentscollection-ag凯发旗舰厅
com.spire.xls.collections
class commentscollection
java.lang.object
com.spire.ms.system.collections.collectionbase
com.spire.xls.core.spreadsheet.collections.xlscommentscollection
com.spire.xls.collections.commentscollection
- all implemented interfaces:
- com.spire.ms.system.collections.icollection, com.spire.ms.system.collections.ienumerable, icomments, java.lang.iterable
public class commentscollection
- extends xlscommentscollection
commentscollection
public commentscollection(java.lang.object parent)
addcomment
public excelcomment addcomment(cellrange range)
- adds comment to the specified range.
- parameters:
range
- range that adds comment.
- returns:
- created comment object..
addcomment
public excelcomment addcomment(int rowindex,
int columnindex)
- adds comment to the specified row and column.
- overrides:
addcomment
in class xlscommentscollection
- parameters:
rowindex
- row index..columnindex
- column index.
- returns:
- created comment object.
remove
public void remove(excelcomment comment)
- removes comment object from the collection.
- parameters:
comment
- comment to remove.
get
public excelcomment get(int index)
- gets a comment object.
- specified by:
get
in interface icomments
- overrides:
get
in class xlscommentscollection
get
public excelcomment get(java.lang.string name)
- gets single item from the collection.
- overrides:
get
in class xlscommentscollection
- parameters:
name
- name of the item to get.
- returns:
- single item from the collection.
get
public excelcomment get(int row,
int column)
- gets a comment object.