ShowText
概述
ShowText 是 Aspose.PDF FOSS 中用于 .NET 的类。继承自:TextShowOperator。
Tj — 显示文本字符串。
此类提供 10 个方法,用于在 .NET 程序中处理 ShowText 对象。可用的方法包括:Accept、IsTextShowOperator、ShowText、TextShowOperator、ToPdf、ToString、ValueEquals。安装 Aspose.PDF FOSS for .NET 包后,所有公共成员对任何 .NET 应用程序均可访问。属性:CommandName、Index、Text、TextProperties。
属性
| 名称 | 类型 | 访问 | 描述 |
|---|---|---|---|
Text | string | 读写 | 获取或设置文本。 |
TextProperties | Aspose.Pdf.Facades.TextProperties? | 读取 | 该运算符显示的文本的可选外观元数据。 |
CommandName | string | 读取 | PDF 命令名称(序列化形式的最后一个标记,例如. |
Index | int | 读写 | 此运算符在其所在的 OperatorCollection 中的基于 1 的位置。 |
方法
| 签名 | 描述 |
|---|---|
ShowText() | 使用 Tj 运算符以特定字体写入文本字符串 |
ShowText(text: string) | 在此 ShowText 实例上调用 ShowText(text)。 |
ShowText(text: string, font: Aspose.Pdf.Text.Font) | 在此 ShowText 实例上调用 ShowText(text, font)。 |
ShowText(index: int, text: string) | 在此 ShowText 实例上调用 ShowText(index, text)。 |
ToPdf() | 在此 ShowText 实例上调用 ToPdf。 |
ToString() | 在此 ShowText 实例上调用 ToString。 |
Accept(visitor: IOperatorSelector) | 在此 ShowText 实例上调用 Accept(visitor)。 |
TextShowOperator() | 在此 ShowText 实例上调用 TextShowOperator。 |
IsTextShowOperator(op: Operator) | 当 op 为文本显示操作符 (Tj / TJ / ’ / " — TextShowOperator 的具体子类) 时为真。 |
ValueEquals(op: Operator) | 当此操作符的序列化 PDF 形式等于 op 的时为真。 |