API Reference
PresentationOptions
Culture, reference time and time zone for presenting values. Tables, record views, cards and key/value lists take one, so output is deterministic when these are fixed (tests, snapshots) and follows the user's settings otherwise.
Inheritance
- Object
- PresentationOptions
Usage
Explore 37 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.
Returned or exposed by 13
- Property Grid.Presentation
- Extension method PresentationOptions.WithCulture
- Extension method PresentationOptions.WithNow
- Extension method PresentationOptions.WithTimeZone
- Method PresentationOptionsFluent.WithCulture
- Method PresentationOptionsFluent.WithNow
- Method PresentationOptionsFluent.WithTimeZone
- Property InspectorView.Presentation
- Property KeyValueList.Presentation
- Property RecordView.Presentation
- Property Table.Presentation
- Property Table.Presentation
- Property Tree.Presentation
Accepted by parameters 24
- Extension method PresentationOptions.WithCulture
- Extension method PresentationOptions.WithNow
- Extension method PresentationOptions.WithTimeZone
- Method PresentationOptionsFluent.WithCulture
- Method PresentationOptionsFluent.WithNow
- Method PresentationOptionsFluent.WithTimeZone
- Extension method InspectorView.WithPresentation
- Extension method InspectorView.WithPresentation
- Method InspectorViewFluent.WithPresentation
- Method InspectorViewFluent.WithPresentation
- Extension method KeyValueList.WithPresentation
- Extension method KeyValueList.WithPresentation
- Method KeyValueListFluent.WithPresentation
- Method KeyValueListFluent.WithPresentation
- Extension method RecordView.WithPresentation
- Extension method RecordView.WithPresentation
- Method RecordViewFluent.WithPresentation
- Method RecordViewFluent.WithPresentation
- Method TableFluent.WithPresentation``1
- Method TableFluent.WithPresentation``1
- Extension method Tree.WithPresentation
- Extension method Tree.WithPresentation
- Method TreeFluent.WithPresentation
- Method TreeFluent.WithPresentation
Constructors
public PresentationOptions() #Methods
public PresenterContext CreateContext(RenderContext render) #PresenterContextCreates a presenter context for a render.
Parameters
- render ConsoleMonster.Canvas.RenderContext
- The render context.
Returns
The presenter context.
Inherited Methods
public virtual Boolean Equals(Object? obj) #BooleanParameters
- obj Object?
Properties
public CultureInfo? Culture { get; set; } #The culture for numbers and dates, or null for the render culture (the profile's TerminalProfile.Culture, else the current culture).
public DateTimeOffset? Now { get; set; } #The reference time for relative dates, or null for the current time at render.
public TimeZoneInfo? TimeZone { get; set; } #The time zone for absolute dates, or null for local time.
Extension Methods
public static PresentationOptions WithCulture(PresentationOptions presentationOptions, CultureInfo? value) #PresentationOptionsSets PresentationOptions.Culture: The culture for numbers and dates, or null for the render culture (the profile's TerminalProfile.Culture, else the current culture).
Parameters
- presentationOptions ConsoleMonster.Presenters.PresentationOptions
- The instance.
- value System.Globalization.CultureInfo?
- The value.
Returns
The same instance.
public static PresentationOptions WithNow(PresentationOptions presentationOptions, DateTimeOffset? value) #PresentationOptionsSets PresentationOptions.Now: The reference time for relative dates, or null for the current time at render.
Parameters
- presentationOptions ConsoleMonster.Presenters.PresentationOptions
- The instance.
- value System.DateTimeOffset?
- The value.
Returns
The same instance.
public static PresentationOptions WithTimeZone(PresentationOptions presentationOptions, TimeZoneInfo? value) #PresentationOptionsSets PresentationOptions.TimeZone: The time zone for absolute dates, or null for local time.
Parameters
- presentationOptions ConsoleMonster.Presenters.PresentationOptions
- The instance.
- value System.TimeZoneInfo?
- The value.
Returns
The same instance.