---
Product: Aspose.Slides
Platform: java
Page Type: reference
Canonical URL: https://reference.aspose.org/slides/java/CellFormat
---

# CellFormat

## Overview

`CellFormat` is a class in Aspose.Slides FOSS for Java.
Inherits from: `PVIObject`, `ICellFormat`.

Represents format of a table cell.

This class provides 13 methods for working with CellFormat objects in Java programs.
Available methods include: `CellFormat`, `PVIObject`, `asIPresentationComponent`, `getBorderBottom`, `getBorderDiagonalDown`, `getBorderDiagonalUp`, `getBorderLeft`, `getBorderRight`, `getBorderTop`, `getFillFormat`, `getPresentation`, `getSlide`, and 1 additional methods.
All public members are accessible to any Java application after installing the Aspose.Slides FOSS for Java package.
Properties: `borderBottom`, `borderDiagonalDown`, `borderDiagonalUp`, `borderLeft`, `borderRight`, `borderTop`, and 3 more.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `fillFormat` | `IFillFormat` | Read | Gets the fill format. |
| `borderLeft` | `ILineFormat` | Read | Gets the border left. |
| `borderTop` | `ILineFormat` | Read | Gets the border top. |
| `borderRight` | `ILineFormat` | Read | Gets the border right. |
| `borderBottom` | `ILineFormat` | Read | Gets the border bottom. |
| `borderDiagonalDown` | `ILineFormat` | Read | Gets the border diagonal down. |
| `borderDiagonalUp` | `ILineFormat` | Read | Gets the border diagonal up. |
| `slide` | `IBaseSlide` | Read | Gets the slide. |
| `presentation` | `IPresentation` | Read | Gets the presentation. |

## Methods

| Signature | Description |
|-----------|-------------|
| `CellFormat(tcPrElement: Element, saveCallback: Runnable)` | Creates a new CellFormat backed by the given {@code } element. |
| `initInternal(tcPrElement: Element, saveCallback: Runnable, parentSlide: IBaseSlide)` → `CellFormat` | Initializes this CellFormat with its backing element and context. |
| `getFillFormat()` → `IFillFormat` | Returns the fill format. |
| `getBorderLeft()` → `ILineFormat` | Returns the border left. |
| `getBorderTop()` → `ILineFormat` | Returns the border top. |
| `getBorderRight()` → `ILineFormat` | Returns the border right. |
| `getBorderBottom()` → `ILineFormat` | Returns the border bottom. |
| `getBorderDiagonalDown()` → `ILineFormat` | Returns the border diagonal down. |
| `getBorderDiagonalUp()` → `ILineFormat` | Returns the border diagonal up. |
| `PVIObject()` | Creates a PVIObject with no parent slide. |
| `getSlide()` → `IBaseSlide` | Returns the slide. |
| `getPresentation()` → `IPresentation` | Returns the presentation. |
| `asIPresentationComponent()` → `IPresentationComponent` | Returns this object as an {@link IPresentationComponent}. |

## See Also

- [Aspose.Slides — Enterprise API Reference](https://reference.aspose.com/slides/)