1 out of 16 rated this helpful Rate this topic

createRange Method

.NET Framework 3.0

Creates a TextRange object from the current text selection, or a controlRange collection from a control selection.

Syntax

range = object.createRange()

Return Value

Returns the created TextRange object.

Standards Information

There is no public standard that applies to this method.

Applies To

selection, Selection Constructor

See Also

createControlRange
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
Caution - Anomalous return value
N.B. #1. This method changes to the createRangeCollection method and returns a collection object consisting of one item being the parent html element of the selection when text-selection is attempted by single mouse-click on an object of position:absolute or width:defined.