totextstyle

Purpose

Outputs the information about the paragraph style of a text fragment.

Syntax

totextstyle(parameter, $named_group)

Arguments

The function takes two mandatory arguments.

The first argument parameter takes the following values:

Parameter

Value

alignment

Text alignment.

indent_left

Left indent.

indent_right

Right indent.

indent_unit

Specifies the unit in which to output the indentation value (the default value is cm).

spacing_before

Spacing before the paragraph.

spacing_after

Spacing after the paragraph.

spacing_line

Line spacing.

spacing_line_unit

The unit of line spacing.Specifies the value in which to output the indentation value (the default value is cm).

separator

Specifies the result separator (the default value is space).

Multiple parameter values can be listed via underscore (“_”), e.g.: alignment_indent_left.

The second argument is a named group.

Returned value

It is integer or fractional number for the alignement, indent and spacing parameters and string for the other parameters.

Examples

totextstyle(indent_left, indent_unit:=mm, $m) outputs the left indentation value of the named grouop $m in millimeters.

totextstyle(indent_left, $m) outputs the left indent of the named grouop $m in centimeters.

totextstyle(alignment_indent_left_indent_right_spacing_line_spacing_line_unit, $m) displays alignment, left and right indentation, line spacing and its unit of measurement of the named grouop $m.