TextMatch
Namespace: Hex1b.Automation
Assembly: Hex1b.dll
Represents a text match found in a terminal region, with its coordinates.
csharp
public readonly record struct TextMatch : IEquatable<TextMatch>Implements
Constructors
TextMatch(int, int, int, string)
Represents a text match found in a terminal region, with its coordinates.
Parameters:
Line(Int32): The line (Y coordinate) where the match was found.StartColumn(Int32): The starting column (X coordinate) of the match.EndColumn(Int32): The ending column (X coordinate, exclusive) of the match.Text(String): The matched text.
csharp
public TextMatch(int Line, int StartColumn, int EndColumn, string Text)Properties
EndColumn
The ending column (X coordinate, exclusive) of the match.
Returns: Int32
csharp
public int EndColumn { get; init; }Length
Gets the length of the matched text.
Returns: Int32
csharp
public int Length { get; }Line
The line (Y coordinate) where the match was found.
Returns: Int32
csharp
public int Line { get; init; }StartColumn
The starting column (X coordinate) of the match.
Returns: Int32
csharp
public int StartColumn { get; init; }Text
The matched text.
Returns: String
csharp
public string Text { get; init; }