TX Text Control .NET Server

FormattingStyleCollection Class

Class|Introduced in 10.1
Namespace
TXTextControl
Package
TXTextControl.TextControl.Core.SDK from the private NuGet feed or Text Control Offline Packages
Assembly
TXTextControl.Core.dll
Install
dotnet add package TXTextControl.TextControl.Core.SDK .NET 8 and later. For .NET Framework, reference TXTextControl.dll from the setup.
Also in
TXTextControl.TextControl.ASP.SDK as TXTextControl.dll
Derived
InlineStyleCollection, ParagraphStyleCollection
Implements
ICollection, IEnumerable

Description

The FormattingStyleCollection class is the base class of the ParagraphStyleCollection and InlineStyleCollection classes. It implements their base functionality and the IEnumerable and the ICollection interface.

Syntax

public abstract class FormattingStyleCollection : ICollection, IEnumerable

Examples

The following example includes the count value from a Formatting Style Collection object in application diagnostics. The created object is then available to the surrounding document workflow.

Console.WriteLine($"Count: {formattingStyleCollection.Count}");
Console.WriteLine("Formatting Style Collection is ready for use.");

Members

Properties

PropertyDescription
CountGets the number of elements contained in the collection.
IsSynchronizedReturns true if the collection is designed to be thread safe, otherwise, it returns false.
SyncRootGets an object that can be used to synchronize access to the collection.

Methods

MethodDescription
CopyToNot described in the reference. public abstract void CopyTo(Array array, int index);
GetEnumeratorReturns an enumerator that can be used to iterate through the collection.
RemoveRemoves a formatting style from a Text Control document.