menu

UWP

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class RectangleF - UWP API Reference | Syncfusion

    Show / Hide Table of Contents

    Class RectangleF

    Inheritance
    System.Object
    RectangleF
    Namespace: Syncfusion.XlsIO.Metro.Implementation.Drawing
    Assembly: Syncfusion.XlsIO.UWP.dll
    Syntax
    public sealed class RectangleF : ValueType

    Constructors

    RectangleF(Point, Size)

    Declaration
    public RectangleF(Point location, Size size)
    Parameters
    Type Name Description
    Point location
    Size size

    RectangleF(Double, Double, Double, Double)

    Declaration
    public RectangleF(double x, double y, double width, double height)
    Parameters
    Type Name Description
    System.Double x
    System.Double y
    System.Double width
    System.Double height

    Fields

    Empty

    Declaration
    public static readonly RectangleF Empty
    Field Value
    Type
    RectangleF

    Properties

    Bottom

    Declaration
    public double Bottom { get; }
    Property Value
    Type
    System.Double

    Height

    Declaration
    public double Height { get; set; }
    Property Value
    Type
    System.Double

    IsEmpty

    Declaration
    public bool IsEmpty { get; }
    Property Value
    Type
    System.Boolean

    Left

    Declaration
    public double Left { get; }
    Property Value
    Type
    System.Double

    Right

    Declaration
    public double Right { get; }
    Property Value
    Type
    System.Double

    Top

    Declaration
    public double Top { get; }
    Property Value
    Type
    System.Double

    Width

    Declaration
    public double Width { get; set; }
    Property Value
    Type
    System.Double

    X

    Declaration
    public double X { get; set; }
    Property Value
    Type
    System.Double

    Y

    Declaration
    public double Y { get; set; }
    Property Value
    Type
    System.Double

    Methods

    Contains(Point)

    Declaration
    public bool Contains(Point pt)
    Parameters
    Type Name Description
    Point pt
    Returns
    Type
    System.Boolean

    Contains(Rectangle)

    Declaration
    public bool Contains(Rectangle rect)
    Parameters
    Type Name Description
    Rectangle rect
    Returns
    Type
    System.Boolean

    Contains(Double, Double)

    Declaration
    public bool Contains(double x, double y)
    Parameters
    Type Name Description
    System.Double x
    System.Double y
    Returns
    Type
    System.Boolean

    Equals(Object)

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    System.Object obj
    Returns
    Type
    System.Boolean

    FromLTRB(Double, Double, Double, Double)

    Declaration
    public static RectangleF FromLTRB(double left, double top, double right, double bottom)
    Parameters
    Type Name Description
    System.Double left
    System.Double top
    System.Double right
    System.Double bottom
    Returns
    Type
    RectangleF

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type
    System.Int32

    Inflate(Size)

    Declaration
    public void Inflate(Size size)
    Parameters
    Type Name Description
    Size size

    Inflate(RectangleF, Double, Double)

    Declaration
    public static RectangleF Inflate(RectangleF rect, double x, double y)
    Parameters
    Type Name Description
    RectangleF rect
    System.Double x
    System.Double y
    Returns
    Type
    RectangleF

    Inflate(Double, Double)

    Declaration
    public void Inflate(double width, double height)
    Parameters
    Type Name Description
    System.Double width
    System.Double height

    Intersect(RectangleF)

    Declaration
    public void Intersect(RectangleF rect)
    Parameters
    Type Name Description
    RectangleF rect

    Intersect(RectangleF, RectangleF)

    Declaration
    public static RectangleF Intersect(RectangleF a, RectangleF b)
    Parameters
    Type Name Description
    RectangleF a
    RectangleF b
    Returns
    Type
    RectangleF

    IntersectsWith(Rectangle)

    Declaration
    public bool IntersectsWith(Rectangle rect)
    Parameters
    Type Name Description
    Rectangle rect
    Returns
    Type
    System.Boolean

    Offset(Point)

    Declaration
    public void Offset(Point pos)
    Parameters
    Type Name Description
    Point pos

    Offset(Int32, Int32)

    Declaration
    public void Offset(int x, int y)
    Parameters
    Type Name Description
    System.Int32 x
    System.Int32 y

    ToString()

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

    Union(RectangleF, RectangleF)

    Declaration
    public static RectangleF Union(RectangleF a, RectangleF b)
    Parameters
    Type Name Description
    RectangleF a
    RectangleF b
    Returns
    Type
    RectangleF

    Operators

    Equality(RectangleF, RectangleF)

    Declaration
    public static bool operator ==(RectangleF left, RectangleF right)
    Parameters
    Type Name Description
    RectangleF left
    RectangleF right
    Returns
    Type
    System.Boolean

    Inequality(RectangleF, RectangleF)

    Declaration
    public static bool operator !=(RectangleF left, RectangleF right)
    Parameters
    Type Name Description
    RectangleF left
    RectangleF right
    Returns
    Type
    System.Boolean

    Extension Methods

    DateTimeExtension.ToDateTime(Object)
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved