TX Text Control .NET for Windows Forms

DocumentKeywords Property

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

Description

Gets or sets the current document's keywords. The property value is null, if there are no keywords contained in the document.

Syntax

public string[] DocumentKeywords { get; set; }

Examples

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

DocumentSettings documentSettings = textControl.DocumentSettings;

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

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