GetElementById

Document.GetElementById method

Restituisce l’elemento che ha un attributo ID con il valore specificato. Se tale elemento non esiste, restituisce null. Se più di un elemento ha un attributo ID con quel valore, ciò che viene restituito non è definito.

public Element GetElementById(string elementId)
ParametroTipoDescrizione
elementIdStringL’ID elemento

Valore di ritorno

IlElement .

Guarda anche