TextFrame
TextFrame class
Represents a TextFrame.
getHyperlinkQueries
Name | Description |
---|
getHyperlinkQueries () | Provides easy access to contained hyperlinks. Read-only IHyperlinkQueries. |
Returns:
HyperlinkQueries
getParagraphs
Name | Description |
---|
getParagraphs () | Returns the list of all paragraphs in a frame. Read-only IParagraphCollection. |
Returns:
ParagraphCollection
getPresentation
Name | Description |
---|
getPresentation () | Returns the parent presentation of a TextFrame. Read-only IPresentation. |
Returns:
Presentation
getSlide
Name | Description |
---|
getSlide () | Returns the parent slide of a TextFrame. Read-only IBaseSlide. |
Returns:
NotesSlide, Slide, MasterSlide, LayoutSlide, BaseSlide, MasterNotesSlide, MasterHandoutSlide
getText
Name | Description |
---|
getText () | Gets or sets the plain text for a TextFrame. Read/write String. Value: The text. |
Returns:
String
getTextFrameFormat
Name | Description |
---|
getTextFrameFormat () | Returns the formatting object for this TextFrame object. Read-only ITextFrameFormat. |
Returns:
TextFrameFormat
highlightRegex
Name | Description |
---|
highlightRegex (String, Color, TextHighlightingOptions) | Highlight all matches of regular expression in text frame text using specified color. |
Parameters:
Name | Type | Description |
---|
regex | String | Text of regular expression to get text to highlight. |
highlightColor | Color | Highlighting color. |
options | TextHighlightingOptions | Highlighting options. |
highlightRegex
Name | Description |
---|
highlightRegex (Pattern, Color, IFindResultCallback) | Highlight all matches of regular expression in text frame text using specified color. |
Parameters:
Name | Type | Description |
---|
regex | Pattern | The regular expression java.util.regex.Pattern to get strings to be replaced. |
highlightColor | Color | Highlighting color. |
callback | IFindResultCallback | Callback object for saving replacement operation result IFindResultCallback. |
highlightText
Name | Description |
---|
highlightText (String, Color) | Highlight all matches of sample in text frame text using specified color. |
Parameters:
Name | Type | Description |
---|
text | String | Text sample to highlight. |
highlightColor | Color | Highlighting color. |
highlightText
Name | Description |
---|
highlightText (String, Color, TextHighlightingOptions) | Highlight all matches of sample in text frame text using specified color. |
Parameters:
Name | Type | Description |
---|
text | String | Text sample to highlight. |
highlightColor | Color | Highlighting color. |
options | TextHighlightingOptions | Highlighting options. |
highlightText
Parameters:
Name | Type | Description |
---|
text | String | Text sample to highlight. |
highlightColor | Color | Highlighting color. |
options | TextSearchOptions | Text search options ITextSearchOptions. |
callback | IFindResultCallback | Callback object for saving replacement operation result IFindResultCallback. |
Name | Description |
---|
joinPortionsWithSameFormatting () | Joins runs with same formatting in all paragraphs. |
replaceRegex
Name | Description |
---|
replaceRegex (Pattern, String, IFindResultCallback) | Replaces all matches of regular expression with specified string. |
Parameters:
Name | Type | Description |
---|
regex | Pattern | The regular expression java.util.regex.Pattern to get strings to be replaced. |
newText | String | The string to replace all occurrences of strings to be replaced. |
callback | IFindResultCallback | Callback object for saving replacement operation result IFindResultCallback. |
replaceText
Parameters:
Name | Type | Description |
---|
oldText | String | The string to be replaced. |
newText | String | The string to replace all occurrences of oldText. |
options | TextSearchOptions | Text search options ITextSearchOptions. |
callback | IFindResultCallback | Callback object for saving replacement operation result IFindResultCallback. |
setText
Name | Description |
---|
setText (String) | Gets or sets the plain text for a TextFrame. Read/write String. Value: The text. |