public final class TableFormat extends DomObject<Table> implements ITableFormat
Represents format of a table.
| Modifier and Type | Method and Description |
|---|---|
ITableFormatEffectiveData |
getEffective()
Gets effective table formatting properties with inheritance and table styles applied.
|
IFillFormat |
getFillFormat()
Returns a table fill properties object.
|
com.aspose.slides.IDOMObject |
getParent_Immediate()
Returns Parent_Immediate object.
|
IPresentationComponent |
getParent_IPresentationComponent()
Returns parent IPresentationComponent.
|
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.
|
getParent_Immediatepublic final IFillFormat getFillFormat()
Returns a table fill properties object.
Read-only IFillFormat.
getFillFormat in interface ITableFormatpublic final float getTransparency()
Gets or sets the transparency of the fill color.
Read/write float.
getTransparency in interface ITableFormatpublic final void setTransparency(float value)
Gets or sets the transparency of the fill color.
Read/write float.
setTransparency in interface ITableFormatpublic final ITableFormatEffectiveData getEffective()
Gets effective table 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 = (Table)pres.getSlides().get_Item(0).getShapes().get_Item(0); IFillFormatEffectiveData tableFillFormatEffective = tbl.getTableFormat().getEffective().getFillFormat(); IFillFormatEffectiveData rowFillFormatEffective = tbl.getRows().get_Item(0).getRowFormat().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 ITableFormatITableFormatEffectiveData.public final long getVersion()
Version.
Read-only long.
public final IPresentationComponent getParent_IPresentationComponent()
Returns parent IPresentationComponent.
Read-only IPresentationComponent.
public com.aspose.slides.IDOMObject getParent_Immediate()
Returns Parent_Immediate object.
Read-only IDOMObject.
Copyright © 2004-2025 Aspose Pty Ltd. All Rights Reserved.