API Documentation > CorelDRAW > 2025-v26 > TextRange > IVGTextRange
TextRange.Case property
Gets/sets the case of the text in the range
Syntax:
Property Get Case() As cdrFontCase
Property Let Case(ByVal Value As cdrFontCase)
Remarks:
The Case property returns or specifies the case of the text in a text range.
Examples:
The following VBA example capitalizes all characters in the paragraph.
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.Case = cdrAllCapsFontCase 
End Sub