Describes the class that realizes object padding.

Hierarchy

  • StiPadding

Implements

Index

Constructors

constructor

  • new StiPadding(left: number, top: number, right: number, bottom: number): StiPadding
  • Creates a new object of the type StiPadding.

    Parameters

    • left: number

      Left padding size on the object.

    • top: number

      Top padding size on the object.

    • right: number

      Right padding size on the object.

    • bottom: number

      Bottom padding size on the object.

    Returns StiPadding

Properties

bottom

bottom: number = 5

Gets or sets bottom padding size on the object.

left

left: number = 5

Gets or sets left padding size on the object.

right

right: number = 5

Gets or sets right padding size on the object.

top

top: number = 5

Gets or sets top padding size on the object.

Accessors

isEmpty

  • get isEmpty(): boolean
  • Returns boolean

Static empty

Methods

clone

  • clone(): any
  • Creates a new object that is a copy of the current instance.

    Returns any

    A new object that is a copy of this instance.

equals

  • equals(obj: any): boolean
  • Tests to see whether the specified object is a SizeD with the same dimensions as this SizeD.

    Parameters

    • obj: any

      The Object to test.

    Returns boolean

    This method returns true if obj is a SizeD and has the same width and height as this SizeD; otherwise, false.

loadFromJsonObject

  • loadFromJsonObject(jObject: StiJson): void

loadFromXml

  • loadFromXml(xmlNode: XmlNode): void
  • Parameters

    Returns void

saveToJsonObject

  • saveToJsonObject(defLeft?: number, defTop?: number, defRight?: number, defBotttom?: number): StiJson
  • Parameters

    • Default value defLeft: number = 5
    • Default value defTop: number = 5
    • Default value defRight: number = 5
    • Default value defBotttom: number = 5

    Returns StiJson

Static create

  • Creates a new object of the type StiPadding.

    Parameters

    • Default value all: number = 5

      The padding size for all sides of the object.

    Returns StiPadding

Generated using TypeDoc