Label.maxWidthChars

Get maxWidthChars property.

  1. int maxWidthChars [@property getter]
    class Label
    @property
    int
    maxWidthChars
    ()
  2. int maxWidthChars [@property setter]

Return Value

Type: int

The desired maximum width of the label, in characters. If this property is set to -1, the width will be calculated automatically.

See the section on [text layout][label-text-layout] for details of how #GtkLabel:width-chars and #GtkLabel:max-width-chars determine the width of ellipsized and wrapped labels.