TextFrame

Overview

TextFrame is a class in Aspose.Slides FOSS for Java. Inherits from: ITextFrame.

Represents a text frame containing paragraphs.

Properties

NameTypeAccessDescription
paragraphsIParagraphCollectionReadReturns the paragraph collection.
textFrameFormatITextFrameFormatReadReturns the text frame format.
textStringReadGets or sets the text content of the text frame
slideIBaseSlideReadGets the slide containing this text frame
presentationIPresentationRead
parentShapeIShapeReadGets the owning shape of the text frame
parentCellICellReadGets the owning cell of the text frame

Methods

SignatureDescription
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()IParagraphCollectionReturns the paragraph collection.
getTextFrameFormat()ITextFrameFormatReturns the text frame format.
getText()String
setText(text: String)Replaces the text frame’s content with the supplied string
getSlide()IBaseSlideReturns the slide that contains this text frame
getPresentation()IPresentationReturns the presentation that owns this text frame
asIPresentationComponent()IPresentationComponentCasts the text frame to an IPresentationComponent
getParentShape()IShapeReturns the shape that owns this text frame, if any
getParentCell()ICellReturns the table cell that contains this text frame, if any
asISlideComponent()ISlideComponentCasts the text frame to an ISlideComponent