TXTextControl.ParagraphStyleCollection Class

An instance of the ParagraphStyleCollection class contains all paragraph formatting styles in the current document represented through objects of the type ParagraphStyle. A paragraph style is a formatting style that can be used to format blocks of text. The ParagraphStyleCollection class implements the IEnumerable and the ICollection interfaces. An instance of this class can be obtained with the TextControl.ParagraphStyles property.

Introduced: 10.1.

Syntax

[C#]
public sealed class ParagraphStyleCollection : FormattingStyleCollection
[Visual Basic]
Public NotInheritable Class ParagraphStyleCollection
  Inherits FormattingStyleCollection

Properties

Property Description
Count Gets the number of elements contained in the collection. (Inherited from FormattingStyleCollection.)
IsSynchronized Returns true if the collection is designed to be thread safe, otherwise, it returns false. (Inherited from FormattingStyleCollection.)
SyncRoot Gets an object that can be used to synchronize access to the collection. (Inherited from FormattingStyleCollection.)

Methods

Method Description
Add Adds to new formatting style to the current document.
CopyTo Copies the elements of the collection to an array, starting at a particular index.
GetEnumerator Returns an enumerator that can be used to iterate through the collection. (Inherited from FormattingStyleCollection.)
GetItem Gets a particular style from the collection.
Remove Removes a formatting style from a Text Control document. (Inherited from FormattingStyleCollection.)

See Also