Foxit PDF SDK
FSDK::DialogDescriptionElement类 参考

Public 成员函数

 constructor ()
 构造函数。
 
 constructor (name, item_id, type, next_tab, width, height, char_width, char_height, font, bold, italic, alignment, align_children, element_array)
 带参数的构造函数。 更多...
 
 Set (name, item_id, type, next_tab, width, height, char_width, char_height, font, bold, italic, alignment, align_children, element_array)
 设置值。 更多...
 

Public 属性

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

详细描述

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

成员函数说明

◆ constructor()

FSDK::DialogDescriptionElement::constructor ( name  ,
item_id  ,
type  ,
next_tab  ,
width  ,
height  ,
char_width  ,
char_height  ,
font  ,
bold  ,
italic  ,
alignment  ,
align_children  ,
element_array   
)

带参数的构造函数。

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

◆ Set()

FSDK::DialogDescriptionElement::Set ( name  ,
item_id  ,
type  ,
next_tab  ,
width  ,
height  ,
char_width  ,
char_height  ,
font  ,
bold  ,
italic  ,
alignment  ,
align_children  ,
element_array   
)

设置值。

参数
[in]name对话框元素的显示名称。
[in]item_id此对话框的 ItemID。
[in]type此对话框元素的类型。
[in]next_tab在 Tab 顺序中应该排在第一位的对话框项的 ItemID。
[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

FSDK::DialogDescriptionElement::char_height

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

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

◆ char_width

FSDK::DialogDescriptionElement::char_width

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

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

◆ font

FSDK::DialogDescriptionElement::font

用于此元素的字体。

它将是以下字符串之一:

  • "default" - 默认字体
  • "dialog" - 对话框字体
  • "palette" - 调色板(小)字体

◆ height

FSDK::DialogDescriptionElement::height

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

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

◆ width

FSDK::DialogDescriptionElement::width

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

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