TextStyle
内容
[
隐藏
]TextStyle class
描述 PUB 文本样式
public class TextStyle : BaseStyle
构造函数
| 姓名 | 描述 |
|---|---|
| TextStyle() | 默认构造函数。 |
特性
| 姓名 | 描述 |
|---|---|
| ColorIndex { get; } | 获取 Document.Colors 数组中的颜色索引 |
| FontIndex { get; } | 获取 Document.FontNames 数组中字体名称的索引 |
| IsAllCapsMode { get; } | 是否启用全大写模式 |
| IsBold { get; } | 是粗体字 |
| IsEmboss { get; } | 是文字浮雕 |
| IsEmpty { get; } | 样式未初始化 |
| IsEngrave { get; } | 是否刻有文字 |
| IsItalic { get; } | 是斜体文本 |
| IsOutline { get; } | 是文字概述 |
| IsShadow { get; } | 文本是否被遮蔽 |
| IsSmallCapsMode { get; } | 是否启用小型大写模式 |
| Locale { get; } | 区域设置标识符 |
| RawTextSize { get; } | PUB 指标中的文本大小(以 EMU 为单位) |
| ScaleValue { get; } | 刻度值 |
| SuperscriptType { get; } | 上标类型 |
| UnderlineType { get; } | text 的下划线类型 |
方法
| 姓名 | 描述 |
|---|---|
| CalculateTextSize() | 以点为单位计算文本大小 |
| SetColorIndex(int) | 在 Document.Colors 数组中设置颜色索引 |
| SetFontIndex(int) | 在 Document.FontNames 数组中设置字体名称的索引 |
| SetIsAllCapsMode(bool) | 启用/禁用 text 的所有大写模式 |
| SetIsBold(bool) | 设置为粗体字 |
| SetIsEmboss(bool) | 设置为文字浮雕 |
| SetIsEngrave(bool) | 集是文字雕刻 |
| SetIsItalic(bool) | 设置为斜体文本 |
| SetIsOutline(bool) | 设置为文字概述 |
| SetIsShadow(bool) | 设置为文本阴影 |
| SetIsSmallCapsMode(bool) | 启用/禁用 text 的小型大写字母模式 |
| SetLocale(int) | 设置语言环境标识符 |
| SetRawTextSize(int) | 设置 PUB 指标中的文本大小(在 EMU 中) |
| SetScaleValue(double) | 设置 scale 的值 |
| SetSuperscriptType(SuperscriptType) | 设置上标的类型 |
| SetUnderlineType(UnderlineType) | 为 text 设置下划线类型 |
也可以看看
- class BaseStyle
- 命名空间 Aspose.Pub
- 部件 Aspose.PUB