ITextRange::ChangeCase method (tom.h)

Changes the case of letters in this range according to the Type parameter.

Syntax

HRESULT ChangeCase(
  [in] long Type
);

Parameters

[in] Type

Type: long

Type of case change. The default value is tomLower.

Value Meaning
tomLowerCase
0
Sets all text to lowercase.
tomUpperCase
1
Sets all text to lowercase.
tomTitleCase
2
Capitalizes the first letter of each word.
tomSentenceCase
4
Capitalizes the first letter of each sentence.
tomToggleCase
5
Toggles the case of each letter.

Return value

Type: HRESULT

This method returns an HRESULT value. If successful, it returns S_OK. Otherwise, it returns S_FALSE.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header tom.h
DLL Msftedit.dll

See also

Conceptual

ITextRange

Reference

Text Object Model