TextSearchInfo Class
Contains information about the text found during a text search operation.
Declaration
public class TextSearchInfo extends JavaObject
Remarks
The following code snippet searches for text in a presentation without case sensitivity and applies bold formatting to all matches:
import com.devexpress.docs.office.*;
//...
// Define text search options.
TextSearchOptions options = new TextSearchOptions();
// Disable case-sensitive search.
options.setMatchCase(false);
// Define text formatting to apply.
TextProperties textProperties = new TextProperties();
// Enable bold formatting.
textProperties.setBold(true);
// Search for the specified text and apply the formatting to all matches.
presentation.modifyTextProperties(
presentation.findText("presentation", options),
textProperties);
Refer to the following help topic for additional information: Find Text.
Inherited Members
com.devexpress.system.JavaObject.clone()
com.devexpress.system.JavaObject.equals(java.lang.Object)
com.devexpress.system.JavaObject.hashCode()
com.devexpress.system.JavaObject.initFields()
com.devexpress.system.JavaObject.memberwiseClone()
com.devexpress.system.JavaObject.toString()
java.lang.Object.finalize()
java.lang.Object.getClass()
java.lang.Object.notify()
java.lang.Object.notifyAll()
java.lang.Object.wait()
java.lang.Object.wait(long)
java.lang.Object.wait(long,int)
Inheritance
Object
com.devexpress.system.JavaObject
TextSearchInfo
Methods
getTextArea() Method
Returns the text area that contains the searched text.
Declaration
public OfficeTextArea getTextArea()
Returns
| Type | Description |
|---|---|
| OfficeTextArea | The text area that contains the searched text. |
getTextRanges() Method
Returns a collection of text ranges that define the position of the searched text within the text area.
Declaration
public List<TextRange> getTextRanges()
Returns
| Type | Description |
|---|---|
| java.util.List<TextRange> | Text ranges. |