Label.maxWidthChars

int maxWidthChars() @property

Get maxWidthChars property.

Returns

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 for details of how property@Gtk.Label:width-chars and property@Gtk.Label:max-width-chars determine the width of ellipsized and wrapped labels.

void maxWidthChars(int propval) @property

Set maxWidthChars property.

Parameters

propvalThe 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 for details of how property@Gtk.Label:width-chars and property@Gtk.Label:max-width-chars determine the width of ellipsized and wrapped labels.