Remove Method
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. Core. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesCore. dll
- Also in
TXTextControl.asTextControl. ASP. SDK TXTextControl.dll
Description
Removes a formatting style from a Text Control document.
Syntax
public bool Remove(string styleName);Public Function Remove(styleName As String) As BooleanParameters
| Parameter | Description |
|---|---|
| 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.");
}If formattingStyleCollection.Remove("CustomerName") Then
Console.WriteLine("Remove completed successfully.")
End If