Click or drag to resize
TextRangeChangeCase Method
Changes the case of letters in this range according to the type parameter.

Namespace: TextObjectModel
Assembly: ManagedTOM2 (in ManagedTOM2.dll) Version: 1.0.5577.41188
Syntax
public void ChangeCase(
	TextCasing type
)

Parameters

type
Type: TextObjectModelTextCasing
Type of case change.
Examples
The following example demonstrates how to change the case of text in a range:
C#
void ChangeCaseExample(TextRange range) {
    range.Text = "the cat sat on the mat";
    range.ChangeCase(TextCasing.TitleCase);

    // "The Cat Sat On The Mat"
    Console.WriteLine(range.Text);
}
See Also