Skip to main content
Provides access to region lists on an image.

Methods

NameDescription
ImageRegion Add(ImageRegion imageRegion);Adds an existing region to a list. Returns the added region.
ImageRegion Add(Rectangle rectangle, Page page);Creates a new region using the passed rectangle and adds it to the field regions. Returns the added region.
ImageRegion Add(Rectangle[] rectangles, Page page);Creates a new region on the specified page using the passed rectangles and adds it to the field regions. Returns the added region.
ImageRegion Add(int left, int top, int right, int bottom, Page page);Creates a new region on the specified page using the passed rectangle boundary coordinates and adds the new region to the field regions. Returns the added region.
bool Remove(ImageRegion imageRegion);Removes a region from the list. Returns true if the region is removed successfully and returns false otherwise.
bool Remove(int imageRegionIndex);Removes a region with the specified index. Returns true if the region is removed successfully and returns false otherwise.
void Clear();Removes all regions from the list.