FormattingStyleCollection Class
- Namespace
TXTextControl
- Package
TXTextControl.from the private NuGet feed or Text Control Offline PackagesTextControl. WinForms. SDK
- Assembly
TXTextControl.dll
- Install
dotnet add package TXTextControl..NET 8 and later. For .NET Framework, referenceTextControl. WinForms. SDK TXTextControl.from the setup.dll
- 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, IEnumerablePublic MustInherit Class FormattingStyleCollection
Implements ICollection, IEnumerableExamples
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.");Console.WriteLine($"Count: {formattingStyleCollection.Count}")
Console.WriteLine("Formatting Style Collection is ready for use.")Members
Properties
| Property | Description |
|---|---|
| Count | Gets the number of elements contained in the collection. |
| IsSynchronized | Returns true if the collection is designed to be thread safe, otherwise, it returns false. |
| SyncRoot | Gets an object that can be used to synchronize access to the collection. |
Methods
| Method | Description |
|---|---|
| CopyTo | Not described in the reference. public abstract void CopyTo(Array array, int index); |
| GetEnumerator | Returns an enumerator that can be used to iterate through the collection. |
| Remove | Removes a formatting style from a Text Control document. |