Contents - Index - Previous - Next


ParagraphStyle property




Declaration
property ParagraphStyle: WideString;

Description

Specifies the paragraph style of the selection.

When reading the property, the return value is a string containing the name of an HTML paragraph style, such as 'Normal' or 'Heading 1'. If the text has not been formatted with a block format, the property returns 'Normal'. If the property cannot return a single format (for example, if the selection contains text from paragraphs with different formats), the property returns the empty string (''). The property is only supported if the selection contains text. The property returns the style information for the paragraph in which the insertion point appears; it is not necessary to select the entire paragraph.

Writing the property will be ignored if the selection includes an element, such as a table or control, that does not support HTML formats. If the selection supports formats, the property may be assigned.

Tip:  To get a list of valid HTML paragraph format names, use the GetParagraphStyles method.

Run-time only