API Documentation > CorelDRAW > 2025-v26 > Text > IVGText
Text.Frames property
Collection of all frames in the text range
Syntax:
Property Get Frames() As TextFrames
Remarks:
The Frames property returns all the paragraph-text frames in a text range.
Examples:
The following VBA example creates two paragraph-text frames and links them together. It then displays the number of frames in the collection.
Sub Test()
Dim s As Shape
Dim s1 As Shape
Dim d As Document
Dim t As Text
Set d = CreateDocument
Set s = d.ActiveLayer.CreateParagraphText(3, 3, 5, 5, String$(400, "T"))
Set s1 = d.ActiveLayer.CreateParagraphText(6, 6, 8, 8)
Set t = s.Text
' Link the frames together
t.Frame.LinkTo s1
' Display frames count
MsgBox t.Frames.Count 
End Sub