MultiLineTextMatch
Namespace: Hex1b.Automation
Assembly: Hex1b.dll
Represents a text match that may span multiple lines in a terminal region.
csharp
public readonly record struct MultiLineTextMatch : IEquatable<MultiLineTextMatch>Implements
Constructors
MultiLineTextMatch(int, int, int, int, string)
Represents a text match that may span multiple lines in a terminal region.
Parameters:
StartLine(Int32): The line (Y coordinate) where the match starts.StartColumn(Int32): The starting column (X coordinate) of the match.EndLine(Int32): The line (Y coordinate) where the match ends.EndColumn(Int32): The ending column (X coordinate, exclusive) of the match.Text(String): The matched text (including newline characters if multi-line).
csharp
public MultiLineTextMatch(int StartLine, int StartColumn, int EndLine, int EndColumn, string Text)Properties
EndColumn
The ending column (X coordinate, exclusive) of the match.
Returns: Int32
csharp
public int EndColumn { get; init; }EndLine
The line (Y coordinate) where the match ends.
Returns: Int32
csharp
public int EndLine { get; init; }IsMultiLine
Gets whether this match spans multiple lines.
Returns: Boolean
csharp
public bool IsMultiLine { get; }LineCount
Gets the number of lines this match spans.
Returns: Int32
csharp
public int LineCount { get; }StartColumn
The starting column (X coordinate) of the match.
Returns: Int32
csharp
public int StartColumn { get; init; }StartLine
The line (Y coordinate) where the match starts.
Returns: Int32
csharp
public int StartLine { get; init; }Text
The matched text (including newline characters if multi-line).
Returns: String
csharp
public string Text { get; init; }