Class MutationObserverInit

Class MutationObserverInit

Namespace: Aspose.Html.Dom.Mutations
Assembly: Aspose.HTML.dll (25.2.0)

This class represents an options collection which is used to configure Aspose.Html.Dom.Mutations.MutationObserver.

[ComVisible(true)]
public class MutationObserverInit : IDictionary<string, object="">, ICollection<keyvaluepair<string, object="">&gt;, IEnumerable<keyvaluepair<string, object="">&gt;, IEnumerable

Inheritance

objectMutationObserverInit

Implements

IDictionary<string, object="">, ICollection<keyvaluepair<string, object="">&gt;, IEnumerable<keyvaluepair<string, object="">&gt;, IEnumerable

Inherited Members

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Constructors

MutationObserverInit()

Initializes a new instance of the Aspose.Html.Dom.Mutations.MutationObserverInit class.

public MutationObserverInit()

Properties

AttributeFilter

Set to a list of attribute local names (without namespace) if not all attribute mutations need to be observed and attributes is true or omitted.

public IList<string> AttributeFilter { get; set; }

Property Value

IList<string&gt;

AttributeOldValue

Set to true if attributes is true or omitted and target’s attribute value before the mutation needs to be recorded.

public bool AttributeOldValue { get; set; }

Property Value

bool

Attributes

Set to true if mutations to target’s attributes are to be observed. Can be omitted if attributeOldValue and/or attributeFilter is specified.

public bool Attributes { get; set; }

Property Value

bool

CharacterData

Set to true if mutations to target’s data are to be observed. Can be omitted if characterDataOldValue is specified

public bool CharacterData { get; set; }

Property Value

bool

CharacterDataOldValue

Set to true if characterData is set to true or omitted and target’s data before the mutation needs to be recorded.

public bool CharacterDataOldValue { get; set; }

Property Value

bool

ChildList

Set to true if mutations to target’s children are to be observed.

public bool ChildList { get; set; }

Property Value

bool

Count

Gets the number of key/value pairs contained in the Aspose.Html.Dom.Mutations.MutationObserverInit collection.

public int Count { get; }

Property Value

int

IsReadOnly

Determines whether the Aspose.Html.Dom.Mutations.MutationObserverInit collection is mutable.

public bool IsReadOnly { get; }

Property Value

bool

Keys

Gets a collection containing the keys in the Aspose.Html.Dom.Mutations.MutationObserverInit collection.

public ICollection<string> Keys { get; }

Property Value

ICollection<string&gt;

Subtree

Set to true if mutations to not just target, but also target’s descendants are to be observed

public bool Subtree { get; set; }

Property Value

bool

Values

Gets a collection containing the values in the Aspose.Html.Dom.Mutations.MutationObserverInit collection.

public ICollection<object> Values { get; }

Property Value

ICollection<object&gt;

this[string]

Gets or sets the element with the specified key.

public object this[string key] { get; set; }

Property Value

object

Methods

Add(KeyValuePair<string, object="">)

Adds an element to the Aspose.Html.Dom.Mutations.MutationObserverInit collection.

public void Add(KeyValuePair<string, object=""> item)

Parameters

item KeyValuePair<string, object&gt;

The item to add.

Add(string, object)

Adds the specified key and value to the Aspose.Html.Dom.Mutations.MutationObserverInit collection.

public void Add(string key, object value)

Parameters

key string

The key of the element to add.

value object

The value of the element to add.

Clear()

Removes all the elements from the Aspose.Html.Dom.Mutations.MutationObserverInit collection.

public void Clear()

Contains(KeyValuePair<string, object="">)

Determines whether the Aspose.Html.Dom.Mutations.MutationObserverInit contain the specified key/value pair.

public bool Contains(KeyValuePair<string, object=""> item)

Parameters

item KeyValuePair<string, object&gt;

The item to check.

Returns

bool

True if the Aspose.Html.Dom.Mutations.MutationObserverInit contain the specified key/value pair; otherwise, false.

ContainsKey(string)

Determines whether the Aspose.Html.Dom.Mutations.MutationObserverInit collection contain a specified key.

public bool ContainsKey(string key)

Parameters

key string

The key to check.

Returns

bool

True if the Aspose.Html.Dom.Mutations.MutationObserverInit contain a specified key; otherwise, false.

CopyTo(KeyValuePair<string, object="">[], int)

Copies the Aspose.Html.Dom.Mutations.MutationObserverInit elements to an existing one-dimensional array, starting at the specified array index.

public void CopyTo(KeyValuePair<string, object="">[] array, int arrayIndex)

Parameters

array KeyValuePair<string, object&gt;[]

Destination array.

arrayIndex int

The array index to start at.

GetEnumerator()

Returns an enumerator that iterates through the Aspose.Html.Dom.Mutations.MutationObserverInit elements.

public IEnumerator<keyvaluepair<string, object="">&gt; GetEnumerator()

Returns

IEnumerator<KeyValuePair<string, object&gt;&gt;

An System.Collections.Generic.IEnumerator`1 object that can be used to iterate through the Aspose.Html.Dom.Mutations.MutationObserverInit elements.

Remove(KeyValuePair<string, object="">)

Removes the specified key/value pair from the Aspose.Html.Dom.Mutations.MutationObserverInit collection.

public bool Remove(KeyValuePair<string, object=""> item)

Parameters

item KeyValuePair<string, object&gt;

The item to remove.

Returns

bool

True if successfully removed; otherwise, false.

Remove(string)

Removes the value associated with the specified key from the Aspose.Html.Dom.Mutations.MutationObserverInit collection.

public bool Remove(string key)

Parameters

key string

The key of the element to remove.

Returns

bool

True if the element is successfully found and removed; otherwise, false.

TryGetValue(string, out object)

Gets the value associated with the specified key.

public bool TryGetValue(string key, out object value)

Parameters

key string

The key of the value to get.

value object

When this method returns, contains the value associated with the specified key, if the key is found; otherwise null.

Returns

bool

True if the Aspose.Html.Dom.Mutations.MutationObserverInit contain a specified key; otherwise, false. </string,></string,></keyvaluepair<string,></string,></string,></string,></string,></string,></string,></keyvaluepair<string,></keyvaluepair<string,></string,></keyvaluepair<string,></keyvaluepair<string,></string,>