SetRichTextFaceName

Description

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

Applies to

DataWindow control

Syntax

Integer dwcontrol.SetRichTextFaceName ( string typeface )

Argument

Description

dwcontrol

A reference to the DataWindow control

typeface

A string value for the typeface that you want to set for editing columns with the RichText edit style

Returns

Returns 0 if it succeeds and –1 if an error occurs. If the argument’s value is null, SetRichTextFaceName 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 Arial as the current typeface to use for editing columns that have a RichText edit style:

Integer li_rtn

li_rtn = dw_1.SetRichTextFaceName("Arial")

See also