You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/java/english/com.aspose.slides/_index.md
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -236,6 +236,7 @@ url: /com.aspose.slides/
236
236
|[GradientStopCollection](../com.aspose.slides/gradientstopcollection)| Represnts a collection of gradient stops. |
237
237
|[GradientStopCollectionEffectiveData](../com.aspose.slides/gradientstopcollectioneffectivedata)| Represents a collection of GradientStopData objects. |
238
238
|[GradientStopEffectiveData](../com.aspose.slides/gradientstopeffectivedata)| Immutable object which represents a gradient stop. |
239
+
|[GradientStyle](../com.aspose.slides/gradientstyle)| Represents the styles available for a gradient. |
|[ITextFrameFormat](../com.aspose.slides/itextframeformat)| Contains the TextFrame's formatting properties. |
1100
1103
|[ITextFrameFormatEffectiveData](../com.aspose.slides/itextframeformateffectivedata)| Immutable object which contains effective text frame formatting properties. |
1101
1104
|[ITextHighlightingOptions](../com.aspose.slides/itexthighlightingoptions)| Represents options which can be used to highlight text in text frame. |
1105
+
|[ITextSearchOptions](../com.aspose.slides/itextsearchoptions)| Represents options which can be used to find text in Presentation, Slide or TextFrame. |
1102
1106
|[ITextStyle](../com.aspose.slides/itextstyle)| Text style formatting properties. |
1103
1107
|[ITextStyleEffectiveData](../com.aspose.slides/itextstyleeffectivedata)| Immutable object which contains effective text style properties. |
1104
1108
|[ITextToHtmlConversionOptions](../com.aspose.slides/itexttohtmlconversionoptions)| Options for extracting HTML from the Pptx text. |
second_title: Aspose.Slides for Java API Reference
4
+
description: Callback interface used to getting search text result.
5
+
type: docs
6
+
url: /com.aspose.slides/ifindresultcallback/
7
+
---```
8
+
public interface IFindResultCallback
9
+
```
10
+
11
+
Callback interface used to getting search text result.
12
+
## Methods
13
+
14
+
| Method | Description |
15
+
| --- | --- |
16
+
| [foundResult(ITextFrame textFrame, String sourceText, String foundText, int textPosition)](#foundResult-com.aspose.slides.ITextFrame-java.lang.String-java.lang.String-int-) | Callback method which receives data about found text. |
17
+
### foundResult(ITextFrame textFrame, String sourceText, String foundText, int textPosition) {#foundResult-com.aspose.slides.ITextFrame-java.lang.String-java.lang.String-int-}
18
+
```
19
+
public abstract void foundResult(ITextFrame textFrame, String sourceText, String foundText, int textPosition)
20
+
```
21
+
22
+
23
+
Callback method which receives data about found text.
24
+
25
+
**Parameters:**
26
+
| Parameter | Type | Description |
27
+
| --- | --- | --- |
28
+
| textFrame | [ITextFrame](../../com.aspose.slides/itextframe) | [ITextFrame](../../com.aspose.slides/itextframe) where serching text was found. |
29
+
| sourceText | java.lang.String | Source text of TextFrame where text was found. |
30
+
| foundText | java.lang.String | Found text. |
31
+
| textPosition | int | Position of found text in source text. |
Copy file name to clipboardExpand all lines: content/java/english/com.aspose.slides/ipresentation/_index.md
+162Lines changed: 162 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -69,6 +69,11 @@ Presentation document
69
69
|[getImages(IRenderingOptions options, int[] slides, Dimension imageSize)](#getImages-com.aspose.slides.IRenderingOptions-int---java.awt.Dimension-)| Returns a Thumbnail Image objects for specified slides of a presentation with specified size. |
70
70
|[getSlideById(long id)](#getSlideById-long-)| Returns a Slide, MasterSlide or LayoutSlide by Id. |
71
71
|[joinPortionsWithSameFormatting()](#joinPortionsWithSameFormatting--)| Joins runs with same formatting in all paragraphs in all acceptable shapes in all slides. |
72
+
|[highlightText(String text, Color highlightColor)](#highlightText-java.lang.String-java.awt.Color-)| Highlight all matches of sample in text frame text using specified color. |
73
+
|[highlightText(String text, Color highlightColor, ITextSearchOptions options, IFindResultCallback callback)](#highlightText-java.lang.String-java.awt.Color-com.aspose.slides.ITextSearchOptions-com.aspose.slides.IFindResultCallback-)| Highlight all matches of sample text in presentation using specified color. |
74
+
|[highlightRegex(Pattern regex, Color highlightColor, IFindResultCallback callback)](#highlightRegex-java.util.regex.Pattern-java.awt.Color-com.aspose.slides.IFindResultCallback-)| Highlight all matches of regular expression in presentation using specified color. |
75
+
|[replaceText(String oldText, String newText, ITextSearchOptions options, IFindResultCallback callback)](#replaceText-java.lang.String-java.lang.String-com.aspose.slides.ITextSearchOptions-com.aspose.slides.IFindResultCallback-)| Replaces all occurrences of the specified text with another specified text. |
76
+
|[replaceRegex(Pattern regex, String newText, IFindResultCallback callback)](#replaceRegex-java.util.regex.Pattern-java.lang.String-com.aspose.slides.IFindResultCallback-)| Replaces all matches of regular expression in presentation with specified string. |
72
77
### getCurrentDateTime() {#getCurrentDateTime--}
73
78
```
74
79
public abstract Date getCurrentDateTime()
@@ -776,3 +781,160 @@ public abstract void joinPortionsWithSameFormatting()
776
781
777
782
Joins runs with same formatting in all paragraphs in all acceptable shapes in all slides.
778
783
784
+
### highlightText(String text, Color highlightColor) {#highlightText-java.lang.String-java.awt.Color-}
785
+
```
786
+
public abstract void highlightText(String text, Color highlightColor)
787
+
```
788
+
789
+
790
+
Highlight all matches of sample in text frame text using specified color.
791
+
792
+
--------------------
793
+
794
+
> ```
795
+
> The following sample code shows how to Highlight Text in a PowerPoint Presentation.
796
+
>
797
+
> Presentation presentation = new Presentation("SomePresentation.pptx");
Copy file name to clipboardExpand all lines: content/java/english/com.aspose.slides/isaveoptions/_index.md
+25Lines changed: 25 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,8 @@ Options that control how a presentation is saved.
19
19
| [setProgressCallback(IProgressCallback value)](#setProgressCallback-com.aspose.slides.IProgressCallback-) | Represents a callback object for saving progress updates in percentage. |
20
20
| [getDefaultRegularFont()](#getDefaultRegularFont--) | Returns or sets font used in case source font is not found. |
21
21
| [setDefaultRegularFont(String value)](#setDefaultRegularFont-java.lang.String-) | Returns or sets font used in case source font is not found. |
22
+
| [getGradientStyle()](#getGradientStyle--) | Gets or sets the gradient style to be used for a gradient. |
23
+
| [setGradientStyle(int value)](#setGradientStyle-int-) | Gets or sets the gradient style to be used for a gradient. |
22
24
### getWarningCallback() {#getWarningCallback--}
23
25
```
24
26
public abstract IWarningCallback getWarningCallback()
@@ -126,3 +128,26 @@ Returns or sets font used in case source font is not found. Read-write String.
126
128
| --- | --- | --- |
127
129
| value | java.lang.String | |
128
130
131
+
### getGradientStyle() {#getGradientStyle--}
132
+
```
133
+
public abstract int getGradientStyle()
134
+
```
135
+
136
+
137
+
Gets or sets the gradient style to be used for a gradient. This property allows the selection of predefined gradient styles which can affect the appearance of graphical elements.
Gets or sets the gradient style to be used for a gradient. This property allows the selection of predefined gradient styles which can affect the appearance of graphical elements.
0 commit comments