RVChangeCharCase, RVGetCharCase Procedures

<< Click to display table of contents >>

RVChangeCharCase, RVGetCharCase Procedures

These procedures allow changing character case in the selected fragment of TCustomRichViewEdit component.

Unit RVCharCase;

type

  TRVCharCase = (rvccLowerCase, rvccUpperCase, rvccTitleWord);

 

procedure RVChangeCharCase(rve: TCustomRichViewEdit;

  CharCase: TRVCharCase);

procedure RVGetCharCase(rve: TCustomRichViewEdit;

  var AllUpperCase, AllLowerCase: Boolean);

RVChangeCharCase changes character case in the selection of rve according to CharCase parameter.

Option

Meaning

rvccLowerCase

change all characters to lower case

rvccUpperCase

change all characters to upper case

rvccTitleWord

change the first character of each word to upper case, other characters to lower case.

RVGetCharCase returns True in AllUpperCase parameter if all characters in the selection are in upper case.

RVGetCharCase returns True in AllLowerCase parameter if all characters in the selection are in lower case.

 

See also:

TrvActionCharCase