AddHighlightRectangle
This method adds a highlight rectangle on the page described by the following
parameters. Set HighlightMode
to CDRHighlightRectangles
to
highlight all rectangles.
Syntax
AddHighlightRectangle (Left as Long, Top as Long, Width as Long,
Height as Long, PageNr as Long, Color as OLE_COLOR)
Parameter | Description |
---|---|
Left | Left of highlight rectangle |
Top | Top of highlight rectangle |
Width | Width of highlight rectangle |
Height | Height of highlight rectangle |
PageNr | Document page number of highlight rectangle |
Color | Color of highlight rectangle |
Sample Code
pWorkdoc.AddHighlightRectangle(10,10,100,100,1,vbCyan)