Home  Products  Purchase  Downloads  Demos  Forums  Blogs  Ticket  Wiki  API  Corporate


com.aspose.cells
Class Comment

java.lang.Object
  extended by com.aspose.cells.Shape
      extended by com.aspose.cells.Comment

public class Comment
extends Shape

Encapsulates the object that represents a cell comment.


Method Summary
 int getColumn()
          Gets the column index of the comment.
 java.lang.String getNote()
          Gets the content of comment.
 int getRow()
          Gets the row index of the comment.
 boolean isVisible()
          Indicates whether the comment is visible or not.
 void setCell(int row, int column)
          Sets the row and column index of the comment.
 void setColumn(int column)
          Sets the column index of the comment.
 void setNote(java.lang.String note)
          Sets the content of comment.
 void setRow(int row)
          Sets the row index of the comment.
 void setVisible(boolean isVisible)
          Sets whether the comment is visible or not.
 
Methods inherited from class com.aspose.cells.Shape
addHyperlink, getCharacters, getFill, getFont, getGroup, getHeight, getHeightCM, getHeightInch, getHeightInChart, getHyperlink, getLeft, getLeftCM, getLeftInch, getLeftInChart, getLine, getLinkedCell, getLowerRightColumn, getLowerRightRow, getName, getOrientation, getPlacement, getRotation, getText, getTextHorizontalAlignment, getTextVerticalAlignment, getTop, getTopCM, getTopInch, getTopInChart, getType, getUpperLeftColumn, getUpperLeftRow, getWidth, getWidthCM, getWidthInch, getWidthInChart, getZOrderPosition, hasLine, isFilled, isFlippedHorizontally, isFlippedVertically, isLockAspectRatio, isLocked, isPrintable, move, move, moveToCenter, setCharacters, setFilled, setFlippedHorizontally, setFlippedVertically, setFont, setHasLine, setHeight, setHeightCM, setHeightInch, setHeightInChart, setLeft, setLeftCM, setLeftInch, setLeftInChart, setLeftPosition, setLeftPositionInPixel, setLinkedCell, setLockAspectRatio, setLocked, setName, setOrientation, setPlacement, setPrintable, setRotation, setText, setTextHorizontalAlignment, setTextVerticalAlignment, setTop, setTopCM, setTopInch, setTopInChart, setTopPosition, setTopPositionInPixel, setUpperLeftColumn, setUpperLeftRow, setWidth, setWidthCM, setWidthInch, setWidthInChart
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getRow

public int getRow()
Gets the row index of the comment.

Returns:
the row index of the comment.

setRow

public void setRow(int row)
Sets the row index of the comment.

Parameters:
row - the row index of the comment.
Throws:
CellsException - if Comments has been removed.

getColumn

public int getColumn()
Gets the column index of the comment.

Returns:
the column index of the comment.

setColumn

public void setColumn(int column)
Sets the column index of the comment.

Parameters:
column - the column index of the comment.
Throws:
CellsException - if Comments has been removed.

setCell

public void setCell(int row,
                    int column)
Sets the row and column index of the comment.

Parameters:
row - the row index of the comment.
column - the column index of the comment.
Throws:
CellsException - if Comments has been removed.

isVisible

public boolean isVisible()
Indicates whether the comment is visible or not.

Returns:
whether the comment is visible or not.

setVisible

public void setVisible(boolean isVisible)
Sets whether the comment is visible or not.

Parameters:
isVisible - whether the comment is visible or not.
Throws:
CellsException - if Comments has been removed.

getNote

public java.lang.String getNote()
Gets the content of comment.

Returns:
the content of comment.

setNote

public void setNote(java.lang.String note)
Sets the content of comment.

Parameters:
note - the content of comment.
Throws:
CellsException - if Comments has been removed.