|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.aspose.slides.Shape
com.aspose.slides.GroupShape
com.aspose.slides.Table
public class Table
Represents a table on a slide.
Method Summary | |
---|---|
void |
addColumn()
Clones last column of a table and adds new column at the end of the table. |
void |
addRow()
Clones last row of a table and adds new row at the end of the table. |
void |
deleteColumn(int columnIndex)
Deletes column from a table. |
void |
deleteRow(int rowIndex)
Deletes row from a table. |
Cell |
getCell(int column,
int row)
Returns the cell of a table. |
int |
getColumnsNumber()
Returns number of columns in the table. |
int |
getColumnWidth(int column)
Returns the width of the specified column in a table. |
boolean |
getFlipHorizontal()
<b>True</b> if a group was flipped horizontally. |
boolean |
getFlipVertical()
<b>True</b> if a group was flipped vertically. |
int |
getMinimalRowHeight(int row)
Returns user set row height. |
int |
getRotation()
Returns or sets the number of degrees the specified group is rotated around the z-axis. |
int |
getRowHeight(int row)
Returns the height of the specified row in a table. |
int |
getRowsNumber()
Returns number of rows in the table. |
Cell |
mergeCells(Cell cell1,
Cell cell2)
Merges two cells or throws exception if cells can't be merged. |
void |
setBorders(double width,
java.awt.Color color)
|
void |
setColumnWidth(int column,
int width)
Sets new width for the specified column in a table. |
void |
setFlipHorizontal(boolean value)
|
void |
setFlipVertical(boolean value)
|
void |
setRotation(int value)
|
void |
setRowHeight(int row,
int height)
Sets new height for the specified row in a table. |
Methods inherited from class com.aspose.slides.GroupShape |
---|
addTextFrame, getAlternativeText, getFillFormat, getHidden, getLineFormat, getMasterShapeId, getName, getProtection, getShapeId, getShapes, setAlternativeText, setHidden, setName, setProtection |
Methods inherited from class com.aspose.slides.Shape |
---|
addLink, clearLink, createShapeElements, createShapeElements, getAnimationSettings, getConnectionSites, getConnectionSitesRaw, getFlipH, getFlipV, getHeight, getLink, getParent, getParentSlide, getPlaceholder, getShadowFormat, getShapeRectangle, getTags, getTextFrame, getThreeDFormat, getWidth, getX, getY, getZOrderPosition, hasExternalData, isMasterTextHolder, isTextHolder, serialize, setFlipH, setFlipV, setHeight, setWidth, setX, setY, zOrder |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public int getColumnsNumber()
Returns number of columns in the table.
Read-only int
.
public int getRowsNumber()
Returns number of rows in the table.
Read-only int
.
public Cell getCell(int column, int row)
Returns the cell of a table.
column
- columnrow
- row
<b>null</b>
if cell not found.public int getRowHeight(int row)
Returns the height of the specified row in a table. Note: returned value can differ from value, set by SetRowHeight method.
row
- Row index.
public void setRowHeight(int row, int height)
Sets new height for the specified row in a table. Note: real height of a row can differ from this value if text doesn't fit. Guaranteed that row's height won't be less than the specified value. To obtain value, previously set by this method, use GetMinimalRowHeight method.
row
- Row index.height
- New row minimal height.public int getMinimalRowHeight(int row)
Returns user set row height. Actual row height will be always greater or equal to this value and can differ if text doesn't fit to a cell.
row
- Row index.
public int getColumnWidth(int column)
Returns the width of the specified column in a table.
column
- Column index.
public void setColumnWidth(int column, int width)
Sets new width for the specified column in a table.
column
- Column index.width
- New column width.public void addRow()
Clones last row of a table and adds new row at the end of the table.
public void addColumn()
Clones last column of a table and adds new column at the end of the table.
public void deleteRow(int rowIndex)
Deletes row from a table.
rowIndex
- Index of a row to delete.public void deleteColumn(int columnIndex)
Deletes column from a table.
columnIndex
- Index of a column to delete.public Cell mergeCells(Cell cell1, Cell cell2)
Merges two cells or throws exception if cells can't be merged.
cell1
- First cell to merge.cell2
- Second cell to merge.
public int getRotation()
Returns or sets the number of degrees the specified group is rotated around
the z-axis. A positive value indicates clockwise rotation; a negative value
indicates counterclockwise rotation. Read/write int
.
getRotation
in class GroupShape
public void setRotation(int value)
setRotation
in class GroupShape
public boolean getFlipHorizontal()
<b>True</b>
if a group was flipped horizontally.
Read/write bool
.
getFlipHorizontal
in class GroupShape
public void setFlipHorizontal(boolean value)
setFlipHorizontal
in class GroupShape
public boolean getFlipVertical()
<b>True</b>
if a group was flipped vertically.
Read/write bool
.
getFlipVertical
in class GroupShape
public void setFlipVertical(boolean value)
setFlipVertical
in class GroupShape
public void setBorders(double width, java.awt.Color color)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |