MSHTML Classes: CAutoRange

The CAutoRange class is the internal implementation of what MSHTML exposes for scripting as the TextRange object. Instances are created by the createTextRange method of various classes.

Scripting

The table below lists the interface members that the CAutoRange class exposes as properties through its string table. Properties that Microsoft does not list in the HTML and DHTML Reference are highlighted yellow.

Property Interface Member
boundingHeight IHTMLTextRangeMetrics get_boundingHeight
boundingLeft IHTMLTextRangeMetrics get_boundingLeft
boundingTop IHTMLTextRangeMetrics get_boundingTop
boundingWidth IHTMLTextRangeMetrics get_boundingWidth
collapse IHTMLTxtRange collapse
compareEndPoints IHTMLTxtRange compareEndPoints
duplicate IHTMLTxtRange duplicate
execCommand IHTMLTxtRange execCommand
execCommandShowHelp IHTMLTxtRange execCommandShowHelp
expand IHTMLTxtRange expand
findText IHTMLTxtRange findText
getBookmark IHTMLTxtRange getBookmark
getBoundingClientRect IHTMLTextRangeMetrics2 getBoundingClientRect
getClientRects IHTMLTextRangeMetrics2 getClientRects
htmlText IHTMLTxtRange get_htmlText
inRange IHTMLTxtRange inRange
isEqual IHTMLTxtRange isEqual
move IHTMLTxtRange move
moveEnd IHTMLTxtRange moveEnd
moveStart IHTMLTxtRange moveStart
moveToBookmark IHTMLTxtRange moveToBookmark
moveToElementText IHTMLTxtRange moveToElementText
moveToPoint IHTMLTxtRange moveToPoint
offsetLeft IHTMLTextRangeMetrics get_OffsetLeft
offsetTop IHTMLTextRangeMetrics get_offsetTop
parentElement IHTMLTxtRange parentElement
pasteHTML IHTMLTxtRange pasteHTML
queryCommandEnabled IHTMLTxtRange queryCommandEnabled
queryCommandIndeterm IHTMLTxtRange queryCommandIndeterm
queryCommandState IHTMLTxtRange queryCommandState
queryCommandSupported IHTMLTxtRange queryCommandSupported
queryCommandText IHTMLTxtRange queryCommandText
queryCommandValue IHTMLTxtRange queryCommandValue
scrollIntoView IHTMLTxtRange scrollIntoView
select IHTMLTxtRange select
setEndPoint IHTMLTxtRange setEndPoint
text IHTMLTxtRange get_text
put_text