IDocument.GetElementById(String) Method

Definition

Returns the <code>Element</code> that has an ID attribute with the given value.

[Android.Runtime.Register("getElementById", "(Ljava/lang/String;)Lorg/w3c/dom/Element;", "GetGetElementById_Ljava_lang_String_Handler:Org.W3c.Dom.IDocumentInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Org.W3c.Dom.IElement? GetElementById (string? elementId);
[<Android.Runtime.Register("getElementById", "(Ljava/lang/String;)Lorg/w3c/dom/Element;", "GetGetElementById_Ljava_lang_String_Handler:Org.W3c.Dom.IDocumentInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetElementById : string -> Org.W3c.Dom.IElement

Parameters

elementId
String

The unique <code>id</code> value for an element.

Returns

IElement

The matching element or <code>null</code> if there is none.

Attributes

Remarks

Java documentation for org.w3c.dom.Document.getElementById(java.lang.String).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to