gtk-sharp2.10.0.0Gtk# is thread aware, but not thread safe; See the Gtk# Thread Programming for details.A FontSelection is a widget that allows the user to select a font.The FontSelection widget lists the available fonts, styles and sizes, allowing the user to select a font. It is used in the widget to provide a box for selecting fonts.
Filters can be used to limit the fonts shown. There are 2 filters in the FontSelection - a base filter and a user filter. The base filter can not be changed by the user, so this can be used when the user must choose from the restricted set of fonts (e.g. for a terminal-type application you may want to force the user to select a fixed-width font).
The user filter can be changed or reset by the user, by using the 'Reset Filter' button or changing the options on the 'Filter' page of the widget.
Gtk.VBoxConstructorInternal constructor
Pointer to the C object.
This is an internal constructor, and should not be used by user code.ConstructorThe main way to construct a new FontSelectionCreates a new FontSelection widget that allows the user to select from the available fonts.PropertySystem.StringManage the name of the font that is selected in this widget.The name of the currently selected font.If this property is used to alter the widget's font name to a font that could not be found, the widget will retain its original font selection. See also , which returns a value indicating whether or not the new font name was found.GLib.Property("font-name")PropertySystem.StringThe text used to display a preview of the selected font.The text currently displaying the selected font.This property determines the exact string that is displayed in the 'preview area' of the FontSelection.GLib.Property("preview-text")PropertyGdk.FontGet the that is currently selected.A Gdk font object representing the selected font, or null if no font is selected.GLib.Property("font")System.ObsoletePropertyGLib.GTypeGType Property.a Returns the native value for .ConstructorProtected Constructor.
a Chain to this constructor if you have manually registered a native value for your subclass.System.ObsoleteMethodSystem.BooleanSet the current font selection
the name of the font to be selected
if the font was found and selectedThis can be used instead of setting property if you need to know whether or not was valid.