跳转到主要内容

方法

名称描述
ImageRegion Add(ImageRegion imageRegion);将现有区域添加到列表中。返回添加的区域。
ImageRegion Add(Rectangle rectangle, Page page);根据传入的矩形创建一个新区域,并将其添加到字段区域中。返回添加的区域。
ImageRegion Add(Rectangle[] rectangles, Page page);在指定页面上根据传入的多个矩形创建一个新区域,并将其添加到字段区域中。返回添加的区域。
ImageRegion Add(int left, int top, int right, int bottom, Page page);在指定页面上根据传入的矩形边界坐标创建一个新区域,并将该新区域添加到字段区域中。返回添加的区域。
bool Remove(ImageRegion imageRegion);从列表中移除一个区域。如果区域成功移除,则返回 true,否则返回 false
bool Remove(int imageRegionIndex);移除具有指定索引的区域。如果区域成功移除,则返回 true,否则返回 false
void Clear();清空列表中的所有区域。