![]() |
![]() |
TextFrame.IsFirst
Property IsFirst As Boolean
Member of TextFrame
The IsFirst property returns True if the frame is the first text frame.
The IsFirst property returns a read-only value.
The following code example links frames of paragraph text. It then creates three columns of equal width and spacing.
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, 5, 5, String$(1000, "Z")) Set s1 = d.ActiveLayer.CreateParagraphText(5, 5, 8, 8) Set s2 = d.ActiveLayer.CreateParagraphText(8, 8, 10, 10) Set t = s.Text ' Link the frames together. t.Frame.LinkTo s1 s1.Text.Frame.LinkTo s2 ' Iterate through each frame. For Each f In t.Frames If f.IsFirst Then f.SetColumns 3, True, 1, 0.3 Exit For End If Next f End Sub
![]() |
![]() |
![]() |
Copyright 2007 Corel Corporation. All rights reserved.