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
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à
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à
Questo[String]
Riceve Aspose.Html.Dom.Attr con il nome specificato.
public Attr this[string name] { get; }
Valore di proprietà
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
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
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
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
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
Il ritorno del nodo.
Exceptions
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
Il ritorno del nodo.