Font (gb.web.gui)

Depuis 3.21

This class represents a font as described by the CSS standard.

It is used by the WebControl class, and for drawing inside a WebDrawingArea with the Paint class.

Cette classe est instanciable.

Cette classe se comporte comme un tableau statique en lecture seule.

Propriétés
Bold   Return or set if the font is bold.
Decoration   Return or set the font decoration, i.e. the CSS font-decoration property.
Family   Return or set the font family, i.e. the CSS font-family property.
Italic   Return or set if the font is italic.
LineHeight   Return or set the line height, i.e. the CSS line-height property.
Name   Return or set the font family, i.e. the CSS font-family property.
Normal   Return or set if the font is "normal", i.e. if it does not inherit the font of a parent control.
Size   Return or set the font size, i.e. the CSS font-size property.
Stretch   Return or set the font stretch, i.e. the CSS font-stretch property.
Strikeout   Return or set if the font is striked out.
Style   Return or set the font style, i.e. the CSS font-style property.
Underline   Return or set if the font is underlined.
Weight   Return or set the font weight, i.e. the CSS font-weight property.

Méthodes
Copy   Return a copy of the font.
ToString   Return the string description of a font.

Evénements
Change   This event is raised when a font property has changed.