![]() |
| サイトマップ | |
|
トップ | オブジェクト | プロパティ | メソッド | 定数 |
ReportItem オブジェクトは、SigmaPlot の文書や回帰レポートで使用する RTF (Rich Text Format) ドキュメントをあらわします。ReportItem オブジェクトのプロパティを使用すれば、レポートのテキストブロックを追加したり削除することができます。
NotebookItems コレクション
|
プロパティ:Application , Author , Comments , Expanded , Height , IsCurrentBrowserEntry , IsCurrentItem , IsOpen , ItemType , Keywords , Left , Name , Parent , Saved , SelectedText , SelectionExtent , Subject , Text , Top , Visible , Width |
メソッド:BoldFont, ChangeDefaultFont, Clear, Close, Copy, Cut, Export, ItalicFont, Open, Paste, Print, PrintOut, Redo, Save, SelectAll, UnderlineFont, Undo |
ReportItem オブジェクトには、ノートブックアイテムの標準的なプロパティとメソッドが用意されています。ReportItem オブジェクトを取得するには、NotebookItems コレクションの Item プロパティかコレクションインデックスを使用します。また、作成する場合は、NotebookItems コレクションの Add メソッドを使用します。SigmaPlot のレポートには、ItemType プロパティが用意されており、NotebookItems.Add メソッドで指定する値は 5 になります。また、SigmaStat レポートで指定する値は 4 になります。
Background
" に変更します。
Dim SPReport As Object Set SPReport = ActiveDocument.NotebookItems.Add(5) SPReport.Name="Background"
Dim SPReport As Object Set SPReport = ActiveDocument.NotebookItems.Add(CT_REPORT) SPReport.ChangeDefaultFont SPReport.Text = "Now is the time for all good men to come to the aid of their parties" + vbCrLf + _ "The quick brown fox jumped over the lazy dog." + vbCrLf + _ "Now is the winter of our discontent." Dim Selection() As Variant ReDim Selection(1) Selection(0) = 0 Selection(1) = 69 SPReport.SelectionExtent = Selection SPReport.BoldFont SPReport.UnderlineFont Selection(0) = 69 Selection(1) = 115 SPReport.SelectionExtent = Selection SPReport.ItalicFont