# LibTmux.PaneWaitRequest.FromTextPatterns

- **Module:** LibTmux
- **Package:** LibTmux
- **Language:** C#
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/cf34b255c896d19a97e7d7fabea58609c916012d/src/LibTmux/Requests/PaneWaitRequest.cs#L58
- **Page:** https://libtmux.org/en/csharp/latest/reference/libtmux-panewaitrequest-fromtextpatterns/

```
LibTmux.PaneWaitRequest.FromTextPatterns(patterns: IReadOnlyList<string>?, stopPatterns: IReadOnlyList<string>?, ignoreCase: bool, simpleMatch: bool) -> PaneWaitRequest
```

Builds a request from text patterns while retaining their original spelling.

## Parameters

- `patterns` (`IReadOnlyList<string>?`): Wanted patterns, or null for any new output.
- `stopPatterns` (`IReadOnlyList<string>?`): Patterns that stop the wait.
- `ignoreCase` (`bool`): Whether text matching ignores case.
- `simpleMatch` (`bool`): Whether pattern text is matched literally.

## Returns

A request with owned, bounded regular expressions.

## Raises

- [`ArgumentException`](https://learn.microsoft.com/dotnet/api/system.argumentexception): A pattern is empty, oversized, or invalid.
