Selection.Count

説明

Selection内のオブジェクトの数をLongとして戻します。

C#構文

// get accessor

Int32 rtn = Selection.Count;

VBScript の例

' This example displays the number of objects in the Selection

SelectAll

set oSelection = Application.Selection

logmessage "Number of objects in the Selection : " & oSelection.Count