This topic has not yet been rated - Rate this topic

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

 

 

Send comments about this topic to Microsoft

Build date: 10/27/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.