Products Downloads


French version


 

Sets the font RGB color used to display the contents of the current range.

The ReturnCode parameter will be set to "0" if the method is called successfully, or to a value other than "0" if this is not the case.

Syntax

CALL_METHOD NameWordClientObject FNT_SET_COLOR_INDEX Color ReturnCode

Parameters

RGB color

NUM_BIN_4 type (input parameter)

_WRD_COLOR_AUTO

default color,

_WRD_COLOR_BLACK

"black" color,

_WRD_COLOR_BLUE

"blue" color,

_WRD_COLOR_BRIGHT_GREEN

"bright green" color,

_WRD_COLOR_DARK_RED

"dark red" color,

_WRD_COLOR_DARK_BLUE

"dark blue" color,

_WRD_COLOR_DARK_YELLOW

"dark yellow" color,

_WRD_COLOR_GREY_25

"grey 25%" color,

_WRD_COLOR_GREY_50

"grey 50%" color,

_WRD_COLOR_GREEN

"green" color,

_WRD_COLOR_PINK

"pink" color,

_WRD_COLOR_RED

"red" color,

_WRD_COLOR_TURQUOISE

"turquoise" color,

_WRD_COLOR_VIOLET

"violet" color,

_WRD_COLOR_WHITE

"white" color,

_WRD_COLOR_YELLOW

"yellow" color.

_WRD_COLOR_TEAL

"teal" color,

ReturnCode

NUM_BIN_4 type (output parameter)

 

 

Sets the location of the font used to display the contents of the current range.

The ReturnCode parameter will be set to "0" if the method is called successfully, or to a value other than "0" if this is not the case.

Syntax

CALL_METHOD NameWordClientObject FNT_SET_LOCATION Location ReturnCode

Parameters

Location

NUM_BIN_4 type (input parameter)

ReturnCode

NUM_BIN_4 type (output parameter)

Possible values:

_WRD_FONT_LOCATION_BASELINE

the text will be shown on the baseline,

_WRD_FONT_LOCATION_SUPERSCRIPT

the text will be shown in superscript,

_WRD_FONT_LOCATION_SUBSCRIPT

the text will be shown in subscript.

   

 

 

Sets the name of the font used to display the contents of the current range.

The ReturnCode parameter will be set to "0" if the method is called successfully, or to a value other than "0" if this is not the case.

Syntax

CALL_METHOD NameWordClientObject FNT_SET_NAME FontName ReturnCode

Parameters

FontName

ALPHA(50) type (input parameter)

ReturnCode

NUM_BIN_4 type (output parameter)

 

 

Sets the type of underlining applied to the font used to display the contents of the current range.

The ReturnCode parameter will be set to "0" if the method is called successfully, or to a value other than "0" if this is not the case.

Syntax

CALL_METHOD NameWordClientObject FNT_SET_UNDERLINE Underline ReturnCode

Parameters

Underline

NUM_BIN_4 type (input parameter)

Possible values:

_WRD_FONT_UNDERLINE_NONE

the text will not be underlined,

_WRD_FONT_UNDERLINE_SINGLE

the text will be underlined with a continuous line,

_WRD_FONT_UNDERLINE_DOUBLE

the text will be underlined with a continuous double line,

_WRD_FONT_UNDERLINE_WORDS

only the words will be underlined.

ReturnCode

NUM_BIN_4 type (output parameter)

 

 

Sets the style for the font used to display the contents of the current range. The style can be a combination (sum) of values.

The ReturnCode parameter will be set to "0" if the method is called successfully, or to a value other than "0" if this is not the case.

Syntax

CALL_METHOD NameWordClientObject FNT_SET_STYLE Style ReturnCode

Parameters

Style

NUM_BIN_4 type (input parameter)

_WRD_FONT_STYLE_NORMAL

the font will have the Normal style,

_WRD_FONT_STYLE_BOLD

the font will have the bold style,

_WRD_FONT_STYLE_DOUBLE_STRIKE_THROUGH

the font will have the double strikethrough style,

_WRD_FONT_STYLE_EMBOSS

the font will have the embossed style,

_WRD_FONT_STYLE_ENGRAVE

the font will have the engraved style,

_WRD_FONT_STYLE_ITALIC

the font will have the italic style,

_WRD_FONT_STYLE_OUTLINE

the font will have the outline style,

_WRD_FONT_STYLE_SHADOW

the font will have the shadow style,

_WRD_FONT_STYLE_STRIKE_THROUGH

the font will have the strikethrough style,

_WRD_FONT_STYLE_UNDERLINE

the font will have the underlined style,

ReturnCode

NUM_BIN_4 type (output parameter)

NUM_BIN_4 Style

NUM_BIN_4 ReturnCode

Style = _WRD_FONT_STYLE_BOLD + _WRD_FONT_STYLE_EMBOSS

CALL_METHOD NomObjetClientWord POL_SET_STYLE Style ReturnCode

/* the text in the range will have the bold and embossed styles only

 

 

Sets the size of the font used to display the contents of the current range. The unit of measurement used is the point.

The ReturnCode parameter will be set to "0" if the method is called successfully, or to a value other than "0" if this is not the case.

Syntax

CALL_METHOD NameWordClientObject FNT_SET_SIZE Size ReturnCode

Parameters

Size

NUM_E(15,9) type (input parameter)

ReturnCode

NUM_BIN_4 type (output parameter)

 

 

 

↑ Top of page