loadHighlightStream2
Load a highlight file via a stream.
loadHighlightStream2([in] IUnknown *streamObj, [in] OLE_COLOR color,
[in] OLE_COLOR selectColor, [in] VARIANT_BOOL selectable)
This function reads an XML highlight file (as generated by search
engines like dtSearch) via an OLE IStream object.
For each entry in the highlight file, this function creates a
highlighted region - similar to calling addRegion
with the
specified color
, selectColor
,
and selectable
arguments.
loadHighlightStream2
throws an error on failure.
Note that the highlight file must use character offsets
("<Body units=characters...>
"), not word offsets
("units=words
"). Word offsets are dependent on the
algorithm used to find word boundaries, which makes them somewhat
inconsistent.
VB:
viewer.loadHighlightStream2(stream, RGB(0, 0, 255), RGB(255, 0, 0), True)