com.aspose.cells
Class Row

java.lang.Object
    extended by com.aspose.cells.Row
All Implemented Interfaces:
java.lang.Iterable

public abstract class Row 
extends java.lang.Object

Represents a single row in a worksheet.

Property Getters/Setters Summary
abstract CellgetFirstCell()
           Gets the first cell in the row.
abstract bytegetGroupLevel()
           Gets the group level of the row.
abstract doublegetHeight()
abstract voidsetHeight(double value)
           Gets and sets the row height in unit of Points.
abstract intgetIndex()
           Gets the index of this row.
abstract booleanisBlank()
           Indicates whether the row contains any data
abstract booleanisHeightMatched()
abstract voidsetHeightMatched(boolean value)
           Indicates that row height and default font height matches
abstract booleanisHidden()
abstract voidsetHidden(boolean value)
           Indicates whether the row is hidden.
abstract CellgetLastCell()
           Gets the last cell in the row.
abstract CellgetLastDataCell()
           Gets the last cell in the row.
abstract StylegetStyle()
           Represents the style of this row.
abstract Cellget(int column)
           Gets the cell.
 
Method Summary
abstract voidapplyStyle(Style style, StyleFlag flag)
           Applies formats for a whole row.
abstract booleanequals(Row row)
           Checks whether this object refers to the same row with another row object.
abstract CellgetCellByIndex(int index)
           Get the cell by specific index in the list.
abstract CellgetCellOrNull(int column)
           Gets the cell or null in the specific index.
abstract java.util.Iteratoriterator()
           Gets the cells enumerator
 

Property Getters/Setters Detail

isBlank

public abstract boolean isBlank()
Indicates whether the row contains any data

getHeight/setHeight

public abstract double getHeight() / public abstract void setHeight(double value)
Gets and sets the row height in unit of Points.

isHidden/setHidden

public abstract boolean isHidden() / public abstract void setHidden(boolean value)
Indicates whether the row is hidden.

getIndex

public abstract int getIndex()
Gets the index of this row.

getGroupLevel

public abstract byte getGroupLevel()
Gets the group level of the row.

isHeightMatched/setHeightMatched

public abstract boolean isHeightMatched() / public abstract void setHeightMatched(boolean value)
Indicates that row height and default font height matches

getStyle

public abstract Style getStyle()
Represents the style of this row. You have to call Row.ApplyStyle() method to save your changing with the row style, otherwise it will not effect.

getFirstCell

public abstract Cell getFirstCell()
Gets the first cell in the row.

getLastCell

public abstract Cell getLastCell()
Gets the last cell in the row.

getLastDataCell

public abstract Cell getLastDataCell()
Gets the last cell in the row.

get

public abstract Cell get(int column)
Gets the cell.
Parameters:
column - The column index
Returns:

Method Detail

getCellByIndex

public abstract Cell getCellByIndex(int index)
Get the cell by specific index in the list. NOTE: This member is now obsolete. Instead, please use Row.GetEnumerator() method to iterate all cells in this row. This property will be removed 12 months later since February 2015. Aspose apologizes for any inconvenience you may have experienced.
Parameters:
index - The position.
Returns:
The Cell object.

iterator

public abstract java.util.Iterator iterator()
Gets the cells enumerator
Returns:
The cells enumerator

getCellOrNull

public abstract Cell getCellOrNull(int column)
Gets the cell or null in the specific index.
Parameters:
column - The column index
Returns:
Returns the cell object if the cell exists. Or returns null if the cell object does not exist.

applyStyle

public abstract void applyStyle(Style style, StyleFlag flag)
Applies formats for a whole row.
Parameters:
style - The style object which will be applied.
flag - Flags which indicates applied formatting properties.

equals

public abstract boolean equals(Row row)
Checks whether this object refers to the same row with another row object.
Parameters:
row - another row object
Returns:
true if two row objects refers to the same row.

See Also:
          Aspose.Cells Documentation - the home page for the Aspose.Cellss Product Documentation.
          Aspose.Cells Support Forum - our preferred method of support.