public final class CellFormat extends PVIObject implements ICellFormat
Represents format of a table cell.
| Modifier and Type | Method and Description |
|---|---|
ILineFormat |
getBorderBottom()
Returns a bottom border line properties object.
|
ILineFormat |
getBorderDiagonalDown()
Returns a top-left to bottom-right diagonal line properties object.
|
ILineFormat |
getBorderDiagonalUp()
Returns a bottom-left to top-right diagonal line properties object.
|
ILineFormat |
getBorderLeft()
Returns a left border line properties object.
|
ILineFormat |
getBorderRight()
Returns a right border line properties object.
|
ILineFormat |
getBorderTop()
Returns a top border line properties object.
|
ICellFormatEffectiveData |
getEffective()
Gets effective table cell formatting properties with inheritance and table styles applied.
|
IFillFormat |
getFillFormat()
Returns a cell fill properties object.
|
float |
getTransparency()
Gets or sets the transparency of the fill color.
|
long |
getVersion()
Version.
|
void |
setTransparency(float value)
Gets or sets the transparency of the fill color.
|
equals, getParent_Immediate, getParent_IPresentationComponent, getParent_ISlideComponent, getPresentation, getSlide, hashCodepublic long getVersion()
Version.
Read-only long.
getVersion in class PVIObjectpublic final IFillFormat getFillFormat()
Returns a cell fill properties object.
Read-only IFillFormat.
getFillFormat in interface ICellFormatpublic final ILineFormat getBorderLeft()
Returns a left border line properties object.
Read-only ILineFormat.
getBorderLeft in interface ICellFormatpublic final ILineFormat getBorderTop()
Returns a top border line properties object.
Read-only ILineFormat.
getBorderTop in interface ICellFormatpublic final ILineFormat getBorderRight()
Returns a right border line properties object.
Read-only ILineFormat.
getBorderRight in interface ICellFormatpublic final ILineFormat getBorderBottom()
Returns a bottom border line properties object.
Read-only ILineFormat.
getBorderBottom in interface ICellFormatpublic final ILineFormat getBorderDiagonalDown()
Returns a top-left to bottom-right diagonal line properties object.
Read-only ILineFormat.
getBorderDiagonalDown in interface ICellFormatpublic final ILineFormat getBorderDiagonalUp()
Returns a bottom-left to top-right diagonal line properties object.
Read-only ILineFormat.
getBorderDiagonalUp in interface ICellFormatpublic 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(); }
getEffective in interface ICellFormatICellFormatEffectiveData.public final float getTransparency()
Gets or sets the transparency of the fill color.
Read/write float.
getTransparency in interface ICellFormatpublic final void setTransparency(float value)
Gets or sets the transparency of the fill color.
Read/write float.
setTransparency in interface ICellFormatCopyright © 2004-2025 Aspose Pty Ltd. All Rights Reserved.