IHTMLCaret Interface

来源:互联网 发布:淘宝卖家如何屏蔽返利 编辑:程序博客网 时间:2024/05/15 06:43
IHTMLCaret Interface

惭愧,以前就不知道有Caret这个接口

Provides methods that control the insertion point (caret) in the editor.

IHTMLCaret Members

GetCaretDirectionGets a value that indicates which direction is defined as the forward direction of the insertion point.GetLocationGets the horizontal and vertical coordinates, in pixels, of the location of the insertion point.HideMakes the insertion point invisible.InsertTextInserts text at the position of the insertion point.IsVisibleDetermines whether the insertion point is visible on the screen.MoveCaretToPointerMoves the insertion point position to the position of a display pointer.MoveCaretToPointerExMoves the insertion point position to the position of a display pointer, and makes the insertion point visible or invisible.MoveDisplayPointerToCaretMoves a display pointer to the position of the insertion point.MoveMarkupPointerToCaretMoves a markup pointer to the position of the insertion point.ScrollIntoViewScrolls the insertion point into view.SetCaretDirectionSpecifies which direction is defined as the forward direction of the insertion point.ShowMakes the insertion point visible.

Interface Information

Stock Implementationmshtml.dllCustom ImplementationNoInherits fromIUnknownHeader and IDL filesmshtml.h, mshtml.idlMinimum availabilityInternet Explorer 5.5Minimum operating systemsWindows 95, Windows NT 4.0, Windows CE 4.0