Label.label

Set label property.

  1. string label [@property getter]
  2. string label [@property setter]
    class Label
    @property
    void
    label
    (
    string propval
    )

Parameters

propval string

The contents of the label.

If the string contains Pango markup (see func@Pango.parse_markup), you will have to set the property@Gtk.Label:use-markup property to true in order for the label to display the markup attributes. See also gtk.label.Label.setMarkup for a convenience function that sets both this property and the property@Gtk.Label:use-markup property at the same time.

If the string contains underlines acting as mnemonics, you will have to set the property@Gtk.Label:use-underline property to true in order for the label to display them.