個々の帯スタイルを 1 つのセットにまとめて、グラフに割り当てることができます。横断グラフ用の帯セットは AeccSectionViewBandStyleSet 型のオブジェクトで、それらのセットは AeccDocument.SectionViewBandStyleSet コレクションに格納されます。
次の例は、横断帯スタイルセットを作成し、それに帯スタイルを追加する処理を示しています。
Dim oSectionViewBandStyleSet As AeccSectionViewBandStyleSet Set oSectionViewBandStyleSet = _ oDocument.SectionViewBandStyleSets.Add("Section Band Set") ' Add a band style we have already created to the ' band set. Call oSectionViewBandStyleSet.Add(oBandSectionDataStyle) ' Now we have a band set consisting of one band.
データ帯セットは、横断ビューを新規に作成するときに使用します。次のサンプル コードは、「横断」の章の「横断ビューを作成する」セクションからの引用ですが、ここでは最後のパラメータでデータ帯セットを渡しています。
Set oSectionView=oSampleLines.Item(j).SectionViews.Add( _ "Section View" & CStr(j), _ "0", _ dOriginPt, _ oSectionViewStyle, _ oSectionViewBandStyleSet)