commentscollection-ag凯发旗舰厅



com.spire.xls.collections
class commentscollection

java.lang.object
  extended by com.spire.ms.system.collections.collectionbase
      extended by 
          extended by com.spire.xls.core.spreadsheet.collections.xlscommentscollection
              extended by 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

constructor summary
commentscollection(java.lang.object parent)
           
 
method summary
 excelcomment addcomment(cellrange range)
          adds comment to the specified range.
 excelcomment addcomment(int rowindex, int columnindex)
          adds comment to the specified row and column.
 excelcomment get(int index)
          gets a comment object.
 excelcomment get(int row, int column)
          gets a comment object.
 excelcomment get(java.lang.string name)
          gets single item from the collection.
 void remove(excelcomment comment)
          removes comment object from the collection.
 
methods inherited from class com.spire.xls.core.spreadsheet.collections.xlscommentscollection
addcomment, getitem
 
methods inherited from interface com.spire.xls.core.icomments
getcount, getparent
 
constructor detail

commentscollection

public commentscollection(java.lang.object parent)
method detail

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.


网站地图