Class NamedNodeMap

Class NamedNodeMap

Il nome: Aspose.Html.Collections Assemblaggio: Aspose.HTML.dll (25.4.0)

Rappresenta collezioni di attributi che possono essere accessibili per nome.

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

Inheritance

object DOMObject NamedNodeMap

Implements

INotifyPropertyChanged

I membri ereditari

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

Properties

Length

Il numero di nodi in questa mappa.

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

Valore di proprietà

int

Questo[int]

Se l’indice è più grande o uguale al numero di nodi in questa mappa, questo ritorna zero.

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

Valore di proprietà

Attr

Questo[String]

Riceve Aspose.Html.Dom.Attr con il nome specificato.

public Attr this[string name] { get; }

Valore di proprietà

Attr

Methods

GetNamedItem(String)

Retrieve un nodo specificato per nome.

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

Parameters

name string

Il nome del nodo.

Returns

Attr

Il ritorno del nodo.

Vediamoci(String e String)

Retrieve un nodo specificato dal nome locale e dal nome dello spazio URI.

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

Parameters

namespaceURI string

Il nome URI.

localName string

Il nome del locale.

Returns

Attr

Il ritorno del nodo.

RemoveNamedItem(String)

Rimuove un nodo specificato per nome.

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

Parameters

name string

Il nome degli elementi.

Returns

Attr

Rimuovere il nodo.

RimuovereItemNS(String e String)

Rimuove un nodo specificato dal nome locale e dal nome dello spazio URI.

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

Parameters

namespaceURI string

Il nome URI.

localName string

Il nome del locale.

Returns

Attr

Il ritorno del nodo.

SetNamedItem(Attr)

Aggiungi un nodo utilizzando il suo atributo nodeName.Se un nodo con quel nome è già presente in questa mappa, viene sostituito dal nuovo.

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

Parameters

attr Attr

L’attribuzione è

Returns

Attr

Il ritorno del nodo.

Exceptions

DOMException

SetNamedItemNS(Attr)

Aggiungi un nodo utilizzando il suo nomeespaceURI e localeNome.Se un nodo con quel nomeespace URI e quel nome locale è già presente in questa mappa, viene sostituito dal nuovo.

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

Parameters

attr Attr

L’attribuzione è

Returns

Attr

Il ritorno del nodo.

Exceptions

DOMException

Vedi anche

IEnumerable

 Italiano