com.aspose.pdf.elements
Class Row

java.lang.Object
  extended by com.aspose.pdf.elements.PdfElementBase
      extended by com.aspose.pdf.elements.Row
All Implemented Interfaces:
java.lang.Cloneable

public class Row
extends PdfElementBase

Repserents a row in a Table.


Constructor Summary
Row(Table table)
          Initializes a new instance of the Row class in a table.
 
Method Summary
 Color getBackGroundColor()
          Gets a Color object that indicatres the backgorund color of the row.
 BorderInfo getBorder()
          Gets a BorderInfo object that indicates the row border info.
 Cells getCells()
          Gets a Cells collection that indicates all cells in the row.
 int getCellsSize()
          Gets cells number in this row.
 TextInfo getDefaultCellTextInfo()
          Gets a TextInfo object that indicates the text format info of the row.
If you want to set text format for all cells that have already been added to the row,
please do not set it directly but follow the method in the example.
 org.w3c.dom.Element getDOMElement()
          Gets a DOM representation of the pdf element.
 float getFixedRowHeight()
          Gets a float value that indicates the fixed row height.
If the fixed row height is set too mall, it will be enlarged automatically.
 Table getParentTable()
          Gets the Row object's table.
 java.lang.String getVerticalAlignment()
          Gets a VerticalAlignmentType value that indicates the vertical alignment type.
 boolean isDisabled()
          Gets a bool value that indicates whether this row is disabled.
The default value is false.
 Row setBackGroundColor(Color color)
          Sets a Color object that indicatres the backgorund color of the row.
 void setBorder(BorderInfo info)
          Sets a BorderInfo object that indicates the row border info.
 void setDefaultCellTextInfo(TextInfo textInfo)
          Sets a TextInfo object that indicates the text format info of the row.
If you want to set text format for all cells that have already been added to the row,
please do not set it directly but follow the method in the example.
 void setFixedRowHeight(float fixedRowHeight)
          Sets a float value that indicates the fixed row height.
If the fixed row height is set too mall, it will be enlarged automatically.
 void setIsDisabled(boolean disabled)
          Sets a bool value that indicates whether this row is disabled.
The default value is false.
 void setVerticalAlignment(java.lang.String alignment)
          Sets a VerticalAlignmentType value that indicates the vertical alignment type.
 
Methods inherited from class com.aspose.pdf.elements.PdfElementBase
clone, getElementFactory, getID, getNameIndex, setID
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Row

public Row(Table table)
Initializes a new instance of the Row class in a table.

Method Detail

getBackGroundColor

public Color getBackGroundColor()
Gets a Color object that indicatres the backgorund color of the row.

Returns:
Returns the BackGroundColor.

setBackGroundColor

public Row setBackGroundColor(Color color)
Sets a Color object that indicatres the backgorund color of the row.

Parameters:
color - The BackGroundColor to set.

getVerticalAlignment

public java.lang.String getVerticalAlignment()
Gets a VerticalAlignmentType value that indicates the vertical alignment type.

Returns:
Returns the VerticalAlignment.

setVerticalAlignment

public void setVerticalAlignment(java.lang.String alignment)
Sets a VerticalAlignmentType value that indicates the vertical alignment type.

Parameters:
alignment - The VerticalAlignment to set.
See Also:
VerticalAlignmentType

getDefaultCellTextInfo

public TextInfo getDefaultCellTextInfo()
Gets a TextInfo object that indicates the text format info of the row.
If you want to set text format for all cells that have already been added to the row,
please do not set it directly but follow the method in the example.


setDefaultCellTextInfo

public void setDefaultCellTextInfo(TextInfo textInfo)
Sets a TextInfo object that indicates the text format info of the row.
If you want to set text format for all cells that have already been added to the row,
please do not set it directly but follow the method in the example.


isDisabled

public boolean isDisabled()
Gets a bool value that indicates whether this row is disabled.
The default value is false. If this property is set to true, this row will not be rendered.

Returns:
Returns the IsDisabled.

setIsDisabled

public void setIsDisabled(boolean disabled)
Sets a bool value that indicates whether this row is disabled.
The default value is false. If this property is set to true, this row will not be rendered.

Parameters:
disabled - The IsDisabled to set.

getFixedRowHeight

public float getFixedRowHeight()
Gets a float value that indicates the fixed row height.
If the fixed row height is set too mall, it will be enlarged automatically.

Returns:
Returns the FixedRowHeight.

setFixedRowHeight

public void setFixedRowHeight(float fixedRowHeight)
Sets a float value that indicates the fixed row height.
If the fixed row height is set too mall, it will be enlarged automatically.

Parameters:
fixedRowHeight - The FixedRowHeight to set.

getCells

public Cells getCells()
Gets a Cells collection that indicates all cells in the row.


getCellsSize

public int getCellsSize()
Gets cells number in this row.

Returns:
number of cells of this row.

getBorder

public BorderInfo getBorder()
Gets a BorderInfo object that indicates the row border info.

Returns:
Returns the BorderInfo.

setBorder

public void setBorder(BorderInfo info)
Sets a BorderInfo object that indicates the row border info.

Parameters:
info - The BorderInfo to set.

getParentTable

public Table getParentTable()
Gets the Row object's table.

Returns:
The parent Table.

getDOMElement

public org.w3c.dom.Element getDOMElement()
                                  throws AsposeBaseException
Description copied from class: PdfElementBase
Gets a DOM representation of the pdf element.

Overrides:
getDOMElement in class PdfElementBase
Throws:
AsposeBaseException
See Also:
PdfElementBase.getDOMElement()