AppearanceDictionary

AppearanceDictionary

Overview

AppearanceDictionary is a class in Aspose.PDF FOSS for .NET. Inherits from: IDictionary<string, XForm>.

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

This class declares 13 methods for AppearanceDictionary objects in .NET programs. Available methods include: Add, AppearanceDictionary, Clear, Contains, ContainsKey, CopyTo, GetEnumerator, Remove, TryGetValue. 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

NameTypeAccessDescription
CountintReadNumber of appearance states.
IsReadOnlyboolReadGets the is read only.
IsFixedSizeboolReadAlways false (the FOSS dict is mutable).
IsSynchronizedboolReadAlways false: callers serialise their own access.
SyncRootobjectReadSentinel object for ICollection.SyncRoot-style locking.
KeysICollection<string>ReadGets the names of the stored appearance states.
ValuesICollection<XForm>ReadGets the stored appearance forms.

Methods

SignatureDescription
AppearanceDictionary()Creates an empty appearance dictionary.
Add(key: string, value: XForm)Adds the appearance value under the state name key; throws if the name is already present.
Add(item: KeyValuePair<string, XForm>)Add via key/value pair (IDictionary contract).
Add(key: object, value: object)Add via object/object (loose-typed).
Clear()Removes every appearance state.
Contains(item: KeyValuePair<string, XForm>)Calls Contains(item) on this AppearanceDictionary instance.
ContainsKey(key: string)Returns true when an appearance is stored under the state name key.
CopyTo(array: KeyValuePair<string, XForm>[], arrayIndex: int)Calls CopyTo(array, arrayIndex) on this AppearanceDictionary instance.
CopyTo(array: XForm[], index: int)Copy just the appearance XForms into array (the value-only CopyTo overload).
GetEnumerator()Calls GetEnumerator on this AppearanceDictionary instance.
Remove(key: string)Removes the appearance stored under the state name key; returns true when one was removed.
Remove(item: KeyValuePair<string, XForm>)Calls Remove(item) on this AppearanceDictionary instance.
TryGetValue(key: string, value: XForm)Calls TryGetValue(key, value) on this AppearanceDictionary instance.

See Also

 English