API Reference > Namespaces > OdPdfPublish Namespace > Classes > OdDropDownList Class > OdDropDownList Methods > OdDropDownList::setContents Method
OdDropDownList::setContents Method
Syntax
C++
void setContents(const OdStringArray& displayed_values, const OdStringArray& export_values);
Parameters 
Description 
const OdStringArray& displayed_values 
[in] An array of string items to be displayed as the content of the drop-down list control.  
const OdStringArray& export_values 
[in] An array of string items to be exported from the drop-down list control. 

Sets the drop-down list content. The method fills the drop-down list with an array of items. Each item is a string value. 

 

Copyright © 2002–2020. Open Design Alliance. All rights reserved.