bitbybit.dev v1.0.0-rc.1
    Preparing search index...

    Class BabylonGuiTextBlock

    Index

    Constructors

    create

    • Creates text block

      Parameters

      Returns TextBlock

      create text block

      true

    get

    • Gets the text of the text block

      Parameters

      Returns string

      text of the text block

      get text block text

    • Gets the text wrapping of the text block

      Parameters

      Returns any

      text wrapping of the text block

      get text wrapping

    • Gets the line spacing of the text block

      Parameters

      Returns string | number

      line spacing of the text block

      get line spacing

    • Gets the outline width of the text block

      Parameters

      Returns number

      outline width of the text block

      get outline width

    • Gets the resize to fit of the text block

      Parameters

      Returns boolean

      resize to fit of the text block

      get resize to fit

    • Gets the text horizontal alignment of the text block

      Parameters

      Returns number

      text horizontal alignment of the text block

      get text horizontal alignment

    • Gets the text vertical alignment of the text block

      Parameters

      Returns number

      text vertical alignment of the text block

      get text vertical alignment

    positioning

    • Change the alignment for the text

      Parameters

      • inputs: AlignmentDto<TextBlock>

        the text block and the alignment values

      Returns TextBlock

      control that has changed text alignment

      align text block text

    set

    • Change the text outline for the text

      Parameters

      Returns TextBlock

      control that has changed text outline

      text outline

    • Sets the new text to the text block

      Parameters

      Returns TextBlock

      control that has changed text

      set text block text

    • Enable or disable resize to fit

      Parameters

      Returns TextBlock

      control that has enabled or disabled resize to fit

      set resize to fit

    • Sets the new text wrapping to the text block

      Parameters

      Returns TextBlock

      control that has changed text wrapping

      set text wrapping

    • Sets the line spacing of the text

      Parameters

      Returns TextBlock

      control that has changed line spacing

      set line spacing