com.aspose.html.drawing

Class Size

  • All Implemented Interfaces:
    Cloneable


    public class Size
    extends Object
    implements Cloneable

    Stores a values which specify a Height and Width.

    • Constructor Detail

      • Size

        public Size()

        Initializes a new instance of the Size class.

      • Size

        public Size(int width,
                    int height)

        Initializes a new instance of the Size class and specify a Height and Width in pixels.

        Parameters:
        width - The width.
        height - The height.
      • Size

        public Size(Length width,
                    Length height)

        Initializes a new instance of the Size class.

        Parameters:
        width - The width.
        height - The height.
    • Method Detail

      • getHeight

        public Length getHeight()

        Gets or sets the vertical component of this Size.

        Value: The vertical component of this Size.
      • setHeight

        public void setHeight(Length value)

        Gets or sets the vertical component of this Size.

        Value: The vertical component of this Size.
      • getWidth

        public Length getWidth()

        Gets or sets the horizontal component of this Size.

        Value: The horizontal component of this Size.
      • setWidth

        public void setWidth(Length value)

        Gets or sets the horizontal component of this Size.

        Value: The horizontal component of this Size.
      • deepClone

        public Size deepClone()