API Documentation > CorelDRAW > 2025-v26 > Text > IVGText
Text.FramesInLink property
Gets the number of frames in the chain of linked text frames
Syntax:
Property Get FramesInLink() As Long
Remarks:
The FramesInLink property returns the total number of paragraph-text frames in a chain of linked frames.
Examples:
The following VBA example displays the total number of paragraph-text frames in the text chain and the number of empty (that is, unused) frames.
Sub Test()
If ActiveShape Is Nothing Then
  MsgBox "Nothing Selected"
  Exit Sub
End If
If ActiveShape.Type <> cdrTextShape Then
  MsgBox "Please select a text object."
  Exit Sub
End If
If ActiveShape.Text.Type <> cdrParagraphText And ActiveShape.Text.Type <> cdrParagraphFittedText Then
  MsgBox "Please select a paragraph text object."
  Exit Sub
End If
MsgBox "The number of frames in the text chain is: " & _
  ActiveShape.Text.FramesInLink & vbCr & _
  "Unused frames: " & ActiveShape.Text.UnusedFramesInLink 
End Sub