5.20193.637
Size Wijmo API Class

Size Class

Class that represents a size (with width and height).

Heirarchy

  • Size

Constructors

Properties

Methods

Constructors

constructor

  • new Size(width?: number, height?: number): Size
  • Initializes a new instance of the Size class.

    Parameters

    • Optional width: number

      Width of the new Size.

    • Optional height: number

      Height of the new Size.

    Returns Size

Properties

height

height: number

Gets or sets the height of this Size.

width

width: number

Gets or sets the width of this Size.

Methods

clone

  • Creates a copy of this Size.

    Returns Size

equals

  • equals(sz: Size): boolean
  • Returns true if a Size has the same dimensions as this Size.

    Parameters

    Returns boolean