gtk-sharp 2.12.0.0 Gtk# is thread aware, but not thread safe; See the Gtk# Thread Programming for details. A widget that displays a small to medium amount of text This widget displays a small to medium amount of text, it is the widget used by other widgets, such as and for displaying text. Labels may contain mnemonics; mnemonics are underlined characters in the label, used for keyboard navigation. To provide the mnemonic, put an underscore before the mnemonic character, such as "_File". Gtk.Misc Method System.Void Selects a range of characters in the label, if the label is selectable. start offset (in characters not bytes) end offset (in characters not bytes) Selects a range of characters in the label, if the label is selectable. See . If the label is not selectable, this function has no effect. If or are -1, then the end of the label will be substituted. Constructor Internal constructor Pointer to the C object. This is an internal constructor, and should not be used by user code. Constructor Creates a new label with the given text inside it. You can pass to get an empty label widget. The text of the label Creates a new label with the given text inside it. You can pass to get an empty label widget. Property System.String Sets the text of the label Sets the text of the label. If characters in are preceded by an underscore, they are underlined indicating that they represent a keyboard accelerator called a mnemonic. The mnemonic key can be used to activate another widget, chosen automatically, or explicitly using . To be added. Property System.String Parses str which is marked up with the Pango text markup language a GtkLabel Parses which is marked up with the Pango text markup language, setting the text of the label and attribute list based on the parse results. Property System.Boolean Toggles line wrapping within the GtkLabel widget. if the lines of the label are automatically wrapped. Property System.String The text within the widget. a When setting the text within the widget, it overwrites any text that was there before. Property Pango.Layout Gets the used to display the label. the for this label Gets the used to display the label. The layout is useful to e.g. convert text positions to pixel positions, in combination with . The returned layout is owned by the label so need not be freed by the caller. Property System.String Parses which is marked up with the Pango text markup language, setting the text of the label and attribute list based on the parse results. a new label widget Parses which is marked up with the Pango text markup language, setting the text of the label and attribute list based on the parse results. If characters in the string are preceded by an underscore, they are underlined indicating that they represent a keyboard accelerator called a mnemonic. The mnemonic key can be used to activate another widget, chosen automatically, or explicitly using . Property System.Boolean Toggle whether or not the label allow the user to select text from the label, for copy-and-paste. if the label is selectable, and if not. GLib.Property("selectable") Property Gtk.Justification The alignment of the lines in the text of the label relative to each other The justification of the label Sets the alignment of the lines in the text of the label relative to each other. is the default value when the widget is first created with . If you instead want to set the alignment of the label as a whole, set instead. This has no effect on labels containing only a single line. GLib.Property("justify") Property System.Int32 The current position of the insertion cursor in characters. The current position of the insertion cursor in characters GLib.Property("cursor-position") Property System.Int32 The position of the opposite end of the selection from the cursor in characters. The position of the opposite end of the selection from the cursor in characters. GLib.Property("selection-bound") Property Gtk.Widget The widget to be activated when the label's mnemonic key is pressed. The widget to be activated when the label's mnemonic key is pressed. GLib.Property("mnemonic-widget") Property System.String The text from a label widget including any embedded underlines indicating mnemonics and Pango markup. The text of the label widget. You can include markup tags to change your text appearance. See for more information. GLib.Property("label") Property System.String A string with _ characters in positions correspond to characters in the text to underline. To be added. GLib.Property("pattern") Property System.UInt32 The mnemonic accelerator key for this label. The mnemonic accelerator key for this label. GLib.Property("mnemonic-keyval") Property System.Boolean Whether lines should be wrapped if the text becomes too wide. whether lines should be wrapped GLib.Property("wrap") Property System.Boolean Whether an underline in the text indicates the next character should be used for the mnemonic accelerator key. Whether an underline in the text indicates the next character should be used for the mnemonic accelerator key. GLib.Property("use-underline") Property System.Boolean Whether the label's text is interpreted as marked up with the Pango text markup language ( more information at http://developer.gnome.org/doc/API/2.0/pango/PangoMarkupFormat.html ). if the label's text should be parsed for markup Here are a few examples of the markup you can use: TagDescription<b>Bold<big>Makes font relatively larger<i>Italic<s>Strikethrough<sub>Subscript<sup>Superscript<small>Makes font relatively smaller<tt>Monospace font<u>Underline Gtk.Label label = new Gtk.Label(); label.LabelProp = "The brown <u>fox</u> etc. and the <big>lazy</big> dog"; label.UseMarkup = true; GLib.Property("use-markup") Property Pango.AttrList The attribute list set on the label. the attribute list set on the label This function does not reflect attributes that come from the labels markup (see ). If you want to get the effective attributes for the label, use on the label's property. GLib.Property("attributes") Event Gtk.MoveCursorHandler Emitted when the cursor is moved. GLib.Signal("move_cursor") Event Gtk.PopulatePopupHandler Emitted when a right-click pop-up menu is displayed GLib.Signal("populate_popup") Event System.EventHandler Emitted when text is copied to the clipboard. GLib.Signal("copy_clipboard") Property GLib.GType GType Property. a Returns the native value for . Method System.Void Default handler for the event. Override this method in a subclass to provide a default handler for the event. Method System.Void Default handler for the event. a Override this method in a subclass to provide a default handler for the event. Method System.Void Default handler for the event. a a a Override this method in a subclass to provide a default handler for the event. Constructor Internal constructor a This is not typically used by C# code. System.Obsolete Method Gtk.Label Basic constructor. a a Constructor Creates a new without text. Method System.UInt32 Deprecated. a a Checks the string passed as the parameter for underscores, and then underlines the characters following the underscores. It will take the first underlined character in a label and return it as a lower-case accelerator key, e.g. _Save will return the accelerator key value for "s". Method System.Void Deprecated; do not use in new code. a Gets the current string of text within the Label object and writes it to . It does not make a copy of this string so you must not write to it. Property System.Double To be added a To be added GLib.Property("angle") Property System.Boolean To be added a To be added GLib.Property("single-line-mode") Property Pango.EllipsizeMode To be added a To be added GLib.Property("ellipsize") Property System.Int32 To be added a To be added GLib.Property("width-chars") Property System.Int32 To be added a To be added GLib.Property("max-width-chars") Method System.Void To be added. To be added. To be added. To be added. Method System.Boolean To be added. To be added. To be added. To be added. To be added. Property Pango.WrapMode Indicates the wrap mode for the label. a . GLib.Property("wrap-mode")