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

# TableTRElement

## Overview

`TableTRElement` is a class in Aspose.PDF FOSS for .NET.
Inherits from: `StructureElement`.

This class provides 13 methods for working with TableTRElement objects in .NET programs.
Available methods include: `AdjustPosition`, `AppendChild`, `ChangeParentElement`, `ClearId`, `CreateTD`, `CreateTH`, `Detach`, `FindElements`, `RemoveAndMoveItsChildObjectsToItsParent`, `SetId`, `SetTag`, `SetText`, and 1 additional methods.
All public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package.
Properties: `ActualText`, `AlternativeText`, `Attributes`, `BackgroundColor`, `Border`, `ChildElements`, and 16 more.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `BackgroundColor` | `Aspose.Pdf.Color?` | Read/Write | Gets or sets the background color. |
| `Border` | `Aspose.Pdf.BorderInfo?` | Read/Write | Gets or sets the border. |
| `DefaultCellBorder` | `Aspose.Pdf.BorderInfo?` | Read/Write | Gets or sets the default cell border. |
| `MinRowHeight` | `double` | Read/Write | Gets or sets the min row height. |
| `FixedRowHeight` | `double` | Read/Write | Gets or sets the fixed row height. |
| `IsInNewPage` | `bool` | Read/Write | Gets or sets the is in new page. |
| `IsRowBroken` | `bool` | Read/Write | Gets or sets the is row broken. |
| `DefaultCellTextState` | `Aspose.Pdf.Text.TextState` | Read/Write | Gets or sets the default cell text state. |
| `DefaultCellPadding` | `Aspose.Pdf.MarginInfo?` | Read/Write | Gets or sets the default cell padding. |
| `VerticalAlignment` | `Aspose.Pdf.VerticalAlignment` | Read/Write | Gets or sets the vertical alignment. |
| `StructureTextState` | `StructureTextState` | Read | Text-state applied to this element's inline content (stored only — the structure builder doesn't re-render through it). |
| `Attributes` | `StructureElementAttributes` | Read | The structure attributes (/A) attached to this element, organised by owner. |
| `StructureType` | `string` | Read | The PDF structure-type role (/S entry, e.g. |
| `ActualText` | `string` | Read/Write | The replacement text for the marked content (/ActualText). |
| `AlternativeText` | `string` | Read/Write | Alternate text used by assistive technology (/Alt). |
| `ExpansionText` | `string` | Read/Write | Expansion text for an abbreviation (/E). |
| `Language` | `string` | Read/Write | BCP-47 language code for the element's content (/Lang). |
| `ID` | `string` | Read | Element identifier (/ID); read-only — assigned at save. |
| `Title` | `string` | Read/Write | Title of the structure element (/T). |
| `Page` | `Page?` | Read | Page hosting this element's content, or null when the element hasn't been attached to a page yet. |
| `ParentElement` | `StructureElement?` | Read | The parent structure element, or null when this element is detached or directly under the structure-tree root. |
| `ChildElements` | `ElementList` | Read | Direct children of this element. |

## Methods

| Signature | Description |
|-----------|-------------|
| `CreateTD()` | Create + append a TD child. |
| `CreateTH()` | Create + append a TH child. |
| `AppendChild(child: StructureElement)` | Append child under this element's /K array. |
| `SetTag(tag: string)` | Remap this element's role to a custom tag, registering tag → its standard type in the document role map. |
| `ToString()` | Textual representation used when dumping the structure tree (role name; falls back to the type name). |
| `FindElements(recursive: bool)` | Recursively find descendant elements of type T. |
| `SetText(text: string)` | Set the element's text content (stored as ActualText). |
| `SetId(id: string)` | Set the element identifier (/ID). |
| `ClearId()` | Remove the element identifier (/ID). |
| `AdjustPosition(settings: object)` | Stub no-op kept for compat with the AdjustPosition authoring API — FOSS doesn't render through PositionSettings yet. |
| `ChangeParentElement(newParent: StructureElement, validate: bool)` | Move this element under newParent. |
| `RemoveAndMoveItsChildObjectsToItsParent(validate: bool)` | Detach this element, then re-parent its children under this element's former parent (taking this element's slot). |
| `Detach()` | Detach this element from its parent. |

## See Also

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