LOTUSSCRIPT 言語
Dim level As Integer ForAll doc In [Freelance].Documents ForAll pg In Doc.Pages ForAll obj In Pg.Objects ' If the object is a TextBlock, set the font to Garamond, ' and set list entries at levels 2 through 5 to Italic. If obj.IsText Then obj.Font.FontName = "Garamond" For level% = 2 To 5 obj.TextProperties(level%).Font.Italic = TRUE Next level% End If End ForAll End ForAll End ForAll
Application クラスの Documents プロパティは、DocumentCollection クラスのインスタンスを返します。コレクション内の各要素は文書 (Document クラスのインスタンス) です。
Document クラスの Pages プロパティは、PageCollection クラスのインスタンスを返します。コレクション内の各要素はページ (Page クラスのインスタンス) です。
Page Objects プロパティは、ObjectCollection クラスのインスタンスを返します。このコレクションの要素の一部はテキストブロック (TextBox クラスのインスタンス) です。
関連項目