個々の帯スタイルを 1 つのセットにまとめて、グラフに割り当てることができます。縦断帯セットは、AeccDocument.ProfileViewBandStyleSet コレクションに格納される AeccProfileViewBandStyleSet オブジェクトです。
次の例は、縦断帯スタイル セットを作成し、それに帯スタイルを追加する処理を示しています。
Dim oProfileViewBandStyleSet As AeccProfileViewBandStyleSet Set oProfileViewBandStyleSet = _ oDocument.ProfileViewBandStyleSets.Add("Profile Band set") ' Add a band style we have already created to the ' band set. Call oProfileViewBandStyleSet.Add(oBandProfileDataStyle) ' Now we have a band set consisting of one band.
データ帯セットは、縦断ビューを新規に作成するときに使用します。次のサンプル コードは「縦断ビューを作成する」からの引用ですが、ここでは最後のパラメータでデータ帯セットを渡しています。
Set oProfileView = oAlignment.ProfileViews.Add( _ "Profile Style 01", _ "0", _ dOriginPt, _ oProfileViewStyle, _ oProfileViewBandStyleSet)