Search Results for

    Struct Rect

    Rectangle struct

    Namespace
    Terminaux.Base.Structures @ Terminaux.dll
    Syntax
    public struct Rect


    Constructors

    Rect(int, int, int, int)

    Makes a new rectangle instance

    Declaration
    public Rect(int width, int height, int x, int y)
    Parameters
    Name Type Description
    width int

    A zero-based width

    height int

    A zero-based height

    x int

    A zero-based X coordinate

    y int

    A zero-based Y coordinate

    Rect(Size, Coordinate)

    Makes a new rectangle instance

    Declaration
    public Rect(Size size, Coordinate coord)
    Parameters
    Name Type Description
    size Size

    Zero-based width and height

    coord Coordinate

    Zero-based X and Y coordinates



    Properties

    Coordinate

    Coordinate of the rectangle (starting point, upper left corner)

    Property Value
    Coordinate
    Declaration
    public readonly Coordinate Coordinate { get; }

    CoordinateEnd

    Coordinate of the rectangle (ending point, lower right corner)

    Property Value
    Coordinate
    Declaration
    public readonly Coordinate CoordinateEnd { get; }

    CoordinateLowerLeft

    Coordinate of the rectangle (lower left corner)

    Property Value
    Coordinate
    Declaration
    public readonly Coordinate CoordinateLowerLeft { get; }

    CoordinateUpperRight

    Coordinate of the rectangle (upper right corner)

    Property Value
    Coordinate
    Declaration
    public readonly Coordinate CoordinateUpperRight { get; }

    Size

    Size of the rectangle

    Property Value
    Size
    Declaration
    public readonly Size Size { get; }


    Methods

    Equals(object?)

    Returns
    bool
    Declaration
    public override bool Equals(object? obj)
    Parameters
    Name Type Description
    obj object
    Overrides
    System.ValueType.Equals(object)

    Equals(Rect)

    Returns
    bool
    Declaration
    public bool Equals(Rect other)
    Parameters
    Name Type Description
    other Rect

    GetHashCode()

    Returns
    int
    Declaration
    public override int GetHashCode()
    Overrides
    System.ValueType.GetHashCode()

    ToString()

    Generates a string containing rectangle info

    Returns
    string

    Rectangle info in a string

    Declaration
    public override string ToString()
    Overrides
    System.ValueType.ToString()


    Operators

    operator ==(Rect, Rect)

    Returns
    bool
    Declaration
    public static bool operator ==(Rect left, Rect right)
    Parameters
    Name Type Description
    left Rect
    right Rect

    operator !=(Rect, Rect)

    Returns
    bool
    Declaration
    public static bool operator !=(Rect left, Rect right)
    Parameters
    Name Type Description
    left Rect
    right Rect
    Show / Hide Table of Contents

    Table of contents



      About

      © 2014-2026 Aptivi

      Find us

    •  
    •  
    •  
    •  
    •  
    •  
    • Social media

    •  
    •  
    •  
    •