IHTMLCaret Interface
惭愧,以前就不知道有Caret这个接口
Provides methods that control the insertion point (caret) in the editor.
IHTMLCaret Members
GetCaretDirection Gets a value that indicates which direction is defined as the forward direction of the insertion point. GetLocation Gets the horizontal and vertical coordinates, in pixels, of the location of the insertion point. Hide Makes the insertion point invisible. InsertText Inserts text at the position of the insertion point. IsVisible Determines whether the insertion point is visible on the screen. MoveCaretToPointer Moves the insertion point position to the position of a display pointer. MoveCaretToPointerEx Moves the insertion point position to the position of a display pointer, and makes the insertion point visible or invisible. MoveDisplayPointerToCaret Moves a display pointer to the position of the insertion point. MoveMarkupPointerToCaret Moves a markup pointer to the position of the insertion point. ScrollIntoView Scrolls the insertion point into view. SetCaretDirection Specifies which direction is defined as the forward direction of the insertion point. Show Makes the insertion point visible.
Interface Information
Stock Implementation mshtml.dll Custom Implementation No Inherits from IUnknown Header and IDL files mshtml.h, mshtml.idl Minimum availability Internet Explorer 5.5 Minimum operating systems Windows 95, Windows NT 4.0, Windows CE 4.0