| TextRangeChangeCase Method |
Changes the case of letters in this range according to the type parameter.
Namespace: TextObjectModelAssembly: ManagedTOM2 (in ManagedTOM2.dll) Version: 1.0.5577.41188
Syntax public void ChangeCase(
TextCasing type
)
Public Sub ChangeCase (
type As TextCasing
)
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:
void ChangeCaseExample(TextRange range) {
range.Text = "the cat sat on the mat";
range.ChangeCase(TextCasing.TitleCase);
Console.WriteLine(range.Text);
}
See Also