获取value

GetValue()++{{字符串}

返回字符串表示组合框/下拉列表内容控件列表项值

参数:

这种方法没有任何参数

返回时间 :

类型
字符串

实例

拷贝代码
builder.CreateFile("docx")!varoDocuments=api.GetDocumentexpitinMethod_adcontrolistlsvaracent controls =ODocument.GetAllContent controlsvar oContentControlList = aContentControls[0].GetDropdownList()!oDocument.AddElement(0, oContentControlList)!varoots=ocontrolList.GetTrojects0varodeptes=api.Createleod.adText ("第一个项目值:"+OITE.GetValue ())oDocument.Push(oParagraph)!builder.SaveFile("docx", "GetValue.docx")!builder.CloseFile();

结果文档