## MutationObserverInit class

This class represents an options collection which is used to configure [`MutationObserver`](../mutationobserver/).

```java
public class MutationObserverInit : IDictionary<String, object>
```

## Constructors

| Name | Description |
| --- | --- |
| [MutationObserverInit](mutationobserverinit/)() | Initializes a new instance of the `MutationObserverInit` class. |

## Properties

| Name | Description |
| --- | --- |
[getAttributeFilter]
[setAttributeFilter] Set to a list of attribute local names (without package) if not all attribute mutations need to be observed and attributes is true or omitted. |
[getAttributeOldValue]
[setAttributeOldValue] Set to true if attributes is true or omitted and target’s attribute value before the mutation needs to be recorded. |
[getAttributes]
[setAttributes] Set to true if mutations to target’s attributes are to be observed. Can be omitted if attributeOldValue and/or attributeFilter is specified. |
[getCharacterData]
[setCharacterData] Set to true if mutations to target’s data are to be observed. Can be omitted if characterDataOldValue is specified |
[getCharacterDataOldValue]
[setCharacterDataOldValue] Set to true if characterData is set to true or omitted and target’s data before the mutation needs to be recorded. |
[getChildList]
[setChildList] Set to true if mutations to target’s children are to be observed. |
| [getCount](../../com.aspose.html.dom.mutations/mutationobserverinit/count/) Gets the number of key/value pairs contained in the `MutationObserverInit` collection. |
| [getIsReadOnly](../../com.aspose.html.dom.mutations/mutationobserverinit/isreadonly/) Determines whether the `MutationObserverInit` collection is mutable. |
[getItem]
[setItem] Gets or sets the element with the specified key. |
| [getKeys](../../com.aspose.html.dom.mutations/mutationobserverinit/keys/) Gets a collection containing the keys in the `MutationObserverInit` collection. |
[getSubtree]
[setSubtree] Set to true if mutations to not just target, but also target’s descendants are to be observed |
| [getValues](../../com.aspose.html.dom.mutations/mutationobserverinit/values/) Gets a collection containing the values in the `MutationObserverInit` collection. |

## Methods

| Name | Description |
| --- | --- |
| [add](../../com.aspose.html.dom.mutations/mutationobserverinit/add/#add)(KeyValuePair&lt;String, object&gt;) |  |
| [add](../../com.aspose.html.dom.mutations/mutationobserverinit/add/#add_1)(String, object) | Adds the specified key and value to the `MutationObserverInit` collection. |
| [clear](../../com.aspose.html.dom.mutations/mutationobserverinit/clear/)() | Removes all the elements from the `MutationObserverInit` collection. |
| [contains](../../com.aspose.html.dom.mutations/mutationobserverinit/contains/)(KeyValuePair&lt;String, object&gt;) |  |
| [containsKey](../../com.aspose.html.dom.mutations/mutationobserverinit/containskey/)(String) | Determines whether the `MutationObserverInit` collection contain a specified key. |
| [copyTo](../../com.aspose.html.dom.mutations/mutationobserverinit/copyto/)(KeyValuePair&lt;String, object&gt;[], int) |  |
| [getEnumerator](../../com.aspose.html.dom.mutations/mutationobserverinit/getenumerator/)() | Returns an enumerator that iterates through the `MutationObserverInit` elements. |
| [remove](../../com.aspose.html.dom.mutations/mutationobserverinit/remove/#remove)(KeyValuePair&lt;String, object&gt;) |  |
| [remove](../../com.aspose.html.dom.mutations/mutationobserverinit/remove/#remove_1)(String) | Removes the value associated with the specified key from the `MutationObserverInit` collection. |
| [tryGetValue](../../com.aspose.html.dom.mutations/mutationobserverinit/trygetvalue/)(String, out object) | Gets the value associated with the specified key. |

### See Also

* package [com.aspose.html.dom.mutations](../../com.aspose.html.dom.mutations/)
* package [Aspose.HTML](../../)
