获取Parent

GetParentiinlinelvlSt|ApiBlocklvlSt}

返回组合框/下拉列表内容控件父

参数:

这种方法没有任何参数

返回时间 :

类型
iinlinelvlSt| ApiBlocklvlSt

实例

拷贝代码
builder.CreateFile("docx")!varoDocuments=api.GetDocumentexpitinMethod_adcontrolistlsvaracent controls =ODocument.GetAllContent controlsvar oContentControlList = aContentControls[0].GetDropdownList()!oDocument.AddElement(0, oContentControlList)!varocontrol=ocontrolL.GetParrentvarodeptes=api.Createlevarstype =ocontrol.GetClassTypeodclipse.adText(组合框父元素类类型:+sype)oDocument.Push(oParagraph)!builder.SaveFile("docx", "GetParent.docx")!builder.CloseFile();

结果文档