Shape.SetList MethodSets the list of available values for a given control.[object.]SetList (valList) Arguments
Return ValueThe SetList function returns the number of seconds it took to populate the Shape.RemarksThe following example uses Shape.SetList Method to create the values list for a ListBox:var oList = ActiveDocument.Sections["Dashboard"].Shapes["lstFoo"]; var arr = new Array("January", "February", "March", "April", "May", "June"); oList.SetList(arr); RequirementsActiveDocument.loadObjectMethods() must be called after the shape object is created and before this object method is used.If valList is a column object, ActiveDocument.loadObjectMethods() must be called after the column is created. |