TX Text Control .NET Server

Remove Method

Method|Introduced in 10.1
Namespace
TXTextControl
Package
TXTextControl.TextControl.Core.SDK as TXTextControl.Core.dll from the private NuGet feed or Text Control Offline Packages
Also in
TXTextControl.TextControl.ASP.SDK as TXTextControl.dll

Description

Removes a formatting style from a Text Control document.

Syntax

public bool Remove(string styleName);

Parameters

ParameterDescription
styleName

Specifies the name of the style to remove.

Return Value

The return value is true, if the style could be removed. Otherwise it is false.

Examples

The following example removes an item from the formatting style collection.

if (formattingStyleCollection.Remove("CustomerName"))
{
    Console.WriteLine("Remove completed successfully.");
}