TX Text Control .NET Server

Author Property

Property|Introduced in 29.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.Core.SDK as TXTextControl.Core.dll from the private NuGet feed or Text Control Offline Packages
Also in
TXTextControl.TextControl.ASP.SDK as TXTextControl.dll

Description

Gets or sets the author of the current document. It is an empty string, if there is no author contained in the current document.

Syntax

public string Author { get; set; }

Examples

The following example configures document settings for the current document by using DocumentSettings.Author.

DocumentSettings documentSettings = textControl.DocumentSettings;

documentSettings.Author = "Finance team";
if (!string.IsNullOrWhiteSpace(documentSettings.Author))
{
    Console.WriteLine($"Author: {documentSettings.Author}");
}

documentSettings.DocumentTitle = "Quarterly results";
documentSettings.Author = "Finance team";