Author Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
Description
Sets the document's author which will be saved in the document.
Syntax
public string Author { get; set; }Public Property Author As StringExamples
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);textControl.Text = "Quarterly results"
Dim saveSettings As New SaveSettings()
saveSettings.Author = "Finance team"
If Not String.IsNullOrWhiteSpace(saveSettings.Author) Then
Console.WriteLine($"Author: {saveSettings.Author}")
End If
textControl.Save("quarterly-results.docx", StreamType.WordprocessingML, saveSettings)