Search Results for

    Show / Hide Table of Contents

    TUIRectangle Structure

    A platform independent rectangle. Coordinates are floating point numbers.

    Syntax

    Namespace: FlexCel.Core

    public struct TUIRectangle

    Constructors

    Name Description
    TUIRectangle Creates a new UIRectangle with the specified starting point, height and width.

    Methods

    Name Description
    FromLTRB Creates a new rectangle with the specified coordinates.
    Inflate Overloaded
    Inflate(Double, Double)
    Inflate(TUIRectangle, Double, Double)
    Offset Moves the rectangle by (dx, dy), keeping the with and height the same.
    Union Returns a new rectangle which contains both of the source rectangles.
    MakePositive This method ensures both width adn height are positive. If they are negative, X and Y are moved so the rectangle is the same but with positive dimensions.
    Contains Returns true if point is inside the rectangle.
    FullyInside Returns true if this rectangle is fully inside other.
    FullyOutside Returns true if this rectangle is fully outside other.
    ToString Returns a string with the rectangle's data.
    Intersect Returns a rectangle which is the intersection of this one and the new one.

    Operators

    Name Description
    Implicit Conversion Overloaded
    Implicit conversion from TUIRectangle to RectangleF
    Implicit conversion from RectangleF to TUIRectangle

    Properties

    Name Description
    Empty Returns a rectangle with X = 0, Y = 0, Width = 0 and Height = 0.
    Location Returns a TPointF with the Left and Top coordinates of the rectangle.
    BottomRight Returns a TPointF with the Right and Bottom coordinates of the rectangle.
    X Left coordinate of the rectangle.
    Y Top coordinate of the rectangle.
    Width Width of the rectangle.
    Height Height of the rectangle.
    Top Top coordinate. This is the same as Y, but it is readonly. (Y is read write).
    Left Left coordinate. This is the same as X, but it is readonly. (X is read write).
    Right Right coordinate.
    Bottom Bottom coordinate.
    In This Article
    Back to top FlexCel Studio for the .NET Framework v7.24.0.0
    © 2002 - 2025 tmssoftware.com