Class CustomTimeFormat
Represents a single time format used for parsing and formatting.
Inheritance
System.Object
CustomTimeFormat
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: System.Windows.Controls
Assembly: OpenSilver.dll
Syntax
[NotImplemented]
public sealed class CustomTimeFormat : ITimeFormat
Constructors
| Improve this Doc View SourceCustomTimeFormat()
Initializes a new instance of the CustomTimeFormat class.
Declaration
[NotImplemented]
public CustomTimeFormat()
CustomTimeFormat(String)
Initializes a new instance of the CustomTimeFormat class.
Declaration
[NotImplemented]
public CustomTimeFormat(string format)
Parameters
Type | Name | Description |
---|---|---|
System.String | format | The format that is used to parse or display a String or DateTime. |
Properties
| Improve this Doc View SourceFormat
Gets or sets the custom format that is used to parse or display a String or DateTime.
Declaration
[NotImplemented]
public string Format { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceGetTimeDisplayFormat(CultureInfo)
Gets the format to use to display a DateTime as a time value.
Declaration
[NotImplemented]
public string GetTimeDisplayFormat(CultureInfo culture)
Parameters
Type | Name | Description |
---|---|---|
System.Globalization.CultureInfo | culture | The culture. |
Returns
Type | Description |
---|---|
System.String | A format to use during display of a DateTime. |
GetTimeParseFormats(CultureInfo)
Gets the format to use to parse a string to a DateTime.
Declaration
[NotImplemented]
public string[] GetTimeParseFormats(CultureInfo culture)
Parameters
Type | Name | Description |
---|---|---|
System.Globalization.CultureInfo | culture | Culture used to determine formats. |
Returns
Type | Description |
---|---|
System.String[] | An array of formats to be used during parsing. |