API Reference > Namespaces > OdPdfPublish Namespace > Classes > OdListBox Class > OdListBox Methods > OdListBox::setContents Method
OdListBox::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 list box control.  
const OdStringArray& export_values 
[in] An array of string items to be exported from the list box control. 

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

 

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