Class NamedNodeMap

Class NamedNodeMap

Namespace: Aspose.Html.Collections
Assembly: Aspose.HTML.dll (25.1.0)

Rappresenta collezioni di attributi che possono essere accessibili per nome.

[ComVisible(true)]
[DOMObject]
[DOMName("NamedNodeMap")]
public class NamedNodeMap : DOMObject, INotifyPropertyChanged

Ereditarietà

objectDOMObjectNamedNodeMap

Implementa

INotifyPropertyChanged

Membri Ereditati

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

Proprietà

Lunghezza

Il numero di nodi in questa mappa.

[DOMName("length")]
public int Length { get; }

Valore della Proprietà

int

this[int]

Restituisce l’elemento all’indice-th nella mappa. Se l’indice è maggiore o uguale al numero di nodi in questa mappa, restituisce null.

[DOMName("item")]
public Attr this[int index] { get; }

Valore della Proprietà

Attr

this[string]

Ottiene l’Aspose.Html.Dom.Attr con il nome specificato.

public Attr this[string name] { get; }

Valore della Proprietà

Attr

Metodi

GetNamedItem(string)

Recupera un nodo specificato per nome.

[DOMName("getNamedItem")]
[DOMNamedPropertyGetter]
public Attr GetNamedItem(string name)

Parametri

name string

Il nome del nodo.

Restituisce

Attr

Restituisce il nodo.

GetNamedItemNS(string, string)

Recupera un nodo specificato per nome locale e URI di namespace.

[DOMName("getNamedItemNS")]
public Attr GetNamedItemNS(string namespaceURI, string localName)

Parametri

namespaceURI string

L’URI del namespace.

localName string

Nome locale.

Restituisce

Attr

Restituisce il nodo.

RemoveNamedItem(string)

Rimuove un nodo specificato per nome.

[DOMName("removeNamedItem")]
public Attr RemoveNamedItem(string name)

Parametri

name string

Il nome dell’elemento.

Restituisce

Attr

Nodo rimosso.

RemoveNamedItemNS(string, string)

Rimuove un nodo specificato per nome locale e URI di namespace.

[DOMName("removeNamedItemNS")]
public Attr RemoveNamedItemNS(string namespaceURI, string localName)

Parametri

namespaceURI string

L’URI del namespace.

localName string

Nome locale.

Restituisce

Attr

Restituisce il nodo.

SetNamedItem(Attr)

Aggiunge un nodo utilizzando il suo attributo nodeName. Se un nodo con quel nome è già presente in questa mappa, viene sostituito dal nuovo. Sostituire un nodo con se stesso non ha alcun effetto.

[DOMName("setNamedItem")]
public Attr SetNamedItem(Attr attr)

Parametri

attr Attr

L’attributo.

Restituisce

Attr

Restituisce il nodo.

Eccezioni

DOMException

SetNamedItemNS(Attr)

Aggiunge un nodo utilizzando il suo namespaceURI e localName. Se un nodo con quel namespace URI e quel nome locale è già presente in questa mappa, viene sostituito dal nuovo. Sostituire un nodo con se stesso non ha alcun effetto.

[DOMName("setNamedItemNS")]
public Attr SetNamedItemNS(Attr attr)

Parametri

attr Attr

L’attributo.

Restituisce

Attr

Restituisce il nodo.

Eccezioni

DOMException

Vedi Anche

IEnumerable<t> </t>

 Italiano