TX Text Control .NET for WPF

Remove Method

Method|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

Removes a document property from the dictionary.

Syntax

public void Remove(string name);

Parameters

ParameterDescription
name

Specifies the name of the document property to remove.

Examples

The following example removes obsolete department metadata before export.

UserDefinedPropertyDictionary properties = new();
properties.Add("ReviewStatus", "Approved");
properties.Add("Department", "Finance");
if (properties.Contains("Department"))
{
    properties.Remove("Department");
}