public final class AppearanceDictionary extends Object implements com.aspose.ms.System.Collections.IDictionary
Annotation appearance dictionary specifying how the annotation shall be presented visually on the page.
Modifier and Type | Method and Description |
---|---|
void |
addItem(Object key,
Object value)
Adds an element with the provided key and value.
|
void |
clear()
Removes all elements from the dictionary.
|
boolean |
contains(Object key)
Determines whether dictionary contains an element with the specified key.
|
void |
copyTo(com.aspose.ms.System.Array array,
int index)
Copies the elements of the dictionary to an Array, starting at a particular Array index.
|
Object |
get_Item_internal(Object key) |
XForm |
get_Item(Object key)
Represents convenient form for getting appearance streams.
|
com.aspose.pdf.engine.data.IPdfDictionary |
getDict() |
com.aspose.ms.System.Collections.ICollection |
getKeys()
Gets keys of the dictionary.
|
Object |
getSyncRoot()
Gets an object that can be used to synchronize access to the dictionary.
|
com.aspose.ms.System.Collections.ICollection |
getValues()
Gets the list of the dictionary values.
|
boolean |
isFixedSize()
Gets a value indicating whether dictionary has a fixed size.
|
boolean |
isReadOnly()
Gets a value indicating whether dictionary is read-only.
|
boolean |
isSynchronized()
Gets a value indicating whether access to the dictionary is synchronized (thread safe).
|
com.aspose.ms.System.Collections.IEnumerator |
iterator_Rename_Namesake() |
com.aspose.ms.System.Collections.IDictionaryEnumerator |
iterator()
Returns an IDictionaryEnumerator object for the dictionary.
|
void |
removeItem(Object key)
Removes the element with the specified key.
|
void |
set_Item(Object key,
Object value) |
void |
set_Item(Object key,
XForm value) |
int |
size()
Gets the number of elements contained in the dictionary.
|
public com.aspose.pdf.engine.data.IPdfDictionary getDict()
public boolean isReadOnly()
Gets a value indicating whether dictionary is read-only.
isReadOnly
in interface com.aspose.ms.System.Collections.IDictionary
public boolean isFixedSize()
Gets a value indicating whether dictionary has a fixed size.
isFixedSize
in interface com.aspose.ms.System.Collections.IDictionary
public com.aspose.ms.System.Collections.ICollection getKeys()
Gets keys of the dictionary. If appearance dictionary has subditionaries, then Keys
contains (N|R|D).state values,
where N - normal appearance, R - rollover appearance, D - down appearance and state - the name of the state
(e.g. On, Off for checkboxes).
getKeys
in interface com.aspose.ms.System.Collections.IDictionary
public com.aspose.ms.System.Collections.ICollection getValues()
Gets the list of the dictionary values. Result collection contains the list of XForm objects.
getValues
in interface com.aspose.ms.System.Collections.IDictionary
public boolean isSynchronized()
Gets a value indicating whether access to the dictionary is synchronized (thread safe).
isSynchronized
in interface com.aspose.ms.System.Collections.ICollection
public Object getSyncRoot()
Gets an object that can be used to synchronize access to the dictionary.
getSyncRoot
in interface com.aspose.ms.System.Collections.ICollection
public int size()
Gets the number of elements contained in the dictionary.
size
in interface com.aspose.ms.System.Collections.ICollection
public boolean contains(Object key)
Determines whether dictionary contains an element with the specified key.
contains
in interface com.aspose.ms.System.Collections.IDictionary
public void removeItem(Object key)
Removes the element with the specified key.
removeItem
in interface com.aspose.ms.System.Collections.IDictionary
public void clear()
Removes all elements from the dictionary.
clear
in interface com.aspose.ms.System.Collections.IDictionary
public void addItem(Object key, Object value)
Adds an element with the provided key and value.
addItem
in interface com.aspose.ms.System.Collections.IDictionary
key
- Element key.value
- Element value.public com.aspose.ms.System.Collections.IDictionaryEnumerator iterator()
Returns an IDictionaryEnumerator object for the dictionary.
public void copyTo(com.aspose.ms.System.Array array, int index)
Copies the elements of the dictionary to an Array, starting at a particular Array index.
copyTo
in interface com.aspose.ms.System.Collections.ICollection
public void set_Item(Object key, Object value)
set_Item
in interface com.aspose.ms.System.Collections.IDictionary
public XForm get_Item(Object key)
Represents convenient form for getting appearance streams.
get_Item
in interface com.aspose.ms.System.Collections.IDictionary
key
- Represents path to appearance stream.
If appearance dictionary has subdictionaries, then path must contain 2 parts (Keys
),
else path has only one part.public com.aspose.ms.System.Collections.IEnumerator iterator_Rename_Namesake()
Copyright © 2017 Aspose. All Rights Reserved.