public final class TextFrame extends java.lang.Object implements ITextFrame
Represents a TextFrame.
Modifier and Type | Method and Description |
---|---|
ITextFrameFormatEffectiveData |
createTextFrameFormatEffective()
Deprecated.
Use TextFrame.TextFrameFormat.GetEffective() instead. The method will be removed after release of version 20.8.
|
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.lang.Integer highlightColor,
ITextHighlightingOptions options)
Highlight all matches of regular expression in text frame text using specified color.
|
void |
highlightText(java.lang.String text,
java.lang.Integer highlightColor)
Highlight all matches of sample in text frame text using specified color.
|
void |
highlightText(java.lang.String text,
java.lang.Integer 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 ITextFrame
public final java.lang.String getText()
Gets or sets the plain text for a TextFrame.
Read/write String
.
getText
in interface ITextFrame
public final void setText(java.lang.String value)
Gets or sets the plain text for a TextFrame.
Read/write String
.
setText
in interface ITextFrame
public final ITextFrameFormat getTextFrameFormat()
Returns the formatting object for this TextFrame object.
Read-only ITextFrameFormat
.
getTextFrameFormat
in interface ITextFrame
public final IHyperlinkQueries getHyperlinkQueries()
Provides easy access to contained hyperlinks.
Read-only IHyperlinkQueries
.
getHyperlinkQueries
in interface ITextFrame
public final void joinPortionsWithSameFormatting()
Joins runs with same formatting in all paragraphs.
joinPortionsWithSameFormatting
in interface ITextFrame
@Deprecated public final ITextFrameFormatEffectiveData createTextFrameFormatEffective()
Creates and returns ITextFrameFormatEffectiveData
object which contains current text frame formatting properties, including inherited.
Read-only ITextFrameFormatEffectiveData
.
createTextFrameFormatEffective
in interface ITextFrame
ITextFrameFormatEffectiveData
instance.public final void highlightText(java.lang.String text, java.lang.Integer highlightColor)
Highlight all matches of sample in text frame text using specified color.
highlightText
in interface ITextFrame
text
- Text sample to highlight.highlightColor
- Highlighting color.public final void highlightText(java.lang.String text, java.lang.Integer highlightColor, ITextHighlightingOptions options)
Highlight all matches of sample in text frame text using specified color.
highlightText
in interface ITextFrame
text
- Text sample to highlight.highlightColor
- Highlighting color.options
- Highlighting options.public final void highlightRegex(java.lang.String regex, java.lang.Integer highlightColor, ITextHighlightingOptions options)
Highlight all matches of regular expression in text frame text using specified color.
highlightRegex
in interface ITextFrame
regex
- 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 ISlideComponent
public final IPresentation getPresentation()
Returns the parent presentation of a TextFrame.
Read-only IPresentation
.
getPresentation
in interface IPresentationComponent