TextFrame

Overview

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

Represents a text frame containing paragraphs.

This class declares 12 methods for TextFrame objects in Java programs. Available methods include: TextFrame, asIPresentationComponent, asISlideComponent, getParagraphs, getParentCell, getParentShape, getPresentation, getSlide, getText, getTextFrameFormat, setText. Public members are accessible to any Java application after installing the Aspose.Slides FOSS for Java package. Properties: paragraphs, parentCell, parentShape, presentation, slide, text, and 1 more.

Properties

NameTypeAccessDescription
paragraphsIParagraphCollectionReadReturns the paragraph collection.
textFrameFormatITextFrameFormatReadReturns the text frame format.
textStringRead/WriteGets or sets the text.
slideIBaseSlideReadGets the slide.
presentationIPresentationReadGets the presentation.
parentShapeIShapeReadGets the parent shape.
parentCellICellReadGets the parent cell.

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() → StringReturns the text.
setText(text: String)Sets the text value.
getSlide() → IBaseSlideReturns the slide.
getPresentation() → IPresentationReturns the presentation.
asIPresentationComponent() → IPresentationComponentCasts the text frame to an IPresentationComponent
getParentShape() → IShapeReturns the parent shape.
getParentCell() → ICellReturns the parent cell.
asISlideComponent() → ISlideComponentCasts the text frame to an ISlideComponent

See Also

 English