Foxit PDF SDK
foxit::pdf::interform::ChoiceOption类 参考

继承自 Object .

Public 成员函数

 ChoiceOption ()
 构造函数
 
 ChoiceOption (const wchar_t *option_value, const wchar_t *option_label, bool selected, bool default_selected)
 带参数的构造函数。 更多...
 
 ChoiceOption (const ChoiceOption &option)
 复制构造函数。 更多...
 
ChoiceOptionoperator= (const ChoiceOption &option)
 赋值操作符。 更多...
 
void Set (const wchar_t *option_value, const wchar_t *option_label, bool selected, bool default_selected)
 设置值。 更多...
 

Public 属性

bool default_selected
 用于指示选项是否默认被选择。
 
WString option_label
 选项的显示字符串值。
 
WString option_value
 选项字符串值。
 
bool selected
 用于指示选项是否被选择。
 

详细描述

此类表示列表框或组合框中选项的数据。

构造及析构函数说明

◆ ChoiceOption() [1/2]

foxit::pdf::interform::ChoiceOption::ChoiceOption ( const wchar_t *  option_value,
const wchar_t *  option_label,
bool  selected,
bool  default_selected 
)
inline

带参数的构造函数。

参数
[in]option_value选项字符串值。
[in]option_label选项的显示字符串值。
[in]selectedtrue 表示选项被选择,false 表示 选项未被选择。
[in]default_selectedtrue 表示选项默认被选择,false 表示 选项默认不被选择。

◆ ChoiceOption() [2/2]

foxit::pdf::interform::ChoiceOption::ChoiceOption ( const ChoiceOption option)
inline

复制构造函数。

参数
[in]option另一个选择选项对象。

成员函数说明

◆ operator=()

ChoiceOption& foxit::pdf::interform::ChoiceOption::operator= ( const ChoiceOption option)
inline

赋值操作符。

参数
[in]option另一个选择选项对象,其值将被赋给当前对象。
返回
当前对象本身的引用。

◆ Set()

void foxit::pdf::interform::ChoiceOption::Set ( const wchar_t *  option_value,
const wchar_t *  option_label,
bool  selected,
bool  default_selected 
)
inline

设置值。

参数
[in]option_value选项字符串值。
[in]option_label选项的显示字符串值。
[in]selectedtrue 表示选项被选择,false 表示 选项未被选择。
[in]default_selectedtrue 表示选项默认被选择,false 表示 选项默认不被选择。
返回
无。