TXTextControl.ChangeCapitalization Method

Changes the capitalization of all selected characters depending on the Option parameter.

Introduced: 30.0.

Syntax

TXTextControl.ChangeCapitalization Option
Parameter Description
Option

This parameter specifies how characters are changed. Possible values are the following:


Constant Description
CapitalizeEachSentence The first letter of each sentence is capitalized.
CapitalizeEachWord The first letter of each word is capitalized.
ToLower All letters are changed to lowercase.
ToUpper All letters are changed to uppercase.
ToggleCase Lowercase letters are changed to uppercase and vice versa.

Return Value

The method returns False, if there is no selected text or if an error has occurred. Otherwise it is True.

Data Types

Option: Integer
Return value: Boolean

See Also