Partager via


IDisplayServices interface

Provides methods that enable the user to work with display pointers and the insertion point as they relate to the on-screen layout.

Members

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

  • Methods

Methods

The IDisplayServices interface has these methods.

Method Description
CreateDisplayPointer

Creates a new IDisplayPointer interface for marking locations in a document or container.

GetCaret

Gets an IHTMLCaret interface that specifies the insertion point in an HTML document.

GetComputedStyle

Gets the rendered style, such as bold, italic, and so on, for the element containing a markup pointer.

HasFlowLayout

Gets a value that indicates whether an element is a flow layout element.

ScrollRectIntoView

Scrolls a specific rectangular region into view on the display.

TransformPoint

Changes a point's relative frame of reference from one coordinate system to another.

TransformRect

Changes a rectangle's relative frame of reference from one coordinate system to another.

 

Remarks

IDisplayServices and IDisplayPointer work with markup pointer (IMarkupServices2, IMarkupContainer2, and IMarkupPointer2) to provide 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. By using these interfaces, you can translate a user's on-screen input, such as a mouse click near a line of text, into editing operations.

To get an IDisplayServices interface pointer, call QueryInterface on an IHTMLDocument2 pointer. Use IID_IDisplayServices for the IID.

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows 2000 Server

Header

Mshtml.h

IDL

Mshtml.idl

DLL

Mshtml.dll