| Visual Basic (Declaration) | |
|---|---|
Public Property Area As Rectangle | |
| Visual Basic (Usage) | Copy Code |
|---|---|
| |
| C# | |
|---|---|
public Rectangle Area {get; set;} | |
| Exception | Description |
|---|---|
| ArgumentException | Thrown when setting the property to an area contains one or more negative values for position or dimension. |
| ArgumentNullException | Thrown when setting the property to a null value. |
The default value is X : 0, Y : 0, Width : 0, Height : 0.
To perform recognition on the entire image, all the Area property values (X, Y, Width, Height) must be set to zero.
Throws an InvalidAreaException when attempting to set an area outside of the image bounds.
