DocumentKeywords Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
Description
Sets the document's keywords which will be saved in the document.
Syntax
public string[] DocumentKeywords { get; set; }Public Property DocumentKeywords As String()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);textControl.Text = "Quarterly results"
Dim saveSettings As New SaveSettings()
saveSettings.DocumentKeywords = New String() { "Quarterly report" }
If saveSettings.DocumentKeywords IsNot Nothing Then
Console.WriteLine("Save Settings: Document Keywords is available.")
End If
textControl.Save("quarterly-results.docx", StreamType.WordprocessingML, saveSettings)