XFormCollection

XFormCollection

Overview

XFormCollection is a class in Aspose.PDF FOSS for .NET. Inherits from: IEnumerable<XForm>.

Collection of XForm (Form XObject) resources on a page.

This class provides 11 methods for working with XFormCollection objects in .NET programs. Available methods include: Add, Clear, Contains, CopyTo, Delete, FreeMemory, GetEnumerator, GetFormName, Remove. All 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 Form XObjects.
IsReadOnlyboolReadGets the is read only.
IsSynchronizedboolReadGets the is synchronized.
SyncRootobjectReadGets the sync root.

Methods

SignatureDescription
Delete(name: string)Remove an XForm by name from the collection and underlying XObject dict.
Delete(index: int)Remove an XForm by 1-based index.
GetEnumerator()Calls GetEnumerator on this XFormCollection instance.
Add(item: XForm)Calls Add on this XFormCollection instance.
Clear()Calls Clear on this XFormCollection instance.
Contains(item: XForm)Calls Contains on this XFormCollection instance.
CopyTo(array: XForm[], index: int)Calls CopyTo on this XFormCollection instance.
Remove(item: XForm)Calls Remove on this XFormCollection instance.
Delete()Drop all entries (equivalent to Clear).
FreeMemory()Discard cached form list so the next access re-reads from the XObject dict.
GetFormName(form: XForm)Return the PDF resource name (e.g.

See Also