Search Results for

    Struct Rectangle

    A rectangle in screen-space coordinates.

    Implements
    System.IEquatable<Rectangle>
    Inherited Members
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetType()
    System.Object.ReferenceEquals(System.Object, System.Object)
    Namespace: WinMan
    Assembly: WinMan.dll
    Syntax
    public struct Rectangle : IEquatable<Rectangle>

    Constructors

    | Improve this Doc View Source

    Rectangle(Int32, Int32, Int32, Int32)

    Declaration
    public Rectangle(int left, int top, int right, int bottom)
    Parameters
    Type Name Description
    System.Int32 left
    System.Int32 top
    System.Int32 right
    System.Int32 bottom

    Properties

    | Improve this Doc View Source

    Bottom

    Declaration
    public int Bottom { get; }
    Property Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    BottomLeft

    Declaration
    public Point BottomLeft { get; }
    Property Value
    Type Description
    Point
    | Improve this Doc View Source

    BottomRight

    Declaration
    public Point BottomRight { get; }
    Property Value
    Type Description
    Point
    | Improve this Doc View Source

    Center

    Declaration
    public Point Center { get; }
    Property Value
    Type Description
    Point
    | Improve this Doc View Source

    Empty

    Declaration
    public static Rectangle Empty { get; }
    Property Value
    Type Description
    Rectangle
    | Improve this Doc View Source

    Height

    Declaration
    public int Height { get; }
    Property Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    Left

    Declaration
    public int Left { get; }
    Property Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    Right

    Declaration
    public int Right { get; }
    Property Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    Size

    Declaration
    public Point Size { get; }
    Property Value
    Type Description
    Point
    | Improve this Doc View Source

    Top

    Declaration
    public int Top { get; }
    Property Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    TopLeft

    Declaration
    public Point TopLeft { get; }
    Property Value
    Type Description
    Point
    | Improve this Doc View Source

    TopRight

    Declaration
    public Point TopRight { get; }
    Property Value
    Type Description
    Point
    | Improve this Doc View Source

    Width

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

    Methods

    | Improve this Doc View Source

    Contains(Point)

    Declaration
    public bool Contains(Point pt)
    Parameters
    Type Name Description
    Point pt
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Contains(Rectangle)

    Declaration
    public bool Contains(Rectangle rect)
    Parameters
    Type Name Description
    Rectangle rect
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Equals(Object)

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    System.Object obj
    Returns
    Type Description
    System.Boolean
    Overrides
    System.ValueType.Equals(System.Object)
    | Improve this Doc View Source

    Equals(Rectangle)

    Declaration
    public bool Equals(Rectangle other)
    Parameters
    Type Name Description
    Rectangle other
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32
    Overrides
    System.ValueType.GetHashCode()
    | Improve this Doc View Source

    OffsetAndSize(Int32, Int32, Int32, Int32)

    Declaration
    public static Rectangle OffsetAndSize(int left, int top, int width, int height)
    Parameters
    Type Name Description
    System.Int32 left
    System.Int32 top
    System.Int32 width
    System.Int32 height
    Returns
    Type Description
    Rectangle
    | Improve this Doc View Source

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String
    Overrides
    System.ValueType.ToString()

    Operators

    | Improve this Doc View Source

    Equality(Rectangle, Rectangle)

    Declaration
    public static bool operator ==(Rectangle lhs, Rectangle rhs)
    Parameters
    Type Name Description
    Rectangle lhs
    Rectangle rhs
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Inequality(Rectangle, Rectangle)

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

    Implements

    System.IEquatable<T>
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX