Skip to content
ConsoleMonster
Class

CalendarFluent

ConsoleMonster.Widgets

Namespace
ConsoleMonster.Widgets
Assembly
ConsoleMonster
Modifiers
static
Attributes
GeneratedCode("ConsoleMonster.Generators", "1.0.0")

The fluent methods of Calendar, generated from its public properties: With... sets a property and Add... adds to a collection, both returning the same instance.

Inheritance

  • object
  • CalendarFluent

Methods

public static Calendar WithCulture(Calendar calendar, CultureInfo? value) #

Sets Calendar.Culture: Explicit display culture; null uses the render context. Arithmetic and displayed years remain Gregorian.

Parameters

calendar ConsoleMonster.Widgets.Calendar required
The instance.
value System.Globalization.CultureInfo? required
The value.

Returns

Calendar The same instance.
public static Calendar WithFirstDayOfWeek(Calendar calendar, DayOfWeek? value) #

Sets Calendar.FirstDayOfWeek: Override for the culture's first day of week.

Parameters

calendar ConsoleMonster.Widgets.Calendar required
The instance.
value System.DayOfWeek? required
The value.

Returns

Calendar The same instance.
public static Calendar WithShowLegend(Calendar calendar, bool value = true) #

Sets Calendar.ShowLegend: Whether the legend follows the displayed period. Defaults to true.

Parameters

calendar ConsoleMonster.Widgets.Calendar required
The instance.
value bool = true optional
The value (default true).

Returns

Calendar The same instance.
public static Calendar WithToday(Calendar calendar, DateTime? value) #

Sets Calendar.Today: The civil date to emphasize as today; null leaves all dates neutral.

Parameters

calendar ConsoleMonster.Widgets.Calendar required
The instance.
value System.DateTime? required
The value.

Returns

Calendar The same instance.
public static Calendar WithView(Calendar calendar, CalendarView value) #

Sets Calendar.View: Month or year presentation.

Parameters

calendar ConsoleMonster.Widgets.Calendar required
The instance.
value ConsoleMonster.Widgets.CalendarView required
The value.

Returns

Calendar The same instance.