Application.BoxCellLayout メソッド (Project)

[ネットワーク ダイアグラム] ビューのデータ テンプレートのセルのレイアウトとサイズを表すプロパティを設定します。 新しいデータ テンプレートの初期値は 2 行 x 2 列、セル幅 100% で、空白セルを結合する設定になっています。

構文

BoxCellLayout( _Name_, _CellRows_, _CellColumns_, _CellWidth_, _MergeCells_ )

expressionApplication オブジェクトを 表す変数。

パラメーター

名前 必須 / オプション データ型 説明
名前 必須 String 文字列 です。 編集するデータ テンプレートの名前。
CellRows 省略可能 長整数型 (Long) データ テンプレートのセルの行数を 1 ~ 4 の値で指定します。
CellColumns 省略可能 長整数型 (Long) データ テンプレートのセルの列数を 1 ~ 4 の値で指定します。
CellWidth 省略可能 整数型 (Integer) テンプレートのセル幅を拡大する割合を、標準に対して 100 ~ 200% の値で指定します。
MergeCells 省略可能 ブール型 (Boolean) True 場合は、左のセルと空白のセルを結合しました。

戻り値

ブール型 (Boolean)

注釈

引数 Name のみを指定した BoxCellLayout メソッドは無効です。

The following example modifies a copy of the Critical data template named Test Critical. The macro removes the fourth row of cells and sets the fourth cell in the third row to show the Actual Cost field and label in a purple-blue color.

Sub ModifyCriticalDataTemplate() 
 Application.BoxCellLayout Name:="Test Critical", CellRows:=3, MergeCells:=True 
 
 Application.BoxCellEditEx Name:="Test Critical", Cell:=pjCell4_3, _ 
 FieldName:=PjField.pjTaskActualCost, Font:="Arial", FontSize:="8", FontColor:=&HFF0077, _ 
 Bold:=False, Italic:=False, Underline:=False, HorizontalAlignment:=pjLeft, _ 
 VerticalAlignment:=pjMiddle, TextLineLimit:=1, ShowLabel:=True, Label:="Cost" 
End Sub

サポートとフィードバック

Office VBA またはこの説明書に関するご質問やフィードバックがありますか? サポートの受け方およびフィードバックをお寄せいただく方法のガイダンスについては、Office VBA のサポートおよびフィードバックを参照してください。