共用方式為


IHighlightRenderingServices interface

This interface provides methods that enable you to control which sections of a document are highlighted on the screen and the style of highlighting.

Members

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

  • Methods

Methods

The IHighlightRenderingServices interface has these methods.

Method Description
AddSegment

Creates a highlight segment for the markup between two display pointers and highlights it according to a specified rendering style.

MoveSegmentToPointers

Redefines a highlight segment and its style.

RemoveSegment

Removes a highlight segment from the collection of those that are highlighted.

 

Remarks

You can obtain a IHighlightRenderingServices interface pointer by calling QueryInterface on an IHTMLDocument2 pointer, using IID_IHighlightRenderingServices for the IID.

Highlighted selections can have multiple noncontiguous sections. Each of these sections can have different highlight styles.

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows 2000 Server

Header

Mshtml.h

IDL

Mshtml.idl

DLL

Mshtml.dll