Search Results for

    Show / Hide Table of Contents

    Class Rect

    Inheritance
    System.Object
    Rect
    Implements
    System.IEquatable<Rect>
    Namespace: DynamicTesseract
    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
    Type Description
    Rect

    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
    public int X1 { get; }
    Property Value
    Type Description
    System.Int32

    X2

    Declaration
    public int X2 { get; }
    Property Value
    Type Description
    System.Int32

    Y1

    Declaration
    public int Y1 { get; }
    Property Value
    Type Description
    System.Int32

    Y2

    Declaration
    public int Y2 { get; }
    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
    Type Description
    Rect

    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
    Type Name Description
    Rect lhs
    Rect rhs
    Returns
    Type Description
    System.Boolean

    Inequality(Rect, Rect)

    Declaration
    public static bool operator !=(Rect lhs, Rect rhs)
    Parameters
    Type Name Description
    Rect lhs
    Rect rhs
    Returns
    Type Description
    System.Boolean

    Implements

    System.IEquatable<>
    ☀
    ☾
    Downloads
    • Download with Nuget
    • Start for Free
    In This Article
    Back to top
    Install with Nuget
    Want to deploy IronOCR to a live project for FREE?
    What’s included?
    30 days of fully-functional product
    Test and share in a live environment
    No watermarks in production
    Get your free 30-day Trial Key instantly.
    No credit card or account creation required
    Your Trial License Key has been emailed to you.
    Download IronOCR free to apply
    your Trial Licenses Key
    Install with NuGet View Licenses
    Licenses from $499. Have a question? Get in touch.