Foxit PDF SDK
foxit.pdf.actions.DialogDescriptionElement类 参考

继承自 SystemIDisposable .

Public 成员函数

 DialogDescriptionElement ()
 构造函数。
 
 DialogDescriptionElement (string name, string item_id, string type, string next_tab, int width, int height, int char_width, int char_height, string font, bool bold, bool italic, string alignment, string align_children, DialogDescriptionElementArray element_array)
 构造函数,带参数。 更多...
 
 DialogDescriptionElement (DialogDescriptionElement dlg_des_element)
 构造函数,使用另一个对话框描述元素对象。 更多...
 
void Set (string name, string item_id, string type, string next_tab, int width, int height, int char_width, int char_height, string font, bool bold, bool italic, string alignment, string align_children, DialogDescriptionElementArray element_array)
 设置值。 更多...
 

属性

string align_children [get, set]
 所有子元素的对齐方式。
 
string alignment [get, set]
 此元素的对齐方式。
 
bool bold [get, set]
 指定字体是否为粗体。
 
int char_height [get, set]
 指定元素的高度(以字符为单位)。 更多...
 
int char_width [get, set]
 指定元素的宽度(以字符为单位)。 更多...
 
DialogDescriptionElementArrayelement_array [get, set]
 描述此对话框元素子元素的对象字面量数组。
 
string font [get, set]
 此元素使用的字体。 更多...
 
int height [get, set]
 指定元素的高度(以像素为单位)。 更多...
 
bool italic [get, set]
 指定字体是否为斜体。
 
string item_id [get, set]
 此对话框的项目ID。
 
string name [get, set]
 对话框元素的显示名称。
 
string next_tab [get, set]
 Tab顺序中下一个对话框项目的项目ID。
 
string type [get, set]
 此对话框元素的类型。
 
int width [get, set]
 指定元素的宽度(以像素为单位)。 更多...
 

详细描述

此类表示对话框元素属性,指定具有以下属性集的对象字面量。

构造及析构函数说明

◆ DialogDescriptionElement() [1/2]

foxit.pdf.actions.DialogDescriptionElement.DialogDescriptionElement ( string  name,
string  item_id,
string  type,
string  next_tab,
int  width,
int  height,
int  char_width,
int  char_height,
string  font,
bool  bold,
bool  italic,
string  alignment,
string  align_children,
DialogDescriptionElementArray  element_array 
)
inline

构造函数,带参数。

参数
[in]name对话框元素的显示名称。
[in]item_id此对话框的项目ID。
[in]type此对话框元素的类型。
[in]next_tabTab顺序中应该是第一个的对话框项目的项目ID。
[in]width指定元素的宽度(以像素为单位)。
[in]height指定元素的高度(以像素为单位)。
[in]char_width指定元素的宽度(以字符为单位)。
[in]char_height指定元素的高度(以字符为单位)。
[in]font此元素使用的字体。
[in]bold指定字体是否为粗体。
[in]italic指定字体是否为斜体。
[in]alignment此元素的对齐方式。
[in]align_children所有子元素的对齐方式。
[in]element_array描述此对话框元素子元素的对象字面量数组。

◆ DialogDescriptionElement() [2/2]

foxit.pdf.actions.DialogDescriptionElement.DialogDescriptionElement ( DialogDescriptionElement  dlg_des_element)
inline

构造函数,使用另一个对话框描述元素对象。

参数
[in]dlg_des_element另一个对话框描述元素对象。

成员函数说明

◆ Set()

void foxit.pdf.actions.DialogDescriptionElement.Set ( string  name,
string  item_id,
string  type,
string  next_tab,
int  width,
int  height,
int  char_width,
int  char_height,
string  font,
bool  bold,
bool  italic,
string  alignment,
string  align_children,
DialogDescriptionElementArray  element_array 
)
inline

设置值。

参数
[in]name对话框元素的显示名称。
[in]item_id此对话框的项目ID。
[in]type此对话框元素的类型。
[in]next_tabTab顺序中第一个对话框项目的项目ID。
[in]width指定元素的宽度(以像素为单位)。
[in]height指定元素的高度(以像素为单位)。
[in]char_width指定元素的宽度(以字符为单位)。
[in]char_height指定元素的高度(以字符为单位)。
[in]font此元素使用的字体。
[in]bold指定字体是否为粗体。
[in]italic指定字体是否为斜体。
[in]alignment此元素的对齐方式。
[in]align_children所有子元素的对齐方式。
[in]element_array描述此对话框元素子元素的对象数组。
返回
无返回值。

属性说明

◆ char_height

int foxit.pdf.actions.DialogDescriptionElement.char_height
getset

指定元素的高度(以字符为单位)。

如果未指定高度,则使用内容的组合高度。

◆ char_width

int foxit.pdf.actions.DialogDescriptionElement.char_width
getset

指定元素的宽度(以字符为单位)。

如果未指定宽度,则使用内容的组合宽度。

◆ font

string foxit.pdf.actions.DialogDescriptionElement.font
getset

此元素使用的字体。

它将是以下字符串之一:

  • "default" - 默认字体

  • "dialog" - 对话框字体

  • "palette" - 调色板(小)字体

◆ height

int foxit.pdf.actions.DialogDescriptionElement.height
getset

指定元素的高度(以像素为单位)。

如果未指定高度,则使用内容的组合高度。

◆ width

int foxit.pdf.actions.DialogDescriptionElement.width
getset

指定元素的宽度(以像素为单位)。

如果未指定宽度,则使用内容的组合宽度。