|
Shape.GetList Method
Collects values from a given control.
[object.]GetList ()
Arguments
- object
- Required. A Shape object. This can be a DropDown or ListBox.
Return Value
The GetList function returns an array of zero or more elements containing the string value(s) of the Items in object.
Remarks
The following example uses Shape.GetList Method to determine how many values are
in a ListBox:
var oList = ActiveDocument.Sections["Dashboard"].Shapes["lstFoo"];
Alert(oList.GetList().length);
Requirements
ActiveDocument.loadObjectMethods() must be run after the shape
object is created and before this object method is used.
|