Previous Document Next Document

Object Model Reference : Classes : T : TextFrames : Properties : TextFrames.Item


TextFrames.Item

Property Item(Index As Long) As TextFrame

Description

Member of TextFrames

The Item property returns a read-only reference to a specified frame in a TextFrames collection. It is the default property of the TextFrames class.

Parameter
Description
Index
Specifies the preset placeholder that uniquely identifies each member of the TextFrames collection

VBA example

The following VBA example links paragraph text and displays whether the first item in the collection is inside a container.

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, 5, 5, String$(750, "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
 MsgBox t.Frames.Item(1).IsInsideContainer
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.