FontSubstitutionCollection

FontSubstitutionCollection

Overview

FontSubstitutionCollection is a class in Aspose.PDF FOSS for .NET. Inherits from: IReadOnlyCollection<FontSubstitution>.

The list of font substitutions registered in FontRepository.Substitutions.

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

Properties

NameTypeAccessDescription
CountintReadGets the number of substitutions in the collection.
IsSynchronizedboolReadGets the is synchronized.
SyncRootobjectReadGets the sync root.

Methods

SignatureDescription
Add(fontSubstitution: FontSubstitution)Adds a substitution to the end of the collection; a null argument is ignored.
Add(substitution: CustomFontSubstitutionBase)Append a CustomFontSubstitutionBase (subclass of FontSubstitution).
Contains(item: FontSubstitution)Returns true when the collection contains the given substitution.
CopyTo(array: FontSubstitution[], index: int)Copies the substitutions into array, starting at the zero-based index.
Remove(item: FontSubstitution)Removes the given substitution; returns true when it was found and false for null.
Remove(substitution: CustomFontSubstitutionBase)Removes the given custom substitution; returns true when it was found.
Delete(substitution: CustomFontSubstitutionBase)Removes the given custom substitution, if present.
Clear()Removes all substitutions from the collection.
GetEnumerator()Calls GetEnumerator on this FontSubstitutionCollection instance.

See Also

 English