TX Text Control ActiveX

ChangeCapitalization Method

Method

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

Introduced: 30.0.

Syntax

TXTextControl.ChangeCapitalization Option

Parameters

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

Option

ConstantDescription
CapitalizeEachSentenceThe first letter of each sentence is capitalized.
CapitalizeEachWordThe first letter of each word is capitalized.
ToLowerAll letters are changed to lowercase.
ToUpperAll letters are changed to uppercase.
ToggleCaseLowercase 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

NameData type
OptionInteger
Return valueBoolean

See Also