Shape.SetValue MethodSets values for a given control.[object.]SetValue (valArray) Arguments
RemarksIf Shape is a CheckBox, RadioButton, TextLabel, or TextBox, only the first value of valArray is used.The following example uses Shape.SetValue Method to set values in a ListBox: var oList = ActiveDocument.Sections["Dashboard"].Shapes["lstFoo"]; var arr = new Array("January", "February", "March"); oList.SetValue(arr); RequirementsActiveDocument.loadObjectMethods() must be run after the shape object is created and before this object method is used. |