![]() |
![]() |
TextFrames.Last
Property Last As TextFrame
Member of TextFrames
The Last property returns a TextFrame object that contains the last frame in the collection.
The Last property returns a read-only value.
The following code example links frames of paragraph text and applies bold formatting to the text in the last frame:
Sub Test() Dim d As Document Dim s As Shape Dim s1 As Shape Dim s2 As Shape Dim t As Text Set d = CreateDocument Set s = d.ActiveLayer.CreateParagraphText(2, 2, 4, 4, String$(750, "Z")) Set s1 = d.ActiveLayer.CreateParagraphText(5, 5, 7, 7) 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 t.Frames.Last.Range.Bold = True End Sub
![]() |
![]() |
![]() |
Copyright 2007 Corel Corporation. All rights reserved.