Foxit PDF SDK
foxit::ofd::TextProperties类 参考

继承自 Object .

Public 成员函数

 TextProperties (const String &text, const String &font_name, float font_size, float char_space, foxit::RGB text_color)
 带参数的构造函数。 更多...
 
 TextProperties (const TextProperties &settings)
 构造函数,通过另一个文字水印属性对象。 更多...
 
bool IsValid () const
 检查当前对象是否有效。 更多...
 
TextPropertiesoperator= (const TextProperties &settings)
 赋值操作符。 更多...
 
void Set (const String &text, const String &font_name, float font_size, float char_space, foxit::RGB text_color)
 设置值。 更多...
 

Public 属性

float char_space
 水印文本字符间距。 更多...
 
String font_name
 水印文本字体名称。 更多...
 
float font_size
 水印文本字体大小,单位为毫米。 更多...
 
String text
 水印文本内容。 更多...
 
foxit::RGB text_color
 水印文本颜色。 更多...
 

详细描述

此类表示和OFD文字水印相关的属性。

构造及析构函数说明

◆ TextProperties() [1/2]

foxit::ofd::TextProperties::TextProperties ( const String text,
const String font_name,
float  font_size,
float  char_space,
foxit::RGB  text_color 
)
inlineexplicit

带参数的构造函数。

参数
[in]text水印文本内容。
[in]font_name水印文本字体名称。
[in]font_size水印文本字体大小。
[in]char_space水印文本字符间距。
[in]text_color水印文本颜色。

◆ TextProperties() [2/2]

foxit::ofd::TextProperties::TextProperties ( const TextProperties settings)
inline

构造函数,通过另一个文字水印属性对象。

参数
[in]settings另一个文字水印属性对象。

成员函数说明

◆ IsValid()

bool foxit::ofd::TextProperties::IsValid ( ) const
inline

检查当前对象是否有效。

当前对象有效时,表示当前对象包含合法的水印文本属性信息。

返回
true 表示当前对象有效,false 表示无效。

◆ operator=()

TextProperties& foxit::ofd::TextProperties::operator= ( const TextProperties settings)
inline

赋值操作符。

参数
[in]settings另一个文字水印属性对象,其值将被赋给当前对象。
返回
当前对象自身的引用。

◆ Set()

void foxit::ofd::TextProperties::Set ( const String text,
const String font_name,
float  font_size,
float  char_space,
foxit::RGB  text_color 
)
inline

设置值。

参数
[in]text水印文本内容。
[in]font_name水印文本字体名称。
[in]font_size水印文本字体大小。
[in]char_space水印文本字符间距。
[in]text_color水印文本颜色。
返回
无。

类成员变量说明

◆ char_space

float foxit::ofd::TextProperties::char_space

水印文本字符间距。

◆ font_name

String foxit::ofd::TextProperties::font_name

水印文本字体名称。

◆ font_size

float foxit::ofd::TextProperties::font_size

水印文本字体大小,单位为毫米。

◆ text

String foxit::ofd::TextProperties::text

水印文本内容。

◆ text_color

foxit::RGB foxit::ofd::TextProperties::text_color

水印文本颜色。