loadHighlightFile2
Load a highlight file.
loadHighlightFile2([in] BSTR fileName, [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).
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.
loadHighlightFile2
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.loadHighlightFile2("c:\test\highlights.xml", RGB(0, 0, 255), RGB(255, 0, 0), True)