Skip to content
ConsoleMonster

API Reference

Struct

HighlightToken

Namespace ConsoleMonster.Highlighting
Assembly ConsoleMonster
Base ValueType
Modifiers sealed

A highlighted part of a text.

Inheritance

  • ValueType
  • HighlightToken

Usage

Explore 10 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(Int32 start, Int32 length, HighlightRole role, String? link = null) #

Creates a token.

Parameters

start System.Int32 requiredposition: 0
The first character.
length System.Int32 requiredposition: 1
The length in characters.
role ConsoleMonster.Highlighting.HighlightRole requiredposition: 2
The role.
link System.String? = null optionalposition: 3
A link target (for URLs), or null.

Properties

public Int32 Start { get; } #

The first character.

public Int32 Length { get; } #

The length in characters.

public HighlightRole Role { get; } #

The role.