TextFragmentCollection

TextFragmentCollection

Overview

TextFragmentCollection is a class in Aspose.PDF FOSS for .NET. Inherits from: System.Collections.Generic.IEnumerable<TextFragment>.

A 1-indexed collection of TextFragment objects, matching the public API.

This class declares 8 methods for TextFragmentCollection objects in .NET programs. Available methods include: Add, AddRange, Clear, Contains, CopyTo, GetEnumerator, Remove, TextFragmentCollection. Public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package. Properties: Count, IsReadOnly, IsSynchronized, SyncRoot.

Properties

NameTypeAccessDescription
CountintReadNumber of fragments.
IsReadOnlyboolReadGets the is read only.
IsSynchronizedboolReadGets the is synchronized.
SyncRootobjectReadGets the sync root.

Methods

SignatureDescription
TextFragmentCollection()Creates an empty fragment collection.
Add(fragment: TextFragment)Adds a fragment to the end of the collection; throws when fragment is null.
AddRange(fragments: System.Collections.Generic.IEnumerable<TextFragment>)Append every fragment from fragments to this collection.
Contains(item: TextFragment)Returns true when the collection contains the given fragment.
CopyTo(array: TextFragment[], index: int)Copies the fragments into array, starting at the zero-based index.
Remove(item: TextFragment)Removes the given fragment and deletes its text from the page content it was absorbed from; returns true when it was found.
Clear()Clear all fragments from the collection.
GetEnumerator()Calls GetEnumerator on this TextFragmentCollection instance.

See Also

 English