Class Rect
Inheritance
System.Object
Rect
Assembly: IronOcr.dll
Syntax
public sealed class Rect : ValueType, IEquatable<Rect>
Constructors
Rect(Int32, Int32, Int32, Int32)
Declaration
public Rect(int x, int y, int width, int height)
Parameters
Type |
Name |
Description |
System.Int32 |
x |
|
System.Int32 |
y |
|
System.Int32 |
width |
|
System.Int32 |
height |
|
Fields
Empty
Declaration
public static readonly Rect Empty
Field Value
Properties
Height
Declaration
public int Height { get; }
Property Value
Type |
Description |
System.Int32 |
|
Width
Declaration
public int Width { get; }
Property Value
Type |
Description |
System.Int32 |
|
X1
Declaration
Property Value
Type |
Description |
System.Int32 |
|
X2
Declaration
Property Value
Type |
Description |
System.Int32 |
|
Y1
Declaration
Property Value
Type |
Description |
System.Int32 |
|
Y2
Declaration
Property Value
Type |
Description |
System.Int32 |
|
Methods
Equals(Rect)
Declaration
public bool Equals(Rect other)
Parameters
Type |
Name |
Description |
Rect |
other |
|
Returns
Type |
Description |
System.Boolean |
|
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
FromCoords(Int32, Int32, Int32, Int32)
Declaration
public static Rect FromCoords(int x1, int y1, int x2, int y2)
Parameters
Type |
Name |
Description |
System.Int32 |
x1 |
|
System.Int32 |
y1 |
|
System.Int32 |
x2 |
|
System.Int32 |
y2 |
|
Returns
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Operators
Equality(Rect, Rect)
Declaration
public static bool operator ==(Rect lhs, Rect rhs)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Inequality(Rect, Rect)
Declaration
public static bool operator !=(Rect lhs, Rect rhs)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Implements
System.IEquatable<>