OverviewExamples
RichText.SetParagraphFormat ( |
Sets the paragraph format of the current selection in a richtext object.
(string) The name of the richtext object.
(table) A table containing the paragraph settings you want to modify in the richtext object, indexed by the following items.
Note: The functionality of some of the items may be depend on the version of the rich edit control available on the user's system.
KEY |
TYPE |
DESCRIPTION |
Bulleted |
boolean |
True if the text selection should be bulleted, false if it is not. |
StartIndent |
number |
The left indent of the first line to set in twips. (and all subsequent lines if Offset is 0). |
RightIndent |
number |
The right indent of the text to set, relative to the right margin, in twips. |
Offset |
number |
The indentation of the second and subsequent lines to set, relative to the indentation of the first line, in twips. |
Alignment |
number |
The paragraph alignment to set:
|
Tabs |
table |
A numerically indexed table of the tab positions to set. |
SpaceBefore |
number |
The size of the spacing above the paragraph to set, in twips. |
SpaceAfter |
number |
The size of the spacing below the paragraph to set, in twips. |
LineSpacing |
number |
The spacing between lines to set, based on the LineSpacingRule defined below. |
LineSpacingRule |
number |
Type of line spacing to set, based on one of the following values: 1 - One-and-a-half spacing. The LineSpacing item is ignored. |
BorderSpace |
number |
The space between the border and the paragraph text to set, in twips. This item is included for compatibility with Word; the rich edit control stores the values but does not use them to display text. |
BorderWidth |
number |
The border width to set, in twips. |
Borders |
number |
This item is only included for compatibility, and may not have any visible effect. For a description of this option, see MSDN: PARAFORMAT2 Structure.
|
Nothing. You can use Application.GetLastError to determine whether this action failed, and why.
See also: Related Actions