---
Product: Aspose.PDF
Platform: net
Page Type: reference
Canonical URL: https://reference.aspose.org/pdf/net/ArtifactCollection
---

# ArtifactCollection

## Overview

`ArtifactCollection` is a class in Aspose.PDF FOSS for .NET.
Inherits from: `IEnumerable`.

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

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `IsReadOnly` | `bool` | Read | Whether this collection is read-only (always false). |
| `IsSynchronized` | `bool` | Read | Whether access to this collection is thread-safe (always false). |
| `SyncRoot` | `object` | Read | Synchronisation root for thread-safe access. |
| `Count` | `int` | Read | Number of artifacts on the page. |

## Methods

| Signature | Description |
|-----------|-------------|
| `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

- [Aspose.PDF for .NET — Enterprise API Reference](https://reference.aspose.com/pdf/net/)