Foxit PDF SDK
FSBorderInfo类 参考

继承自 NSObject .

构造函数

(id) - init
 默认构造函数。

 
(id) - initWithBorder_info:
 拷贝构造函数。
更多...
 
(id) - initWithWidth:style:intensity:dash_phase:dashes:
 构造函数,带参数。
更多...
 
(void) - set:style:intensity:dash_phase:dashes:
 设置边框信息。
更多...
 

属性

float cloud_intensity
 云状效果的强度。
更多...
 
float dash_phase
 虚线相位。
更多...
 
FSFloatArraydashes
 表示虚线模式的虚线数组。
更多...
 
FSBorderInfoStyle style
 边框样式。请参考 FSBorderInfoSolid 及相关值,应为这些值中的一个。

 
float width
 边框宽度,以点为单位。
更多...
 

详细描述

此类表示注释边框信息。

函数文档

◆ initWithBorder_info:()

- (id) initWithBorder_info: (FSBorderInfo*)  border_info

拷贝构造函数。

参数
[in]border_info另一个边框信息对象。

◆ initWithWidth:style:intensity:dash_phase:dashes:()

- (id) initWithWidth: (float)  width
style: (FSBorderInfoStyle style
intensity: (float)  intensity
dash_phase: (float)  dash_phase
dashes: (FSFloatArray*)  dashes 

构造函数,带参数。

参数
[in]width边框宽度,以点为单位。这应该是一个非负值。 如果此值为0,则不绘制边框。
[in]style边框样式。请参考从FSBorderInfoSolid开始的值, 这应该是这些值中的一个。
[in]intensity云状效果的强度。仅当参数styleFSBorderInfoCloudy时才有用。有效值范围:0到2。 0表示没有云状边框效果。
如果值小于0,将与值0具有相同效果。 如果值大于2,将与值2具有相同效果。
[in]dash_phase虚线相位。仅在参数styleFSBorderInfoDashed时有用。
[in]dashes表示虚线模式的虚线数组。此数组中每个元素的值 不应为负数。仅在styleFSBorderInfoDashed时有用。

◆ set:style:intensity:dash_phase:dashes:()

- (void) set: (float)  width
style: (FSBorderInfoStyle style
intensity: (float)  intensity
dash_phase: (float)  dash_phase
dashes: (FSFloatArray*)  dashes 

设置边框信息。

参数
[in]width边框宽度(单位:点)。应为非负值。为0时不绘制边框。
[in]style边框样式。请参考从FSBorderInfoSolid开始的值,这应该是这些值中的一个。
[in]intensity云状效果强度,仅当styleFSBorderInfoCloudy时有效。有效范围0~2。 0表示无云状效果。小于0等同于0,大于2等同于2。
[in]dash_phase虚线起始相位,仅当styleFSBorderInfoDashed时有效。
[in]dashes虚线数组,表示虚线模式。数组中每个元素都应为非负值,仅当styleFSBorderInfoDashed时有效。
返回
无。

属性说明

◆ cloud_intensity

- (float) cloud_intensity
readwritenonatomicassign

云状效果的强度。

仅对自由文本、正方形、圆形和多边形注释有用,当前对象的 styleFSBorderInfoCloudy 时。
建议值范围:0 到 2。0 表示无云状边框效果。
其他值的效果为:

  • 如果值小于 0,将与值 0 具有相同效果。
  • 如果值大于 2,将与值 2 具有相同效果。



◆ dash_phase

- (float) dash_phase
readwritenonatomicassign

虚线相位。

仅在当前对象的 styleFSBorderInfoDashed 时有用。

◆ dashes

- (FSFloatArray *) dashes
readwritenonatomicweak

表示虚线模式的虚线数组。

仅在当前对象的 styleFSBorderInfoDashed 时有用。
此数组中元素的值不应为负数。

◆ width

- (float) width
readwritenonatomicassign

边框宽度,以点为单位。

此值不应为负数。如果此值为 0,则不会绘制边框。