Skip to content

TerminalRegionCellPatternExtensions ​

Namespace: Hex1b.Automation

Assembly: Hex1b.dll

Extension methods for searching terminal regions with cell patterns.

csharp
public static class TerminalRegionCellPatternExtensions

Inheritance ​

Object → TerminalRegionCellPatternExtensions

Methods ​

CreateSnapshot(IHex1bTerminalRegion, CellPatternMatch, string) ​

Creates a snapshot region from a named capture within a match.

Parameters:

Returns: Hex1bTerminalSnapshotRegion

A snapshot region covering the capture bounds.

csharp
public static Hex1bTerminalSnapshotRegion CreateSnapshot(this IHex1bTerminalRegion region, CellPatternMatch match, string captureName)

CreateSnapshot(IHex1bTerminalRegion, CellPatternMatch) ​

Creates a snapshot region from a pattern match. Uses the match's bounding rectangle.

Parameters:

Returns: Hex1bTerminalSnapshotRegion

A snapshot region covering the match bounds.

csharp
public static Hex1bTerminalSnapshotRegion CreateSnapshot(this IHex1bTerminalRegion region, CellPatternMatch match)

SearchFirstPattern(IHex1bTerminalRegion, CellPatternSearcher) ​

Searches for the first occurrence of the pattern in this region.

Parameters:

Returns: CellPatternMatch

The first match found, or null if no match.

csharp
public static CellPatternMatch? SearchFirstPattern(this IHex1bTerminalRegion region, CellPatternSearcher pattern)

SearchPattern(IHex1bTerminalRegion, CellPatternSearcher) ​

Searches for all occurrences of the pattern in this region.

Parameters:

Returns: CellPatternSearchResult

A result containing all matches found.

csharp
public static CellPatternSearchResult SearchPattern(this IHex1bTerminalRegion region, CellPatternSearcher pattern)

Released under the MIT License.