TX Text Control .NET Server

Author Property

Property|Introduced in 23.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

Sets the document's author which will be saved in the document.

Syntax

public string Author { get; set; }

Examples

The following example configures how the current document is exported to WordprocessingML by using SaveSettings.Author.

textControl.Text = "Quarterly results";
SaveSettings saveSettings = new();

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

textControl.Save("quarterly-results.docx", StreamType.WordprocessingML, saveSettings);