ITextFrame

All Implemented Interfaces: com.aspose.slides.ISlideComponent

public interface ITextFrame extends ISlideComponent

Represents a TextFrame.

Methods

MethodDescription
getParagraphs()Returns the list of all paragraphs in a frame.
getText()Gets or sets the plain text for a TextFrame.
setText(String value)Gets or sets the plain text for a TextFrame.
getTextFrameFormat()Returns the formatting object for this TextFrame object.
getHyperlinkQueries()Provides easy access to contained hyperlinks.
joinPortionsWithSameFormatting()Joins runs with same formatting in all paragraphs.
highlightText(String text, Color highlightColor)Highlight all matches of sample in text frame text using specified color.
highlightText(String text, Color highlightColor, ITextHighlightingOptions options)Highlight all matches of sample in text frame text using specified color.
highlightRegex(String regex, Color highlightColor, ITextHighlightingOptions options)Highlight all matches of regular expression in text frame text using specified color.

getParagraphs()

public abstract IParagraphCollection getParagraphs()

Returns the list of all paragraphs in a frame. Read-only IParagraphCollection.

Returns: IParagraphCollection

getText()

public abstract String getText()

Gets or sets the plain text for a TextFrame. Read/write String.

Value: The text.

Returns: java.lang.String

setText(String value)

public abstract void setText(String value)

Gets or sets the plain text for a TextFrame. Read/write String.

Value: The text.

Parameters:

ParameterTypeDescription
valuejava.lang.String

getTextFrameFormat()

public abstract ITextFrameFormat getTextFrameFormat()

Returns the formatting object for this TextFrame object. Read-only ITextFrameFormat.

Returns: ITextFrameFormat

getHyperlinkQueries()

public abstract IHyperlinkQueries getHyperlinkQueries()

Provides easy access to contained hyperlinks. Read-only IHyperlinkQueries.

Returns: IHyperlinkQueries

joinPortionsWithSameFormatting()

public abstract void joinPortionsWithSameFormatting()

Joins runs with same formatting in all paragraphs.

highlightText(String text, Color highlightColor)

public abstract void highlightText(String text, Color highlightColor)

Highlight all matches of sample in text frame text using specified color.

Parameters:

ParameterTypeDescription
textjava.lang.StringText sample to highlight.
highlightColorjava.awt.ColorHighlighting color.

highlightText(String text, Color highlightColor, ITextHighlightingOptions options)

public abstract void highlightText(String text, Color highlightColor, ITextHighlightingOptions options)

Highlight all matches of sample in text frame text using specified color.

Parameters:

ParameterTypeDescription
textjava.lang.StringText sample to highlight.
highlightColorjava.awt.ColorHighlighting color.
optionsITextHighlightingOptionsHighlighting options.

highlightRegex(String regex, Color highlightColor, ITextHighlightingOptions options)

public abstract void highlightRegex(String regex, Color highlightColor, ITextHighlightingOptions options)

Highlight all matches of regular expression in text frame text using specified color.

Parameters:

ParameterTypeDescription
regexjava.lang.StringText of regular expression to get text to highlight.
highlightColorjava.awt.ColorHighlighting color.
optionsITextHighlightingOptionsHighlighting options.