menu

Xamarin.Forms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class SizeF - Xamarin.Forms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class SizeF

    Inheritance
    System.Object
    SizeF
    Namespace: Syncfusion.Drawing
    Assembly: Syncfusion.Compression.Portable.dll
    Syntax
    public sealed class SizeF : ValueType

    Constructors

    SizeF(SizeF)

    Declaration
    public SizeF(SizeF size)
    Parameters
    Type Name Description
    SizeF size

    SizeF(Single, Single)

    Declaration
    public SizeF(float width, float height)
    Parameters
    Type Name Description
    System.Single width
    System.Single height

    Fields

    Empty

    Declaration
    public static readonly SizeF Empty
    Field Value
    Type
    SizeF

    Properties

    Height

    Declaration
    public float Height { get; set; }
    Property Value
    Type
    System.Single

    IsEmpty

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

    Width

    Declaration
    public float Width { get; set; }
    Property Value
    Type
    System.Single

    Methods

    Add(SizeF, SizeF)

    Declaration
    public static SizeF Add(SizeF sz1, SizeF sz2)
    Parameters
    Type Name Description
    SizeF sz1
    SizeF sz2
    Returns
    Type
    SizeF

    Equals(Object)

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

    GetHashCode()

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

    Subtract(SizeF, SizeF)

    Declaration
    public static SizeF Subtract(SizeF sz1, SizeF sz2)
    Parameters
    Type Name Description
    SizeF sz1
    SizeF sz2
    Returns
    Type
    SizeF

    ToSize()

    Declaration
    public Size ToSize()
    Returns
    Type
    Size

    ToString()

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

    Operators

    Addition(SizeF, SizeF)

    Declaration
    public static SizeF operator +(SizeF sz1, SizeF sz2)
    Parameters
    Type Name Description
    SizeF sz1
    SizeF sz2
    Returns
    Type
    SizeF

    Equality(SizeF, SizeF)

    Declaration
    public static bool operator ==(SizeF sz1, SizeF sz2)
    Parameters
    Type Name Description
    SizeF sz1
    SizeF sz2
    Returns
    Type
    System.Boolean

    Explicit(SizeF to PointF)

    Declaration
    public static explicit operator PointF(SizeF size)
    Parameters
    Type Name Description
    SizeF size
    Returns
    Type
    PointF

    Inequality(SizeF, SizeF)

    Declaration
    public static bool operator !=(SizeF sz1, SizeF sz2)
    Parameters
    Type Name Description
    SizeF sz1
    SizeF sz2
    Returns
    Type
    System.Boolean

    Subtraction(SizeF, SizeF)

    Declaration
    public static SizeF operator -(SizeF sz1, SizeF sz2)
    Parameters
    Type Name Description
    SizeF sz1
    SizeF sz2
    Returns
    Type
    SizeF
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved