Partager via


IDisplayPointer interface

Provides methods that control display pointers so that you can mark sections of an HTML document for editing based on the on-screen rendering of a document.

Members

The IDisplayPointer interface inherits from the IUnknown interface. IDisplayPointer also has these types of members:

  • Methods

Methods

The IDisplayPointer interface has these methods.

Method Description
GetDisplayGravity

Gets the display gravity for the display pointer.

GetFlowElement

Gets the innermost element containing the display pointer that is a flow layout element.

GetLineInfo

Gets information about the line that the display pointer is on.

GetPointerGravity

Gets the pointer gravity for the display pointer.

IsAtBOL

Determines whether the display pointer is at the beginning of a line.

IsEqualTo

Determines whether two display pointers specify the same position in the markup of an HTML document.

IsLeftOf

Determines whether the display pointer that this interface refers to is to the left of another one.

IsPositioned

Determines whether the display pointer has been positioned.

IsRightOf

Determines whether the display pointer that this interface refers to is to the right of another one.

MoveToMarkupPointer

Moves this display pointer to the position of a markup pointer.

MoveToPoint

Moves this display pointer to the specified coordinates on a page.

MoveToPointer

Moves this display pointer to the position of another display pointer.

MoveUnit

Moves a display pointer to the specified position.

PositionMarkupPointer

Positions a markup pointer at the location of the display pointer to which this interface refers.

QueryBreaks

Determines whether a line break or a block break, if any, occurs at the display pointer's location.

ScrollIntoView

Scrolls the location that is indicated by the display pointer into view.

SetDisplayGravity

Sets the display gravity for the display pointer.

SetPointerGravity

Sets the pointer gravity for the display pointer.

Unposition

Sets the display pointer to an unpositioned state.

 

Remarks

IDisplayServices and IDisplayPointer work with markup pointer (IMarkupServices2, IMarkupContainer2, and IMarkupPointer2) to give you editing control that includes information about how a document is rendered on the screen, and the horizontal and vertical positioning of elements and lines of text. These interfaces enable you to translate a user's on-screen input (for instance, a mouse click near a line of text) into editing operations.

Use the IDisplayServices::CreateDisplayPointer method to create IDisplayPointer interface pointers.

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows 2000 Server

Header

Mshtml.h

IDL

Mshtml.idl

DLL

Mshtml.dll

See also

IDisplayServices