GetRichTextSize

Description

Gets the current font size setting for editing columns with the RichText edit style.

Applies to

DataWindow control

Syntax

Integer dwcontrol.GetRichTextSize ( REF integer size )

Argument

Description

dwcontrol

A reference to the DataWindow control

size

Value indicating the point size of the font; if the selected text is a mix of sizes, the value is 0

Returns

Returns an integer to indicate whether the column that you selected has the RichText edit style and whether the content has one or more sizes applied.

Usage

You can call this method from a button in a custom toolbar that you use to obtain current font settings for columns with the RichText edit style.

Examples

Example 1

This example obtains the current size setting of the font to be used for editing columns with a RichText edit style:

Integer li_integer

Integer li_textsize

li_integer = dw_1.GetRichTextSize(li_textsize)

If 10 point text is selected when the above script is called, li_textsize is 10 and the method returns 0. If a mix of sizes is selected, li_textsize is 0 and the method returns –2.

See also