SetRichTextStyle

Description

Sets the style of the font to use while editing columns with the RichText edit style.

Applies to

DataWindow control

Syntax

Integer dwcontrol.SetRichTextStyle ( boolean bold, boolean underline, boolean italic, boolean strikeout, )

Argument

Description

dwcontrol

A reference to the DataWindow control

bold

A boolean for the bold style

underline

A boolean for the underlined style

italic

A boolean for the italic style

strikeout

A boolean for the strikeout style

Returns

Returns 0 if it succeeds and –1 if an error occurs. If the argument’s value is null, SetRichTextStyle returns null.

Usage

You can call this method from a button in a custom toolbar that you use to set display characteristics of columns with the RichText edit style.

Examples

Example 1

This example sets an underlined, bolded font as the current font for editing columns with a RichText edit style:

Integer li_rtn

li_rtn = dw_1.SetRichTextStyle(true, false, false, &

     false)

See also