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

# AppearanceDictionary

## Overview

`AppearanceDictionary` is a class in Aspose.PDF FOSS for .NET.
Inherits from: `IDictionary`.

Appearance-stream dictionary on an annotation (/AP entry): maps appearance-state name -> XForm.

This class provides 12 methods for working with AppearanceDictionary objects in .NET programs.
Available methods include: `Add`, `Clear`, `Contains`, `ContainsKey`, `CopyTo`, `GetEnumerator`, `Remove`, `TryGetValue`.
All public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package.
Properties: `Count`, `IsFixedSize`, `IsReadOnly`, `IsSynchronized`, `Keys`, `SyncRoot`, and 1 more.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `Count` | `int` | Read | Number of appearance states. |
| `IsReadOnly` | `bool` | Read | Gets the is read only. |
| `IsFixedSize` | `bool` | Read | Always false (the dictionary is mutable). |
| `IsSynchronized` | `bool` | Read | Always false: callers serialise their own access. |
| `SyncRoot` | `object` | Read | Sentinel object for ICollection.SyncRoot-style locking. |
| `Keys` | `ICollection` | Read | Gets the keys. |
| `Values` | `ICollection` | Read | Gets the values. |

## Methods

| Signature | Description |
|-----------|-------------|
| `Add(key: string, value: XForm)` | Calls Add on this AppearanceDictionary instance. |
| `Add(item: KeyValuePair)` | Add via key/value pair (IDictionary contract). |
| `Add(key: object, value: object)` | Add via object/object (loose-typed). |
| `Clear()` | Calls Clear on this AppearanceDictionary instance. |
| `Contains(item: KeyValuePair)` | Calls Contains on this AppearanceDictionary instance. |
| `ContainsKey(key: string)` | Calls ContainsKey on this AppearanceDictionary instance. |
| `CopyTo(array: KeyValuePair[], arrayIndex: int)` | Calls CopyTo on this AppearanceDictionary instance. |
| `CopyTo(array: XForm[], index: int)` | Copy just the appearance XForms into array (value-only CopyTo overload). |
| `GetEnumerator()` | Calls GetEnumerator on this AppearanceDictionary instance. |
| `Remove(key: string)` | Calls Remove on this AppearanceDictionary instance. |
| `Remove(item: KeyValuePair)` |  |
| `TryGetValue(key: string, value: XForm)` | Calls TryGetValue on this AppearanceDictionary instance. |

## See Also

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