API Documentation > CorelDRAW > 2025-v26 > TextRange > IVGTextRange
TextRange.Text property
Text string in the range
Syntax:
Property Get Text() As String
Property Let Text(ByVal Value As String)
Remarks:
The Text property returns or specifies the text string in a text range. It is the default property of the TextRange class.
Examples:
The following VBA example displays the text 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
MsgBox t.Story.Text 
End Sub