# DocumentProperties Class

> DocumentProperties class in the TX Sheet Control .NET API: Export-only metadata shared by PDF and Excel. Omitted values preserve original XLSX properties.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Class
- **Namespace:** `TXTextControl.TXSheetControl.Server`
- **Package:** `TXTextControl.TXSheetControl.Server` (assembly `TXTextControl.TXSheetControl.Api.dll`, from the private NuGet feed or the supplied NuGet folder)
- **Package:** `TXTextControl.TXSheetControl.Blazor` (assembly `TXTextControl.TXSheetControl.Api.dll`, from the private NuGet feed or the supplied NuGet folder)
- **Path:** TX Sheet Control > API Reference > .NET API > TXTextControl.TXSheetControl.Server > DocumentProperties Class
- **1533 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/documentproperties/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/documentproperties/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/documentproperties/llms-full.txt

---

Export-only metadata shared by PDF and Excel. Omitted values preserve original XLSX properties. Text is limited to 4096 UTF-16 units. Created and Modified are ISO 8601 timestamps with a timezone. These values never change the workbook or review identity.

### Syntax

```csharp
public class DocumentProperties
```

### Members

#### Constructors

| Constructor | Description |
|---|---|
| [Constructor](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/documentproperties/constructor/llms-full.txt) |  |

#### Properties

| Property | Description |
|---|---|
| [Author](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/documentproperties/author-property/llms-full.txt) | Document author. |
| [Category](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/documentproperties/category-property/llms-full.txt) | Document category. |
| [Company](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/documentproperties/company-property/llms-full.txt) | Document company. |
| [ContentStatus](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/documentproperties/contentstatus-property/llms-full.txt) | Document contentStatus. |
| [Created](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/documentproperties/created-property/llms-full.txt) | Document created. |
| [Creator](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/documentproperties/creator-property/llms-full.txt) | Document creator. |
| [Description](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/documentproperties/description-property/llms-full.txt) | Document description. |
| [Identifier](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/documentproperties/identifier-property/llms-full.txt) | Document identifier. |
| [Keywords](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/documentproperties/keywords-property/llms-full.txt) | Up to 128 keywords, each limited to 1024 UTF-16 units. |
| [Language](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/documentproperties/language-property/llms-full.txt) | Document language. |
| [LastModifiedBy](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/documentproperties/lastmodifiedby-property/llms-full.txt) | Document lastModifiedBy. |
| [Manager](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/documentproperties/manager-property/llms-full.txt) | Document manager. |
| [Modified](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/documentproperties/modified-property/llms-full.txt) | Document modified. |
| [Revision](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/documentproperties/revision-property/llms-full.txt) | Document revision. |
| [Subject](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/documentproperties/subject-property/llms-full.txt) | Document subject. |
| [Title](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/documentproperties/title-property/llms-full.txt) | Document title. |
| [Version](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/documentproperties/version-property/llms-full.txt) | Document version. |

### Examples

Apply DocumentProperties to a small working document, then return the exported bytes. The caller can save or download the result.

```csharp
using TXTextControl.TXSheetControl.Server;

async Task<byte[]> CreateDocumentPropertiesReportAsync(ServerSheetControl control)
{
    var book = control.Workbook;
    var sheet = await book.Sheets.AtAsync(0);
    await sheet.Cell("B8").SetValueAsync(120);
    await sheet.Cell("B9").SetValueAsync(80);
    await sheet.Cell("B10").SetFormulaAsync("=SUM(B8:B9)");
    await sheet.Cell("A1").SetTextAsync("October invoice");
    await sheet.Cell("A1").FormatAsync(new { fontFamily = "Liberation Sans", fontSize = 16, bold = true, textColor = "#ffffff", fillColor = "#163b63" });
    await sheet.Range("B8:B10").FormatAsync(new { numberFormatCode = "#,##0.00", fontFamily = "Liberation Sans", fontSize = 11 });

    var settings = new DocumentProperties()
    {
        Author = "Alpine Design",
        Subject = "Consulting services",
        Title = "October invoice"
    };

    return await control.SaveAsync(StreamType.SpreadsheetML, new SaveOptions { DocumentProperties = settings });
}
```

### See Also

- [TXTextControl.TXSheetControl.Server Namespace](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/llms-full.txt)
- [Loading and Saving Workbooks](https://docs.textcontrol.com/tx-sheet-control/document-processing/load-save/llms-full.txt)

---

## In This Section

- [DocumentProperties.Author Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/documentproperties/author-property/llms-full.txt): DocumentProperties.Author property in the TX Sheet Control .NET API: Document author. Covers its type string? and a C# example.
- [DocumentProperties.Category Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/documentproperties/category-property/llms-full.txt): DocumentProperties.Category property in the TX Sheet Control .NET API: Document category. Covers its type string? and a C# example.
- [DocumentProperties.Company Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/documentproperties/company-property/llms-full.txt): DocumentProperties.Company property in the TX Sheet Control .NET API: Document company. Covers its type string? and a C# example.
- [DocumentProperties Constructor](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/documentproperties/constructor/llms-full.txt): DocumentProperties constructor in the TX Sheet Control .NET API, with its syntax, a C# example and remarks on awaiting tasks and handles.
- [DocumentProperties.ContentStatus Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/documentproperties/contentstatus-property/llms-full.txt): DocumentProperties.ContentStatus property in the TX Sheet Control .NET API: Document contentStatus. Covers its type string? and a C# example.
- [DocumentProperties.Created Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/documentproperties/created-property/llms-full.txt): DocumentProperties.Created property in the TX Sheet Control .NET API: Document created. Covers its type string? and a C# example.
- [DocumentProperties.Creator Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/documentproperties/creator-property/llms-full.txt): DocumentProperties.Creator property in the TX Sheet Control .NET API: Document creator. Covers its type string? and a C# example.
- [DocumentProperties.Description Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/documentproperties/description-property/llms-full.txt): DocumentProperties.Description property in the TX Sheet Control .NET API: Document description. Covers its type string? and a C# example.
- [DocumentProperties.Identifier Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/documentproperties/identifier-property/llms-full.txt): DocumentProperties.Identifier property in the TX Sheet Control .NET API: Document identifier. Covers its type string? and a C# example.
- [DocumentProperties.Keywords Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/documentproperties/keywords-property/llms-full.txt): DocumentProperties.Keywords property in the TX Sheet Control .NET API: Up to 128 keywords, each limited to 1024 UTF-16 units.
- [DocumentProperties.Language Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/documentproperties/language-property/llms-full.txt): DocumentProperties.Language property in the TX Sheet Control .NET API: Document language. Covers its type string? and a C# example.
- [DocumentProperties.LastModifiedBy Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/documentproperties/lastmodifiedby-property/llms-full.txt): DocumentProperties.LastModifiedBy property in the TX Sheet Control .NET API: Document lastModifiedBy. Covers its type string? and a C# example.
- [DocumentProperties.Manager Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/documentproperties/manager-property/llms-full.txt): DocumentProperties.Manager property in the TX Sheet Control .NET API: Document manager. Covers its type string? and a C# example.
- [DocumentProperties.Modified Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/documentproperties/modified-property/llms-full.txt): DocumentProperties.Modified property in the TX Sheet Control .NET API: Document modified. Covers its type string? and a C# example.
- [DocumentProperties.Revision Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/documentproperties/revision-property/llms-full.txt): DocumentProperties.Revision property in the TX Sheet Control .NET API: Document revision. Covers its type string? and a C# example.
- [DocumentProperties.Subject Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/documentproperties/subject-property/llms-full.txt): DocumentProperties.Subject property in the TX Sheet Control .NET API: Document subject. Covers its type string? and a C# example.
- [DocumentProperties.Title Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/documentproperties/title-property/llms-full.txt): DocumentProperties.Title property in the TX Sheet Control .NET API: Document title. Covers its type string? and a C# example.
- [DocumentProperties.Version Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/documentproperties/version-property/llms-full.txt): DocumentProperties.Version property in the TX Sheet Control .NET API: Document version. Covers its type string? and a C# example.

---

## Nearby

- **Previous:** [DocumentObject.Command Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/documentobject/command-method/llms-full.txt)
- **Next:** [DocumentProperties Constructor](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/documentproperties/constructor/llms-full.txt)
