![]() |
||
Home Products Purchase Downloads Demos Forums Blogs Ticket Wiki API Corporate |
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.aspose.cells.Row
public class Row
Represents a row of a spreadsheet.
Method Summary | |
---|---|
void |
applyStyle(Style style,
StyleFlag flag)
Applies formattings for a whole row. |
Cell |
checkCell(int columnIndex)
Given a column index, checks if the cell has been defined. |
int |
compareTo(int indexTo)
Compares this Row with another one that has given row index for order. |
int |
compareTo(Row rowTo)
Compares this Row with another one for order. |
Cell |
getCell(int columnIndex)
Gets the cell at the specified column index. |
java.util.Iterator<Cell> |
getCellIterator()
Returns an iterator which can iterate all defined cells in this row. |
short |
getFirstCellIndex()
Gets the index of the first defined cell. |
float |
getHeight()
Gets the height of the row in points. |
int |
getKey()
Gets the comparable key of this Row. |
short |
getLastCellIndex()
Gets the index of the last defined cell. |
Style |
getRefStyle()
Gets the style setting for the column. |
int |
getRowIndex()
Gets the row index. |
Style |
getStyle()
Gets the style of the row. |
boolean |
isAutoFitHeight()
Indicates whether row's height is auto-fit. |
boolean |
isHidden()
Checks if the row is hidden. |
boolean |
isUsingDefaultHeight()
Indicates whether row has default row height. |
void |
removeCell(int columnIndex)
Removes the cell at the specified column index. |
void |
setAutoFitHeight(boolean isAutoFitHeight)
Sets whether row's height is auto-fit. |
void |
setDefaultHeight()
Invalidate the row height setting. |
void |
setHeight(float height)
Sets the row height, in points. |
void |
setHidden(boolean isHidden)
Sets whether the row to be hidden or not. |
void |
setKey(int key)
Sets the comparable key of this Row. |
void |
setStyle(int startColumn,
int endColumn,
Style style)
Sets style for a continuous range of cells of the row. |
void |
setStyle(Style style)
Sets the style of the row. |
void |
setUseDefaultHeight(boolean isUsingDefaultHeight)
Sets whether row has default row height . |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public int getRowIndex()
CellsException
- if the row has been removed from the worksheet.public Cell getCell(int columnIndex)
columnIndex
- the column index.
CellsException
- if the row has been removed from the worksheet.public Cell checkCell(int columnIndex)
columnIndex
- the column index.
CellsException
- if the row has been removed from the worksheet.public void removeCell(int columnIndex)
columnIndex
- the column index
CellsException
- if the row has been removed from the worksheet.public Style getRefStyle()
CellsException
- if the worksheet has been removed from the workbook.public Style getStyle()
CellsException
- if the row has been removed from the worksheet.public void setStyle(Style style)
style
- style of the row.public void applyStyle(Style style, StyleFlag flag)
style
- The style object which will be applied.flag
- Flags which indicates applied formatting properties.public float getHeight()
public void setHeight(float height)
height
- height of the row, in points(0-409).
java.lang.IllegalArgumentException
- if the row height is invalid.public void setDefaultHeight()
public boolean isHidden()
public void setHidden(boolean isHidden)
isHidden
- true for hidden.public short getFirstCellIndex()
public short getLastCellIndex()
public java.util.Iterator<Cell> getCellIterator()
CellsException
- if the row has been removed from the worksheet.public void setStyle(int startColumn, int endColumn, Style style)
startColumn
- start column index.endColumn
- end column index.style
- the style to set.
java.lang.IllegalArgumentException
- if any of the column indexes is out of range.
CellsException
- if the row has been removed from the worksheet.public boolean isUsingDefaultHeight()
public void setUseDefaultHeight(boolean isUsingDefaultHeight)
isUsingDefaultHeight
- whether row has default row height.public boolean isAutoFitHeight()
public void setAutoFitHeight(boolean isAutoFitHeight)
isAutoFitHeight
- whether row's height is auto-fit.public int compareTo(int indexTo)
indexTo
- the row index to be compared with the row index of this Row.
public int compareTo(Row rowTo)
rowTo
- the Row to be compared with this one.
public int getKey()
getRowIndex()
.
public void setKey(int key)
key
- key value.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |