Search Results for

    Show / Hide Table of Contents

    TUIRectangle Record

    A platform independent rectangle. Coordinates are floating point numbers.

    Syntax

    Unit: FlexCel.Core

    TUIRectangle = record;

    Methods

    Name Description
    Create Creates a new UIRectangle with the specified starting point, height and width.
    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
    Equality Adapts the = operator so it returns true when both instances have the same values.
    Inequality Adapts the <> operator so it returns true when both instances have different values.

    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 VCL and FireMonkey v7.24
    © 2002 - 2025 tmssoftware.com