API Documentation > CorelDRAW > 2025-v26 > TextRange > IVGTextRange
TextRange.ChangeCase method
Changes the case of the text
Syntax:
Sub ChangeCase(ByVal Case As cdrTextChangeCase)
Parameters:
Name Type Description
Case
Remarks:
The ChangeCase method changes the case of the text in a text range.
Examples:
The following VBA example converts the text to uppercase.
Sub Test()
Dim t As Text
Dim s As Shape
Dim d As Document
Set d = CreateDocument
Set s = d.ActiveLayer.CreateParagraphText(2, 2, 8, 8, _
  "This is an example.")
Set t = s.Text
t.Story.ChangeCase cdrTextUpperCase 
End Sub