TX Text Control .NET for Windows Forms Documentation

InlineStyleCollection Class

An instance of the InlineStyleCollection class contains all inline formatting styles in the current document represented through objects of the type InlineStyle. An inline style is a character-based formatting style that can be used to format single words in a line of text. The InlineStyleCollection class implements the IEnumerable and the ICollection interfaces. An instance of this class can be obtained with the TextControl.InlineStyles property.

Introduced: 10.1.

Syntax

[C#] public sealed class InlineStyleCollection : ICollection, IEnumerable
[Visual Basic] Public NotInheritable Class InlineStyleCollection Implements ICollection Implements IEnumerable

Properties

PropertyDescription
CountGets the number of elements contained in the collection.

Methods

MethodDescription
AddAdds to new formatting style to the current document.
CopyToCopies the elements of the collection to an array, starting at a particular index.
GetEnumeratorReturns an enumerator that can be used to iterate through the collection.
GetItemGets a particular style from the collection.
RemoveRemoves a formatting style from the current document.

See Also

 
 
 

Products

Support

Downloads

Corporate

Buy Now