API Reference
Class
LinkPresenter
A hyperlink: clickable (OSC 8) in Windows Terminal and VS Code, plain text elsewhere. When the shown text differs from the address and the terminal cannot link, the address follows in brackets so nothing is lost in logs.
Inheritance
- Object
- LinkPresenter
Constructors
public LinkPresenter(Func<Object?, String>? text = null, Func<Object?, String>? address = null) #Creates a link presenter.
Parameters
- text System.Func<System.Object?, System.String>? = null
- Picks the shown text from the value, or null to show the address.
- address System.Func<System.Object?, System.String>? = null
- Picks the address from the value, or null to use the value itself.
Methods
public PresentedValue Present(Object? value, PresenterContext context) #Returns:
PresentedValuePresents a value.
Parameters
- value System.Object?
- The raw value (may be null).
- context ConsoleMonster.Presenters.PresenterContext
- Culture, clock, time zone, column statistics and the render context.
Returns
The presented value.
Inherited Methods
public virtual Boolean Equals(Object? obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object?