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 项。

属性

名称类型访问描述
paragraphsIParagraphCollection读取返回段落集合。
textFrameFormatITextFrameFormat读取返回文本框架格式。
textString读取获取文本。
slideIBaseSlide读取获取幻灯片。
presentationIPresentation读取获取演示文稿。
parentShapeIShape读取获取父形状。
parentCellICell读取获取父单元格。

方法

签名描述
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

另请参阅

 中文