<< Click to display table of contents >>


Applies the specified text style to the selected items (text items, tabs, label items)

procedure ApplyTextStyle(TextStyleNo: Integer);

TextStyleNo index in the collection of text styles (Style.TextStyles).

If selection is empty, this method only sets CurTextStyleNo to TextStyleNo. If the selection is not empty, the method changes style of text items in the selection.

If the existing text items are formatted with styles having rvprStyleProtect in their Protection, this method does not change their styles.

Method type: editstyle editing-style.

If you want to implement commands like "make bold", "change text color", "apply font", use ApplyStyleConversion instead of this method.

See also properties:



See also methods: