|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.aspose.pdf.elements.PdfElementBase com.aspose.pdf.elements.Cell
public class Cell
Represents a cell in a Table.
Constructor Summary | |
---|---|
Cell(Row row)
Initialize a new instance of the Cell class. |
|
Cell(Row row,
java.lang.String content)
Initialize a new instance of the Cell class. |
|
Cell(Table table)
Initialize a new instance of the Cell class. |
|
Cell(Table table,
Image image)
Initialize a new instance of the Cell class. |
|
Cell(Table table,
java.lang.String content)
Initialize a new instance of the Cell class. |
Method Summary | |
---|---|
void |
addNestedTable(Table nestedTable)
Adds a table as nested table. |
Color |
getBackGroundColor()
Gets a Color object that indicatres the backgorund color of the cell. |
BorderInfo |
getBorder()
Gets a BorderInfo object that indicates the cell's border info. |
int |
getColumnSpan()
Gets an int value that indicates how many columns the cell sapns. |
TextInfo |
getDefaultCellTextInfo()
Gets a TextInfo object that indicates the default cell text format info. |
org.w3c.dom.Element |
getDOMElement()
Gets a DOM representation of the pdf element. |
float |
getFitWidth()
Gets or sets a float value that indicates the fit width of the cell. The unit is point. |
Table |
getNestedTable()
Returns the nested table in the Cell. |
MarginInfo |
getPadding()
Gets a MarginInfo object that indicates the cell's padding. |
Paragraphs |
getParagraphs()
Gets a Paragraphs collection that indicates all paragraphs in the cell. |
Table |
getParentTable()
Get the Table which contains this Cell. |
java.lang.String |
getVerticalAlignment()
Gets a VerticalAlignmentType value that indicates the vertical alignment type. |
VerticalTextRotationType |
getVerticalTextRotationType()
Get a VerticalTextRotationType object that indicates the text rotation angle in floating box or cells. |
Cell |
setBackGroundColor(Color color)
Sets a Color object that indicatres the backgorund color of the cell. |
Cell |
setBorder(BorderInfo info)
Sets a BorderInfo object that indicates the cell's border info. |
Cell |
setColumnSpan(int span)
Sets an int value that indicates how many columns the cell sapns. |
Cell |
setDefaultCellTextInfo(TextInfo textInfo)
Sets a TextInfo object that indicates the default cell text format info. |
Cell |
setFitWidth(float fitWidth)
Gets or sets a float value that indicates the fit width of the cell. The unit is point. |
Cell |
setPadding(MarginInfo padding)
Sets a MarginInfo object that indicates the cell's padding. |
Cell |
setParagraphs(Paragraphs paragraphs)
Sets a Paragraphs collection that indicates all paragraphs in the cell. |
Cell |
setVerticalAlignment(java.lang.String alignment)
Sets a VerticalAlignmentType value that indicates the vertical alignment type. |
void |
setVerticalTextRotationType(VerticalTextRotationType textRotationType)
Set a VerticalTextRotationType object that indicates the text rotation angle in floating box or cells. |
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 |
---|
public Cell(Table table)
table
- Table that owns the cells.public Cell(Table table, java.lang.String content)
table
- Table that owns the cells.content
- the Cell contentspublic Cell(Row row, java.lang.String content)
row
- Row that owns the cells.content
- the Cell contentspublic Cell(Row row)
row
- Row that owns the cells.public Cell(Table table, Image image)
table
- Table that owns the cells.image
- the image Cell containsMethod Detail |
---|
public Color getBackGroundColor()
public Cell setBackGroundColor(Color color)
color
- The BackGroundColor to set.public Paragraphs getParagraphs()
public Cell setParagraphs(Paragraphs paragraphs)
paragraphs
- The Paragraphs to set.public int getColumnSpan()
public Cell setColumnSpan(int span)
span
- The ColumnSpan to set.public float getFitWidth()
public Cell setFitWidth(float fitWidth)
fitWidth
- The fitWidth to set.
NOTE: This member is now obsolete.
You should use ColumnWidths to set the column width of the table. Aspose
apologizes for any inconvenience you may have experienced.public MarginInfo getPadding()
public Cell setPadding(MarginInfo padding)
padding
- The Padding to set.public java.lang.String getVerticalAlignment()
public Cell setVerticalAlignment(java.lang.String alignment)
alignment
- The VerticalAlignment to set.VerticalAlignmentType
public TextInfo getDefaultCellTextInfo()
public Cell setDefaultCellTextInfo(TextInfo textInfo)
public BorderInfo getBorder()
public Cell setBorder(BorderInfo info)
info
- The BorderInfo to set.public Table getNestedTable()
public void addNestedTable(Table nestedTable)
nestedTable
- public org.w3c.dom.Element getDOMElement() throws AsposeBaseException
PdfElementBase
getDOMElement
in class PdfElementBase
AsposeBaseException
PdfElementBase.getDOMElement()
public VerticalTextRotationType getVerticalTextRotationType()
public void setVerticalTextRotationType(VerticalTextRotationType textRotationType)
textRotationType
- VerticalTextRotationType object you want to setpublic Table getParentTable()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |