public final class TextFrame extends java.lang.Object implements ITextFrame
Represents a TextFrame.
| Modifier and Type | Method and Description |
|---|---|
IHyperlinkQueries |
getHyperlinkQueries()
Provides easy access to contained hyperlinks.
|
IParagraphCollection |
getParagraphs()
Returns the list of all paragraphs in a frame.
|
com.aspose.slides.IDOMObject |
getParent_Immediate()
Returns Parent_Immediate object.
|
IPresentation |
getPresentation()
Returns the parent presentation of a TextFrame.
|
IBaseSlide |
getSlide()
Returns the parent slide of a TextFrame.
|
java.lang.String |
getText()
Gets or sets the plain text for a TextFrame.
|
ITextFrameFormat |
getTextFrameFormat()
Returns the formatting object for this TextFrame object.
|
void |
highlightRegex(java.lang.String regex,
java.awt.Color highlightColor,
ITextHighlightingOptions options)
Highlight all matches of regular expression in text frame text using specified color.
|
void |
highlightText(java.lang.String text,
java.awt.Color highlightColor)
Highlight all matches of sample in text frame text using specified color.
|
void |
highlightText(java.lang.String text,
java.awt.Color highlightColor,
ITextHighlightingOptions options)
Highlight all matches of sample in text frame text using specified color.
|
void |
joinPortionsWithSameFormatting()
Joins runs with same formatting in all paragraphs.
|
void |
setText(java.lang.String value)
Gets or sets the plain text for a TextFrame.
|
public final com.aspose.slides.IDOMObject getParent_Immediate()
Returns Parent_Immediate object.
Read-only IDOMObject.
public final IParagraphCollection getParagraphs()
Returns the list of all paragraphs in a frame.
Read-only IParagraphCollection.
getParagraphs in interface ITextFramepublic final java.lang.String getText()
Gets or sets the plain text for a TextFrame.
Read/write String.
getText in interface ITextFramepublic final void setText(java.lang.String value)
Gets or sets the plain text for a TextFrame.
Read/write String.
setText in interface ITextFramepublic final ITextFrameFormat getTextFrameFormat()
Returns the formatting object for this TextFrame object.
Read-only ITextFrameFormat.
getTextFrameFormat in interface ITextFramepublic final IHyperlinkQueries getHyperlinkQueries()
Provides easy access to contained hyperlinks.
Read-only IHyperlinkQueries.
getHyperlinkQueries in interface ITextFramepublic final void joinPortionsWithSameFormatting()
Joins runs with same formatting in all paragraphs.
joinPortionsWithSameFormatting in interface ITextFramepublic final void highlightText(java.lang.String text,
java.awt.Color highlightColor)
Highlight all matches of sample in text frame text using specified color.
highlightText in interface ITextFrametext - Text sample to highlight.highlightColor - Highlighting color.public final void highlightText(java.lang.String text,
java.awt.Color highlightColor,
ITextHighlightingOptions options)
Highlight all matches of sample in text frame text using specified color.
highlightText in interface ITextFrametext - Text sample to highlight.highlightColor - Highlighting color.options - Highlighting options.public final void highlightRegex(java.lang.String regex,
java.awt.Color highlightColor,
ITextHighlightingOptions options)
Highlight all matches of regular expression in text frame text using specified color.
highlightRegex in interface ITextFrameregex - Text of regular expression to get text to highlight.highlightColor - Highlighting color.options - Highlighting options.public final IBaseSlide getSlide()
Returns the parent slide of a TextFrame.
Read-only IBaseSlide.
getSlide in interface ISlideComponentpublic final IPresentation getPresentation()
Returns the parent presentation of a TextFrame.
Read-only IPresentation.
getPresentation in interface IPresentationComponentCopyright © 2004-2022 Aspose Pty Ltd. All Rights Reserved.