LogHighlighterResult Class

Represents a highlighted portion of text in a log message.

public class LogHighlighterResult : IEquatable<LogHighlighterResult>
Implements

Constructors

NameDescription
LogHighlighterResult(LogHighlighterResult)
LogHighlighterResult(int, int, int)Represents a highlighted portion of text in a log message.

LogHighlighterResult overloads

LogHighlighterResult(LogHighlighterResult)

LogHighlighterResult.cs
protected LogHighlighterResult(LogHighlighterResult original)
Parameters
original LogHighlighterResult

No documentation is available.

LogHighlighterResult(int, int, int)

LogHighlighterResult.cs

Represents a highlighted portion of text in a log message.

public LogHighlighterResult(int Index, int Length, int Priority)
Parameters
Index int
The zero-based starting index of the highlighted text.
Length int
The length of the highlighted text.
Priority int
The priority of this highlight. When two highlights overlap, the one with the higher priority is rendered and the other is dropped, even when the dropped one starts earlier. Ties are broken on the lowest Index, then on the longest Length.

Properties

NameDescription
IndexThe zero-based starting index of the highlighted text.
LengthThe length of the highlighted text.
LinkGets or initializes the URL to link to when the highlighted text is clicked.
PriorityThe priority of this highlight. When two highlights overlap, the one with the higher priority is rendered and the other is dropped, even when the dropped one starts earlier. Ties are broken on the lowest Index, then on the longest Length.
ReplacementTextGets or initializes the replacement text to display instead of the original text.
TitleGets or initializes the tooltip text to show when hovering over the highlighted text.

The zero-based starting index of the highlighted text.

public int Index { get; init; }

Property value

int

The length of the highlighted text.

public int Length { get; init; }

Property value

int

The priority of this highlight. When two highlights overlap, the one with the higher priority is rendered and the other is dropped, even when the dropped one starts earlier. Ties are broken on the lowest Index, then on the longest Length.

public int Priority { get; init; }

Property value

int

Gets or initializes the replacement text to display instead of the original text.

public string? ReplacementText { get; init; }

Property value

string?

Gets or initializes the tooltip text to show when hovering over the highlighted text.

public string? Title { get; init; }

Property value

string?

Methods

NameDescription
Deconstruct(int, int, int)
Equals(LogHighlighterResult?)
Equals(object?)
GetHashCode()
PrintMembers(StringBuilder)
ToString()

Deconstruct(int, int, int)

public void Deconstruct(out int Index, out int Length, out int Priority)

Parameters

Index int
Length int
Priority int

No documentation is available.

Equals overloads

Equals(LogHighlighterResult?)

public virtual bool Equals(LogHighlighterResult? other)
Parameters
other LogHighlighterResult?
Returns

bool

No documentation is available.

Equals(object?)

public override bool Equals(object? obj)
Parameters
obj object?
Returns

bool

No documentation is available.

GetHashCode()

public override int GetHashCode()

Returns

int

No documentation is available.

PrintMembers(StringBuilder)

protected virtual bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

No documentation is available.

ToString()

public override string ToString()

Returns

string

No documentation is available.

Operators

NameDescription
operator ==(LogHighlighterResult?, LogHighlighterResult?)
operator !=(LogHighlighterResult?, LogHighlighterResult?)

operator ==(LogHighlighterResult?, LogHighlighterResult?)

public static bool operator ==(LogHighlighterResult? left, LogHighlighterResult? right)

No documentation is available.

operator !=(LogHighlighterResult?, LogHighlighterResult?)

public static bool operator !=(LogHighlighterResult? left, LogHighlighterResult? right)

No documentation is available.