Skip to content
ConsoleMonster
Struct

HighlightToken

ConsoleMonster.Highlighting

Namespace
ConsoleMonster.Highlighting
Assembly
ConsoleMonster
Base
ValueType
Modifiers
sealed

A highlighted part of a text.

Inheritance

  • ValueType
  • HighlightToken

Usage

Explore 11 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Constructors

public HighlightToken(int start, int length, HighlightRole role, string? link = null) #

Creates a token.

Parameters

start int required
The first character.
length int required
The length in characters.
role ConsoleMonster.Highlighting.HighlightRole required
The role.
link string? = null optional
A link target (for URLs), or null.

Properties

public int Start { get; } #

The first character.

public int Length { get; } #

The length in characters.

public HighlightRole Role { get; } #

The role.