Udostępnij za pośrednictwem


INode.CompareDocumentPosition(INode) Method

Definition

Compares the reference node, i.

[Android.Runtime.Register("compareDocumentPosition", "(Lorg/w3c/dom/Node;)S", "GetCompareDocumentPosition_Lorg_w3c_dom_Node_Handler:Org.W3c.Dom.INodeInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public short CompareDocumentPosition (Org.W3c.Dom.INode? other);
[<Android.Runtime.Register("compareDocumentPosition", "(Lorg/w3c/dom/Node;)S", "GetCompareDocumentPosition_Lorg_w3c_dom_Node_Handler:Org.W3c.Dom.INodeInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member CompareDocumentPosition : Org.W3c.Dom.INode -> int16

Parameters

other
INode

The node to compare against the reference node.

Returns

Returns how the node is positioned relatively to the reference node.

Attributes

Exceptions

NOT_SUPPORTED_ERR: when the compared nodes are from different DOM implementations that do not coordinate to return consistent implementation-specific results.

Remarks

Compares the reference node, i.e. the node on which this method is being called, with a node, i.e. the one passed as a parameter, with regard to their position in the document and according to the document order.

Added in DOM Level 3.

Java documentation for org.w3c.dom.Node.compareDocumentPosition(org.w3c.dom.Node).

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