TX Text Control .NET for Windows Forms

DocumentKeywords Property

Property|Introduced in 23.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.WinForms.SDK as TXTextControl.dll from the private NuGet feed or Text Control Offline Packages

Description

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

Syntax

public string[] DocumentKeywords { get; set; }

Examples

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

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

saveSettings.DocumentKeywords = new string[] { "Quarterly report" };
if (saveSettings.DocumentKeywords != null)
{
    Console.WriteLine("Save Settings: Document Keywords is available.");
}

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