GridData.MultiSelectionMode

導入

v12.0 (2014)

説明

グリッド データの選択モードを設定します。サポートされている選択モードは、siGridDataMultiSelectionMode の列挙によって定義されます。

C#構文

// get accessor

siGridDataMultiSelectionMode rtn = GridData.MultiSelectionMode;

// set accessor

GridData.MultiSelectionMode = siGridDataMultiSelectionMode;

Python の例

import win32com.client

from win32com.client import constants as C

propName = "TheProperty"

gridDataName = "TheGrid"

siProperty = Application.ActiveSceneRoot.AddProperty( "CustomProperty", False, propName )

gridData = siProperty.AddGridParameter( gridDataName ).Value ;

gridData.ColumnCount = 2

gridData.RowCount = 2

for row in range( 2 ):

	gridData.SetRowLabel( row, "Row %d"%row )

	for col in range( 2 ):

		# Only set column labels once (when processing the first row)

		if row == 0:

			gridData.SetColumnLabel( col, "Col %d"%col )

		gridData.SetCell( col, row, "%d,%d"%( col, row ) )

gridData.MultiSelectionMode = C.siColumnSelection

Application.InspectObj( siProperty )

Application.LogMessage( gridData.MultiSelectionMode )