ArtifactCollection

ArtifactCollection

Overview

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

Collection of artifacts on a page.

This class provides 9 methods for working with ArtifactCollection objects in .NET programs. Available methods include: Add, CopyTo, Delete, FindByValue, GetEnumerator, Update. 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
IsReadOnlyboolReadWhether this collection is read-only (always false).
IsSynchronizedboolReadWhether access to this collection is thread-safe (always false).
SyncRootobjectReadSynchronisation root for thread-safe access.
CountintReadNumber of artifacts on the page.

Methods

SignatureDescription
Add(artifact: WatermarkArtifact)Add a watermark artifact to the page.
Add(artifact: BackgroundArtifact)Add a background artifact to the page.
Add(artifact: Artifact)Add a generic artifact to the collection.
CopyTo(dest: Artifact[], index: int)Copy this collection’s artifacts into dest starting at index.
FindByValue(name: string, expectedValue: string)Find artifacts whose name entry equals expectedValue.
Update(artifact: Artifact)Update artifact’s entry on the page (no-op when the artifact is not in the collection).
GetEnumerator()Calls GetEnumerator on this ArtifactCollection instance.
Delete(index: int)Delete the artifact at the given 1-based index.
Delete(artifact: Artifact)Remove an artifact by reference; no-op if not in the collection.

See Also