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="">>, IEnumerable<keyvaluepair<string, object="">>, IEnumerable
Inheritance
Implements
IDictionary<string, object="">, ICollection<keyvaluepair<string, object="">>, IEnumerable<keyvaluepair<string, object="">>, 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
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
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
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
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
ChildList
Set to true if mutations to target’s children are to be observed.
public bool ChildList { get; set; }
Property Value
Count
Gets the number of key/value pairs contained in the Aspose.Html.Dom.Mutations.MutationObserverInit collection.
public int Count { get; }
Property Value
IsReadOnly
Determines whether the Aspose.Html.Dom.Mutations.MutationObserverInit collection is mutable.
public bool IsReadOnly { get; }
Property Value
Keys
Gets a collection containing the keys in the Aspose.Html.Dom.Mutations.MutationObserverInit collection.
public ICollection<string> Keys { get; }
Property Value
ICollection<string>
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
Values
Gets a collection containing the values in the Aspose.Html.Dom.Mutations.MutationObserverInit collection.
public ICollection<object> Values { get; }
Property Value
ICollection<object>
this[string]
Gets or sets the element with the specified key.
public object this[string key] { get; set; }
Property Value
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>
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>
The item to check.
Returns
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
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>[]
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="">> GetEnumerator()
Returns
IEnumerator<KeyValuePair<string, object>>
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>
The item to remove.
Returns
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
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
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,>