Label.singleLineMode

Get singleLineMode property.

  1. bool singleLineMode [@property getter]
    class Label
    @property
    bool
    singleLineMode
    ()
  2. bool singleLineMode [@property setter]

Return Value

Type: bool

Whether the label is in single line mode.

In single line mode, the height of the label does not depend on the actual text, it is always set to ascent + descent of the font. This can be an advantage in situations where resizing the label because of text changes would be distracting, e.g. in a statusbar.