TextFrame
概述
TextFrame 是 Aspose.Slides FOSS 中用于 Java 的类。继承自:ITextFrame。
表示一个包含段落的文本框架。
此类提供 12 个方法,用于在 Java 程序中处理 TextFrame 对象。可用的方法包括:TextFrame、asIPresentationComponent、asISlideComponent、getParagraphs、getParentCell、getParentShape、getPresentation、getSlide、getText、getTextFrameFormat、setText。在安装了 Aspose.Slides FOSS for Java 包之后,所有公共成员对任何 Java 应用程序均可访问。属性:paragraphs、parentCell、parentShape、presentation、slide、text,以及另外 1 项。
属性
| 名称 | 类型 | 访问 | 描述 |
|---|---|---|---|
paragraphs | IParagraphCollection | 读取 | 返回段落集合。 |
textFrameFormat | ITextFrameFormat | 读取 | 返回文本框架格式。 |
text | String | 读取 | 获取文本。 |
slide | IBaseSlide | 读取 | 获取幻灯片。 |
presentation | IPresentation | 读取 | 获取演示文稿。 |
parentShape | IShape | 读取 | 获取父形状。 |
parentCell | ICell | 读取 | 获取父单元格。 |
方法
| 签名 | 描述 |
|---|---|
TextFrame(txBodyElement: Element, saveCallback: Runnable) | 创建一个由给定文本主体元素支持的 TextFrame。 |
TextFrame(txBodyElement: Element, saveCallback: Runnable, parentSlide: IBaseSlide, parentShape: IShape) | 创建一个由给定文本主体元素与父上下文支持的 TextFrame。 |
getParagraphs() → IParagraphCollection | 返回段落集合。 |
getTextFrameFormat() → ITextFrameFormat | 返回文本框架格式。 |
getText() → String | 返回文本。 |
setText(text: String) | 设置文本值。 |
getSlide() → IBaseSlide | 返回幻灯片。 |
getPresentation() → IPresentation | 返回演示文稿。 |
asIPresentationComponent() → IPresentationComponent | 将文本框转换为 IPresentationComponent |
getParentShape() → IShape | 返回父形状。 |
getParentCell() → ICell | 返回父单元格。 |
asISlideComponent() → ISlideComponent | 将文本框强制转换为 ISlideComponent |