Open topic with navigation

# TextMatch Class

Class defining a text match we are looking for.

Note: Supported in LeanFT versions 14.51 and later.

C# Syntax

                                public class TextMatch

Remarks

Usage example:

`var textMatch = TextMatch.Match("some text");`

`var textMatch = TextMatch.Match("some text", 2);`

Inheritance Hierarchy

System.Object
HP.LFT.SDK.Web.TextMatch

Public Methods

| Name | Description
--- | --- | ---
| Match(String) | Returns the text match object which can be used to find the first match of the specified text. C# Syntax
                                public static TextMatch Match(
       string text
    )
Parameters text The text to search for.
| Match(UInt32,String) | Returns the text match object which can be used to find the n-th match of the specified text. C# Syntax
                                public static TextMatch Match(
       string text,
       uinttextOccurrence
    )
Parameters text The text to search for. textOccurrence 0-based ordinal number of the text's occurrence.

Top