This documentation is deprecated and will no longer be updated. Please use the official documentation at vanillapdf.readthedocs.io.
Vanilla.PDF  2.3.0
Cross-platform toolkit for creating and modifying PDF documents
List of all members
ChoiceFieldHandle Class Reference

A choice field contains several text items, one or more of which shall be selected as the field value. More...

Inheritance diagram for ChoiceFieldHandle:
FieldHandle IUnknownHandle
error_type CALLING_CONVENTION ChoiceField_GetValue (ChoiceFieldHandle *handle, StringObjectHandle **result)
 Get the selected value (/V entry).
 
error_type CALLING_CONVENTION ChoiceField_SetValue (ChoiceFieldHandle *handle, StringObjectHandle *value)
 Set the selected value (/V entry).
 
error_type CALLING_CONVENTION ChoiceField_GetOptionCount (ChoiceFieldHandle *handle, size_type *result)
 Get the number of available options (/Opt entry).
 
error_type CALLING_CONVENTION ChoiceField_GetOptionAt (ChoiceFieldHandle *handle, size_type index, ObjectHandle **result)
 Get the option at the given index.
 
error_type CALLING_CONVENTION ChoiceField_ToField (ChoiceFieldHandle *handle, FieldHandle **result)
 Reinterpret current object as FieldHandle.
 
error_type CALLING_CONVENTION ChoiceField_FromField (FieldHandle *handle, ChoiceFieldHandle **result)
 Convert FieldHandle to ChoiceFieldHandle.
 
error_type CALLING_CONVENTION ChoiceField_Release (ChoiceFieldHandle *handle)
 Decrement the internal reference counter.
 

Additional Inherited Members

- Public Member Functions inherited from FieldHandle
error_type CALLING_CONVENTION Field_CreateFromDictionary (DictionaryObjectHandle *dictionary, FieldHandle **result)
 Create a field from a dictionary object. The field type is determined by the /FT entry in the dictionary.
 
- Public Member Functions inherited from IUnknownHandle
error_type CALLING_CONVENTION IUnknown_AddRef (IUnknownHandle *handle)
 Increment the internal reference counter.
 

Detailed Description

A choice field contains several text items, one or more of which shall be selected as the field value.

Friends And Related Symbol Documentation

◆ ChoiceField_GetOptionAt()

error_type CALLING_CONVENTION ChoiceField_GetOptionAt ( ChoiceFieldHandle handle,
size_type  index,
ObjectHandle **  result 
)
related

Get the option at the given index.

Each element is either a text string (serving as both export value and display text) or a two-element array where the first element is the export value and the second element is the display text (Table 231).

◆ ChoiceField_Release()

error_type CALLING_CONVENTION ChoiceField_Release ( ChoiceFieldHandle handle)
related

Decrement the internal reference counter.

When the internal counter reaches zero the object is deleted. Releasing already disposed object causes undefined behavior.

See also
IUnknown_Release

The documentation for this class was generated from the following file: