TextFrame
Overview
TextFrame is a class in Aspose.Slides FOSS for Java.
Inherits from: ITextFrame.
Represents a text frame containing paragraphs.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
paragraphs | IParagraphCollection | Read | Returns the paragraph collection. |
textFrameFormat | ITextFrameFormat | Read | Returns the text frame format. |
text | String | Read | Gets or sets the text content of the text frame |
slide | IBaseSlide | Read | Gets the slide containing this text frame |
presentation | IPresentation | Read | |
parentShape | IShape | Read | Gets the owning shape of the text frame |
parentCell | ICell | Read | Gets the owning cell of the text frame |
Methods
| Signature | Description |
|---|---|
TextFrame(txBodyElement: Element, saveCallback: Runnable) | Creates a TextFrame backed by the given text body element. |
TextFrame(txBodyElement: Element, saveCallback: Runnable, parentSlide: IBaseSlide, parentShape: IShape) | Creates a TextFrame backed by the given text body element with parent context. |
getParagraphs() → IParagraphCollection | Returns the paragraph collection. |
getTextFrameFormat() → ITextFrameFormat | Returns the text frame format. |
getText() → String | |
setText(text: String) | Replaces the text frame’s content with the supplied string |
getSlide() → IBaseSlide | Returns the slide that contains this text frame |
getPresentation() → IPresentation | Returns the presentation that owns this text frame |
asIPresentationComponent() → IPresentationComponent | Casts the text frame to an IPresentationComponent |
getParentShape() → IShape | Returns the shape that owns this text frame, if any |
getParentCell() → ICell | Returns the table cell that contains this text frame, if any |
asISlideComponent() → ISlideComponent | Casts the text frame to an ISlideComponent |