API Documentation > CorelDRAW > 2025-v26 > TextFrame > IVGTextFrame
TextFrame.IsLast property
Returns True if this is the last text frame
Syntax:
Property Get IsLast() As Boolean
Remarks:
The IsLast property returns True if a paragraph-text frame is the last frame.
Examples:
The following VBA example links frames of paragraph text, creating three columns of equal width and spacing in the last frame.
Sub Test()
Dim s As Shape
Dim s1 As Shape
Dim s2 As Shape
Dim t As Text
Dim f As TextFrame
Dim d As Document
Set d = CreateDocument
Set s = d.ActiveLayer.CreateParagraphText(2, 2, 4, 4, String$(1200, "Z"))
Set s1 = d.ActiveLayer.CreateParagraphText(5, 5, 7, 7)
Set s2 = d.ActiveLayer.CreateParagraphText(8, 8, 10, 10)
Set t = s.Text
' Link frames together
t.Frame.LinkTo s1
s1.Text.Frame.LinkTo s2
' Go through each frame
For Each f In t.Frames
  If f.IsLast Then

 f.SetColumns 3, True, 1, 0.3

 Exit For
  End If
Next f 
End Sub