Class
CalendarFluent
ConsoleMonster.Widgets
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
- The instance.
- value System.Globalization.CultureInfo?
- The value.
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
- The instance.
- value System.DayOfWeek?
- The value.
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
- The instance.
- value bool = true
- The value (default true).
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
- The instance.
- value System.DateTime?
- The value.
public static Calendar WithView(Calendar calendar, CalendarView value) #Sets Calendar.View: Month or year presentation.
Parameters
- calendar ConsoleMonster.Widgets.Calendar
- The instance.
- value ConsoleMonster.Widgets.CalendarView
- The value.