Export (0) Print
Expand All

Properties

This section describes the properties associated with the Document Object Model (DOM) Traversal API.

In this section

TopicDescription

boundingHeight

Retrieves the height of the rectangle that bounds the TextRange object.

boundingLeft

Retrieves the distance between the left edge of the rectangle that bounds the TextRange object and the left side of the object that contains the TextRange.

boundingTop

Retrieves the distance between the top edge of the rectangle that bounds the TextRange object and the top side of the object that contains the TextRange.

boundingWidth

Retrieves the width of the rectangle that bounds the TextRange object.

childElementCount

Retrieves the number of immediate child nodes of the current element or a zero if the element does not contain any child nodes. childElementCount does not return all child nodes, only child nodes that are nodeType =1, or element nodes.

collapsed

Retrieves whether a range is collapsed or empty.

commonAncestorContainer

Returns the deepest node in which two boundary points exist.

currentNode

Sets or retrieves where the current node in a filtered TreeWalker hierarchy is positioned.

endContainer

Retrieves the end point node of the current range.

endOffset

Retrieves the ending boundary point relative to the startContainer in the current range.

expandEntityReferences

Flag to specify whether or not the children of entity reference nodes are visible.

filter

Gets the function object that the iterator uses to filter nodes that go into TreeWalker hierarchies or NodeIterator lists.

firstElementChild

Retrieves a reference to the first child element, or null if there are no child elements.

htmlText

Retrieves the HTML source as a valid HTML fragment.

isTextEdit

Retrieves whether a TextRange object can be created using the object.

lastElementChild

Retrieves a reference to the last child element or null if there are no child elements.

left

Sets or retrieves the left coordinate of the rectangle surrounding the object content.

name

Returns a DOMString value that is the name of the error that occurred during a Range operation.

nextElementSibling

Retrieves a reference to the sibling element that immediately follows or null if the element does not have any sibling elements that follow it.

parentElement

Retrieves the parent object in the object hierarchy.

parentTextEdit

Retrieves the container object in the document hierarchy that can be used to create a TextRange containing the original object.

previousElementSibling

Retrieves a reference to the immediately preceding sibling element or null if the element does not have any preceding siblings.

right

Sets or retrieves the right coordinate of the rectangle surrounding the object content.

root

Gets the root node that was specified when the object was created.

size

Sets or retrieves the number of rows in the list box.

startContainer

Retrieves the starting node of a current range.

startOffset

Retrieves the offset of the starting boundary point relative to the startContainer in the current range.

text

Sets or retrieves the text contained within the range.

TextRange

Retrieves a collection of TextRange objects.

top

Sets or retrieves the top coordinate of the rectangle surrounding the object content.

type (Selection)

Retrieves the type of selection.

typeDetail

Retrieves the name of the selection type.

whatToShow

Gets which node types are presented through the iterator. Nodes that are not accepted are skipped, but their children are still considered.

 

 

 

Show:
© 2014 Microsoft