[]
        
(Showing Draft Content)

GrapeCity.ActiveReports.Rendering.Tools.CultureInfoExt.SetCalendar

SetCalendar Method

SetCalendar(CultureInfo, string)

Returns a CultureInfo object with the specified calendar applied.

Declaration
public static CultureInfo SetCalendar(this CultureInfo culture, string calendarName)
Parameters
Type Name Description
CultureInfo culture

The original culture.

string calendarName

The name of the calendar to apply.

Returns
Type Description
CultureInfo

A CultureInfo object with the specified calendar.

Exceptions
Type Condition
ArgumentException

Thrown when the specified calendar name is invalid.