ITextRange::ChangeCase method

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

Syntax


HRESULT ChangeCase(
  [in]  long Type
);

Parameters

Type [in]

Type: long

Type of case change. The default value is tomLower.

ValueMeaning
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

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Tom.h

DLL

Msftedit.dll

See also

Reference
ITextRange
Conceptual
Text Object Model

 

 

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.