API Reference > Namespaces > OdPdfPublish Namespace > Classes > OdDropDownList Class
OdDropDownList Class
OdPdfPublish__OdDropDownListOdPdfPublish__OdDropDownListOdPdfPublish__OdDropDownList
Syntax
C++
class OdDropDownList : public OdObject;

PdfPublishDropDownList.h

This class implements a drop-down list control contained in a .pdf document created with Publish SDK. A drop-down list contains a list of predefined items that can be selected. Only one of the predefined items can be selected. A user can also enter a custom value to a drop-down list if allowed (see setCustomText() and getCustomText() methods).

 
Name 
Description 
 
Destroys the drop-down list control. 
 
Name 
Description 
 
Returns the current value of the flag that determines whether the drop-down list has a border. If the flag value is equal to true, the drop-down list has a border, otherwise it does not. The method fills a passed boolean value with the drop-down list border flag value and returns it to a calling subroutine.
 
 
Returns the current drop-down list border color. The method fills a passed ODCOLORREF value with the drop-down list border color value and returns it to a calling subroutine.
 
 
Returns the current drop-down list border style. The method fills a passed value with the current border style value and returns it to a calling subroutine.
 
 
Returns the current drop-down list border thickness. The method fills a passed value with the current border thickness and returns it to a calling subroutine.
 
 
Returns the current drop-down list content. The method fills the passed string arrays with display and export items respectively and returns them to a calling subroutine.
 
 
Returns the current value of the custom text flag of the drop-down list. The custom text flag determines whether a user can add a custom value to the drop-down list. If the flag is equal to true, a user can enter a custom value, otherwise the user can only select one of the predefined values from the drop-down list. The method fills a passed boolean value with the custom text flag value and returns it to a calling subroutine.
 
 
Returns the current drop-down list fill color. The method fills a passed ODCOLORREF value with the drop-down list fill color value and returns it to a calling subroutine.
 
 
Returns the current font name used for displaying drop-down list items. The method fills a passed string object and Text::FontStyle value with the drop-down list font name and font style, then returns them to a calling subroutine.
 
 
Returns the current font size used for displaying drop-down list items. The method fills a passed integer value with the drop-down list font size and returns it to a calling subroutine.
 
 
Returns the current value of the immediate commit flag of the drop-down list. The immediate commit flag determines whether user text entered in the drop-down list is committed immediately (if set to true). The method fills a passed boolean value with the immediate commit flag value and returns it to a calling subroutine.
 
 
Returns the current value of the flag that determines whether the drop-down list is locked. If the flag value is equal to true, the drop-down list is locked and becomes disabled, otherwise it is enabled and unlocked. The method fills a passed boolean value with the drop-down list lock flag value and returns it to a calling subroutine.
 
 
Returns the current name of the drop-down list. The method fills a passed string object with the drop-down list name and returns it to a calling subroutine.
 
 
Returns the current value of the flag that determines whether the drop-down list should be printed. If the drop-down list should be printed, the flag value is equal to true, otherwise it is equal to false. The method fills a passed boolean value with the drop-down list printability flag value and returns it to a calling subroutine.
 
 
Returns the current value of the spell-checking flag of the drop-down list. The spell-checking flag determines whether user text entered in the drop-down list should be checked. If the flag is equal to true, the custom value of the drop-down list is spell-checked, otherwise the drop-down list does not spell-check the user text. The method fills a passed boolean value with the spell-checking flag value and returns it to a calling subroutine.
 
 
Returns the current text color used for displaying drop-down list items. The method fills a passed ODCOLORREF value with the drop-down list caption color and returns it to a calling subroutine.
 
 
Returns the current rotation of the drop-down list text. The method fills a passed value with the current text rotation value and returns it to a calling subroutine.
 
 
Returns the current tooltip text for the drop-down list. Tooltip text is text that appears when a user hovers the mouse pointer over the drop-down list.
The method fills a passed string object with the drop-down list tooltip text and returns it to a calling subroutine.
 
 
Returns the current value of the visibility flag for the drop-down list. The visibility flag determines whether the drop-down list is visible in a document (if true) or is hidden (if false). The method fills a passed boolean value with the drop-down list visibility flag value and returns it to a calling subroutine.
 
 
Sets a new value of the flag that determines whether the drop-down list has a border. If the flag value is equal to true, the drop-down list has a border, otherwise it does not.
 
 
Sets a drop-down list border color.
 
 
Sets a new border style for the drop-down list.
 
 
Sets a new value for the drop-down list border thickness.
 
 
Sets the drop-down list content. The method fills the drop-down list with an array of items. Each item is a string value.
 
 
Sets a new value of the custom text flag for the drop-down list. The custom text flag determines whether a user can add a custom value to the drop-down list. If the flag is equal to true, a user can enter a custom value, otherwise the user can only select one of the predefined values from the drop-down list.
 
 
Sets a drop-down list fill color.
 
 
This is the overview for the setFont method overload. 
 
Sets a font size for the drop-down list.
 
 
Sets a new value of the immediate commit flag for the drop-down list. The immediate commit flag determines whether user text entered in the drop-down list is committed immediately (if set to true).
 
 
Sets a new value of the flag that determines whether the drop-down list is locked. If the flag value is equal to true, the drop-down list is locked and becomes disabled, otherwise it is enabled and unlocked.
 
 
Sets the drop-down list name.
 
 
Sets a new value of the flag that determines whether the drop-down list should be printed. If the drop-down list should be printed, the flag value is equal to true, otherwise it is equal to false.
 
 
Sets a new value of the spell-checking flag for the drop-down list. The spell-checking flag determines whether user text entered in the drop-down list should be checked. If the flag is equal to true, the custom value in the drop-down list is spell-checked, otherwise the drop-down list does not spell-check the user text.
 
 
Sets a text color for the drop-down list.
 
 
Sets a new value for the drop-down list text rotation.
 
 
Sets tooltip text for the drop-down list. Tooltip text is text that appears when a user hovers the mouse pointer over the drop-down list.
 
 
Sets a new value of the visibility flag for the drop-down list. The visibility flag determines whether the drop-down list is visible in a document (if true) or is hidden (if false).
 
Copyright © 2002–2020. Open Design Alliance. All rights reserved.