CellFormat
Inheritance: java.lang.Object, com.aspose.slides.PVIObject
All Implemented Interfaces: com.aspose.slides.ICellFormat
public final class CellFormat extends PVIObject implements ICellFormat
Represents format of a table cell.
Methods
Method | Description |
---|---|
getVersion() | |
getFillFormat() | Returns a cell fill properties object. |
getBorderLeft() | Returns a left border line properties object. |
getBorderTop() | Returns a top border line properties object. |
getBorderRight() | Returns a right border line properties object. |
getBorderBottom() | Returns a bottom border line properties object. |
getBorderDiagonalDown() | Returns a top-left to bottom-right diagonal line properties object. |
getBorderDiagonalUp() | Returns a bottom-left to top-right diagonal line properties object. |
getEffective() | Gets effective table cell formatting properties with inheritance and table styles applied. |
getVersion()
public long getVersion()
Version. Read-only long.
Returns: long
getFillFormat()
public final IFillFormat getFillFormat()
Returns a cell fill properties object. Read-only IFillFormat.
Returns: IFillFormat
getBorderLeft()
public final ILineFormat getBorderLeft()
Returns a left border line properties object. Read-only ILineFormat.
Returns: ILineFormat
getBorderTop()
public final ILineFormat getBorderTop()
Returns a top border line properties object. Read-only ILineFormat.
Returns: ILineFormat
getBorderRight()
public final ILineFormat getBorderRight()
Returns a right border line properties object. Read-only ILineFormat.
Returns: ILineFormat
getBorderBottom()
public final ILineFormat getBorderBottom()
Returns a bottom border line properties object. Read-only ILineFormat.
Returns: ILineFormat
getBorderDiagonalDown()
public final ILineFormat getBorderDiagonalDown()
Returns a top-left to bottom-right diagonal line properties object. Read-only ILineFormat.
Returns: ILineFormat
getBorderDiagonalUp()
public final ILineFormat getBorderDiagonalUp()
Returns a bottom-left to top-right diagonal line properties object. Read-only ILineFormat.
Returns: ILineFormat
getEffective()
public final ICellFormatEffectiveData getEffective()
Gets effective table cell formatting properties with inheritance and table styles applied.
This example demonstrates getting effective fill format for different table logic parts. Please note that cell formatting always has higher priority than row formatting, row - higher than column, column - higher that whole table. So finally CellFormatEffectiveData properties always used to draw the table. The following code is just an example of API. Presentation pres = new Presentation(@"MyPresentation.pptx"); try { ITable tbl = (ITable) pres.getSlides().get_Item(0).getShapes().get_Item(0); IFillFormatEffectiveData tableFillFormatEffective = tbl.getTableFormat().getEffective().getFillFormat(); IFillFormatEffectiveData rowFillFormatEffective = tbl.getRows().get_Item(0).RowFormat.GetEffective().getFillFormat(); IFillFormatEffectiveData columnFillFormatEffective = tbl.getColumns().get_Item(0).getColumnFormat().getEffective().getFillFormat(); IFillFormatEffectiveData cellFillFormatEffective = tbl.get_Item(0, 0).getCellFormat().getEffective().getFillFormat(); } finally { if (pres != null) pres.dispose(); }
Returns: ICellFormatEffectiveData - A ICellFormatEffectiveData.