rvico TRichView Reference | TRichViewEdit


Top  Previous  Next

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.

unicode Unicode note: If Unicode text style is applied to ANSI text item, text in this item is converted from ANSI to Unicode, and vice versa.

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:


TRichView © trichview.com