TX Text Control .NET for WPF

UserDefinedPropertyDictionary Constructor

Constructor|Introduced in 24.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.WPF.SDK as TXTextControl.dll from the private NuGet feed or Text Control Offline Packages

Description

Initializes a new instance of the UserDefinedPropertyDictionary class.

Syntax

public UserDefinedPropertyDictionary();

Examples

The following example creates a property dictionary and assigns it to the document settings.

UserDefinedPropertyDictionary properties = new();
properties.Add("ReviewStatus", "Approved");
properties.Add("Department", "Finance");
textControl.DocumentSettings.UserDefinedDocumentProperties = properties;