In This Topic

AddRegion Method (GdViewer)

In This Topic
Adds and highlights a new region on the current page of the document displayed in the GdViewer control according to what you have specified. The region is added to the list of all highlighted regions related to the displayed document.
Overload List
OverloadDescription
Adds and highlights a new region on the current page of the document displayed in the GdViewer control according to what you have specified. This method uses pixels to define the position and the size of the region's rectangle.

The region is highlighted immediately using the specified color. At the same, it is added to the list of all highlighted regions related to the displayed document. You can find out the number of currently defined highlighted regions using the RegionCount method.

Please note that highlighted regions are also determined using both SearchText(String,Int32,Boolean) and SearchText(String,Int32,Boolean,Boolean) methods.

You can also benefit from using several events related to highlighted regions like RegionEditedByUser, RegionMovedByUser , RegionResizedByUser and RegionSelectedByUser.

 
Adds and highlights a new region on the current page of the document displayed in the GdViewer control according to what you have specified. This method uses pixels to define the position and the size of the region's rectangle.

The region is highlighted immediately using the specified color. At the same, it is added to the list of all highlighted regions related to the displayed document. You can find out the number of currently defined highlighted regions using the RegionCount method.

Please note that highlighted regions are also determined using both SearchText(String,Int32,Boolean) and SearchText(String,Int32,Boolean,Boolean) methods.

You can also benefit from using several events related to highlighted regions like RegionEditedByUser, RegionMovedByUser , RegionResizedByUser and RegionSelectedByUser.

 
See Also