---
Product: Aspose.PDF
Platform: net
Page Type: reference
Canonical URL: https://reference.aspose.org/pdf/net/Cell
---

# Cell

## Overview

`Cell` is a class in Aspose.PDF FOSS for .NET.

Represents a cell in a table row.

This class provides 3 methods for working with Cell objects in .NET programs.
Available methods include: `Cell`, `Clone`.
All public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package.
Properties: `Alignment`, `BackgroundColor`, `BackgroundImage`, `BackgroundImageFile`, `Border`, `ColSpan`, and 10 more.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `Paragraphs` | `Paragraphs` | Read/Write | The paragraphs (content) in this cell. |
| `Border` | `BorderInfo?` | Read/Write | Cell border. |
| `BackgroundColor` | `Color?` | Read/Write | Cell background color. |
| `Margin` | `MarginInfo?` | Read/Write | Cell padding (margin around content inside the cell). |
| `ColSpan` | `int` | Read/Write | Number of columns this cell spans. |
| `RowSpan` | `int` | Read/Write | Number of rows this cell spans. |
| `IsNoBorder` | `bool` | Read/Write | If true, no border is drawn for this cell. |
| `DefaultCellTextState` | `TextState?` | Read/Write | Default text state for this cell. |
| `IsWordWrapped` | `bool` | Read/Write | Whether text in this cell should be word-wrapped. |
| `VerticalAlignment` | `VerticalAlignment` | Read/Write | Vertical alignment of the cell content. |
| `Alignment` | `HorizontalAlignment` | Read/Write | Horizontal alignment of the cell content. |
| `Width` | `double` | Read | Width of the cell as laid out (set by the renderer; default 0). |
| `BackgroundImage` | `Image?` | Read/Write | Background image painted behind cell content. |
| `BackgroundImageFile` | `string?` | Read/Write | Path to a file used as the background image. |
| `IsOverrideByFragment` | `bool` | Read/Write | Whether the cell's formatting can be overridden by a contained fragment's text state. |
| `Text` | `string` | Read/Write | Convenience property: gets or sets the text of the first TextFragment in Paragraphs. |

## Methods

| Signature | Description |
|-----------|-------------|
| `Cell()` | Construct an empty cell with default formatting. |
| `Cell(rect: Rectangle)` | Construct a cell sized to rect. |
| `Clone()` | Create a shallow copy of this cell. |

## See Also

- [Aspose.PDF for .NET — Enterprise API Reference](https://reference.aspose.com/pdf/net/)