BasePortionFormat
概述
BasePortionFormat 是 Aspose.Slides FOSS for C++ 中的一个类。
常用文本段落格式属性。提供字体样式、下划线、大小写、删除线、字体度量、字体引用和语言标识符的 getter 和 setter。未显式设置的属性会返回 “not defined” 哨兵(NullableBool::NOT_DEFINED,枚举 NOT_DEFINED,NaN 用于浮点数,std::nullopt 用于可选值)。
此类提供 66 个方法,用于在 C++ 程序中处理 BasePortionFormat 对象。可用的方法包括:BasePortionFormat、ColorFormat、EffectFormat、FillFormat、LineFormat、NullableBool、TextCapType、TextStrikethroughType、TextUnderlineType、alternative_language_id、complex_script_font、east_asian_font,以及另外 46 个方法。安装 Aspose.Slides FOSS for C++ 包后,所有公共成员对任何 C++ 应用程序均可访问。属性有:ColorFormat、EffectFormat、FillFormat、LineFormat、NullableBool、TextCapType,以及另外 2 项。
属性
| 名称 | 类型 | 访问 | 描述 |
|---|---|---|---|
NullableBool | NullableBool | 读取 | 获取可为空的布尔值。 |
TextUnderlineType | TextUnderlineType | 读取 | 获取文本下划线类型。 |
TextCapType | TextCapType | 读取 | 获取文本大写类型。 |
TextStrikethroughType | TextStrikethroughType | 读取 | 获取文本删除线类型。 |
LineFormat | LineFormat | 读取 | 获取行格式。 |
FillFormat | FillFormat | 读取 | 获取填充格式。 |
EffectFormat | EffectFormat | 读取 | 获取效果格式。 |
ColorFormat | ColorFormat | 读取 | 获取颜色格式。 |
方法
| 签名 | 描述 |
|---|---|
NullableBool() → NullableBool | 属性提供一个 NullableBool,表示该部分的布尔属性 |
NullableBool() → NullableBool | |
NullableBool() → NullableBool | |
NullableBool() → NullableBool | |
NullableBool() → NullableBool | |
TextUnderlineType() → TextUnderlineType | 返回一个 TextUnderlineType 枚举,描述下划线样式 |
TextCapType() → TextCapType | 返回一个 TextCapType 枚举,描述大小写样式 |
TextStrikethroughType() → TextStrikethroughType | 返回一个 TextStrikethroughType 枚举,描述删除线样式 |
NullableBool() → NullableBool | |
NullableBool() → NullableBool | |
LineFormat() → LineFormat | 属性提供一个 LineFormat 对象,用于配置该部分的线条样式 |
FillFormat() → FillFormat | 返回一个 FillFormat 对象,定义该部分的填充样式 |
EffectFormat() → EffectFormat | 属性提供一个 EffectFormat 对象,用于配置该部分的视觉效果 |
ColorFormat() → ColorFormat | 返回一个 ColorFormat 对象,表示该部分的颜色设置 |
LineFormat() → LineFormat | |
FillFormat() → FillFormat | |
BasePortionFormat() | |
~BasePortionFormat() | |
font_bold() → NullableBool | |
set_font_bold(value: NullableBool) | |
font_italic() → NullableBool | |
set_font_italic(value: NullableBool) | |
kumimoji() → NullableBool | |
set_kumimoji(value: NullableBool) | |
normalise_height() → NullableBool | |
set_normalise_height(value: NullableBool) | |
proof_disabled() → NullableBool | |
set_proof_disabled(value: NullableBool) | |
font_underline() → TextUnderlineType | |
set_font_underline(value: TextUnderlineType) | |
text_cap_type() → TextCapType | |
set_text_cap_type(value: TextCapType) | |
strikethrough_type() → TextStrikethroughType | |
set_strikethrough_type(value: TextStrikethroughType) | |
is_hard_underline_line() → NullableBool | |
set_is_hard_underline_line(value: NullableBool) | |
is_hard_underline_fill() → NullableBool | |
set_is_hard_underline_fill(value: NullableBool) | |
font_height() → double | |
set_font_height(value: double) | |
escapement() → double | |
set_escapement(value: double) | |
kerning_minimal_size() → double | |
set_kerning_minimal_size(value: double) | |
spacing() → double | |
set_spacing(value: double) | |
latin_font() → std::optional<FontData> | |
set_latin_font(value: std::optional<FontData>) | |
east_asian_font() → std::optional<FontData> | |
set_east_asian_font(value: std::optional<FontData>) | |
complex_script_font() → std::optional<FontData> | |
set_complex_script_font(value: std::optional<FontData>) | |
symbol_font() → std::optional<FontData> | |
set_symbol_font(value: std::optional<FontData>) | |
language_id() → std::optional<std::string> | |
set_language_id(value: std::optional<std::string>) | |
alternative_language_id() → std::optional<std::string> | |
set_alternative_language_id(value: std::optional<std::string>) | |
spell_check() → bool | |
set_spell_check(value: bool) | |
line_format() → LineFormat | |
fill_format() → FillFormat | |
effect_format() → EffectFormat | |
highlight_color() → ColorFormat | |
underline_line_format() → LineFormat | |
underline_fill_format() → FillFormat |