Struct LinkSpan
- Namespace
- SharpConsoleUI.Parsing
- Assembly
- SharpConsoleUI.dll
A clickable link region over a single rendered line, expressed in display-column
(cell) coordinates. The range is half-open: [StartCol, EndCol).
public readonly struct LinkSpan
- Inherited Members
- Extension Methods
Constructors
LinkSpan(int, int, string, string)
Creates a link span.
public LinkSpan(int startCol, int endCol, string url, string text)
Parameters
startColintFirst display column (inclusive).
endColintOne past the last display column (exclusive).
urlstringThe link target URL (already unescaped).
textstringThe visible link text.
Fields
EndCol
One past the last display column (exclusive) covered by the link.
public readonly int EndCol
Field Value
StartCol
First display column (inclusive) covered by the link.
public readonly int StartCol
Field Value
Text
The visible link text.
public readonly string Text
Field Value
Url
The link target URL (already unescaped).
public readonly string Url
Field Value
Methods
Contains(int)
True if col falls within [StartCol, EndCol).
public bool Contains(int col)
Parameters
colintThe display column to test.
Returns
- bool
True if the column is covered by this span.