Field_SetFontStyle()

Examples


The Field_SetFontStyle() function sets the style of the font used for a field.

Syntax

Field_SetFontStyle(text_field, style)

Parameters

text_field – The field for which the font style will be set.

style – An integer corresponding to one of the following constants:

[spacer]

Constant

Description

FONT_STYLE_PLAIN

Plain

FONT_STYLE_BOLD

Bold

FONT_STYLE_ITALIC

Italic

FONT_STYLE_UNDERLINE

Underline


You can apply multiple styles to a field by adding the style constants together. For example, to specify bold and underline, use FONT_STYLE_BOLD + FONT_STYLE_UNDERLINE.

Return value

A boolean. True indicates the font style was set, while false indicates it was not.


Documentation Feedback