Back to Devexpress

TextAreaBase.FindText(String, TextSearchOptions) Method

officefileapi-devexpress-dot-docs-dot-presentation-dot-textareabase-dot-findtext-x28-system-dot-string-devexpress-dot-docs-dot-presentation-dot-textsearchoptions-x29.md

latest2.0 KB
Original Source

TextAreaBase.FindText(String, TextSearchOptions) Method

Finds all occurrences of the specified text in the text area with given search options.

Namespace : DevExpress.Docs.Presentation

Assembly : DevExpress.Docs.Presentation.v25.2.dll

NuGet Package : DevExpress.Docs.Presentation

Declaration

csharp
public IList<TextRange> FindText(
    string text,
    TextSearchOptions options = null
)
vb
Public Function FindText(
    text As String,
    options As TextSearchOptions = Nothing
) As IList(Of TextRange)

Parameters

NameTypeDescription
textString

Text to find.

|

Optional Parameters

NameTypeDefaultDescription
optionsTextSearchOptionsnull

Options for the text search.

|

Returns

TypeDescription
IList<TextRange>

A list of text ranges that are occurrences of the specified text.

|

See Also

DevExpress Presentation API Library: Work with Shape Text

TextAreaBase Class

TextAreaBase Members

DevExpress.Docs.Presentation Namespace