Hierarchy

  • StiTextOptions

Implements

Index

Constructors

constructor

  • new StiTextOptions(rightToLeft?: boolean, lineLimit?: boolean, wordWrap?: boolean, angle?: number, hotkeyPrefix?: HotkeyPrefix, trimming?: StringTrimming, firstTabOffset?: number, distanceBetweenTabs?: number): StiTextOptions
  • Parameters

    • Default value rightToLeft: boolean = false
    • Default value lineLimit: boolean = false
    • Default value wordWrap: boolean = false
    • Default value angle: number = 0
    • Default value hotkeyPrefix: HotkeyPrefix = HotkeyPrefix.None
    • Default value trimming: StringTrimming = StringTrimming.None
    • Default value firstTabOffset: number = 40
    • Default value distanceBetweenTabs: number = 20

    Returns StiTextOptions

Properties

wordWrap

wordWrap: boolean = false

Accessors

angle

  • get angle(): number
  • set angle(value: number): void
  • Returns number

  • Parameters

    • value: number

    Returns void

distanceBetweenTabs

  • get distanceBetweenTabs(): number
  • set distanceBetweenTabs(value: number): void
  • Returns number

  • Parameters

    • value: number

    Returns void

firstTabOffset

  • get firstTabOffset(): number
  • set firstTabOffset(value: number): void
  • Returns number

  • Parameters

    • value: number

    Returns void

hotkeyPrefix

lineLimit

  • get lineLimit(): boolean
  • set lineLimit(value: boolean): void
  • Returns boolean

  • Parameters

    • value: boolean

    Returns void

rightToLeft

  • get rightToLeft(): boolean
  • set rightToLeft(value: boolean): void
  • Returns boolean

  • Parameters

    • value: boolean

    Returns void

trimming

Methods

clone

getHashCode

  • getHashCode(): number
  • Serves as a hash function for a particular type.

    Returns number

getStringFormat

  • getStringFormat(antialiasing?: boolean, zoom?: number): StringFormat
  • Parameters

    • Default value antialiasing: boolean = false
    • Default value zoom: number = 1

    Returns StringFormat

implements

  • implements(): any[]
  • Returns any[]

loadFromJsonObject

  • loadFromJsonObject(jObject: StiJson): void

loadFromXml

  • loadFromXml(xmlNode: XmlNode): void
  • Parameters

    Returns void

saveToJsonObject

Static loadFromXml

Generated using TypeDoc