rvico TRichView Reference | TRichViewEdit

TCustomRichViewEdit.ApplyStyleConversion

Top  Previous  Next

Applies custom conversion procedure to styles of the selected text items, tabs, label items.

procedure ApplyStyleConversion(UserData: Integer);

This procedure calls OnStyleConversion event for each selected text item and for the current text style. Using this method, you can implement commands like "make bold" or "change font name".

This method ignores any text protection, it can change text style even if rvprStyleProtect is included in Protection of existing text items' styles. If you want to respect text style protection, check this protection option yourself in OnStyleConversion event.

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.

Demo:

Demos\Delphi\Editors\Editor 2\
Demos\CBuilder\Editors\Editor 2\

See also:

ApplyParaStyleConversion;
ApplyTextStyle.

See also events:

OnStyleConversion.


RichView © Sergey Tkachenko