Class CultureCalendarInfo
Provides globalized calendar operations based on a specific culture.
Inherited Members
Namespace: System.Windows.Controls
Assembly: OpenSilver.Controls.Toolkit.dll
Syntax
public class CultureCalendarInfo : CalendarInfo
Constructors
| Improve this Doc View SourceCultureCalendarInfo()
Initializes a new instance of the CultureCalendarInfo class.
Declaration
public CultureCalendarInfo()
CultureCalendarInfo(CultureInfo)
Initializes a new instance of the CultureCalendarInfo class.
Declaration
public CultureCalendarInfo(CultureInfo culture)
Parameters
Type | Name | Description |
---|---|---|
System.Globalization.CultureInfo | culture | The culture used to provide the calendar operations. |
Properties
| Improve this Doc View SourceCulture
Gets the culture used to provide the calendar operations.
Declaration
public CultureInfo Culture { get; }
Property Value
Type | Description |
---|---|
System.Globalization.CultureInfo |
DateFormatInfo
Gets the DateTimeFormatInfo to use for formatting.
Declaration
public override DateTimeFormatInfo DateFormatInfo { get; }
Property Value
Type | Description |
---|---|
System.Globalization.DateTimeFormatInfo |
Overrides
Methods
| Improve this Doc View SourceAddDays(DateTime, Int32)
Returns a DateTime that is the specified number of days away from the specified DateTime.
Declaration
public override DateTime? AddDays(DateTime day, int days)
Parameters
Type | Name | Description |
---|---|---|
System.DateTime | day | The DateTime to which to add days. |
System.Int32 | days | The number of days to add. |
Returns
Type | Description |
---|---|
System.Nullable<System.DateTime> | The DateTime that results from adding the specified number of days to the specified DateTime. |
Overrides
| Improve this Doc View SourceAddMonths(DateTime, Int32)
Returns a DateTime that is the specified number of months away from the specified DateTime.
Declaration
public override DateTime? AddMonths(DateTime day, int months)
Parameters
Type | Name | Description |
---|---|---|
System.DateTime | day | The DateTime to which to add months. |
System.Int32 | months | The number of months to add. |
Returns
Type | Description |
---|---|
System.Nullable<System.DateTime> | The DateTime that results from adding the specified number of months to the specified DateTime. |
Overrides
| Improve this Doc View SourceAddYears(DateTime, Int32)
Returns a DateTime that is the specified number of years away from the specified DateTime.
Declaration
public override DateTime? AddYears(DateTime day, int years)
Parameters
Type | Name | Description |
---|---|---|
System.DateTime | day | The DateTime to which to add years. |
System.Int32 | years | The number of years to add. |
Returns
Type | Description |
---|---|
System.Nullable<System.DateTime> | The DateTime that results from adding the specified number of years to the specified DateTime. |