Class ShortTimeFormat
Represents the short time format used for parsing and formatting.
Inheritance
System.Object
ShortTimeFormat
Implements
Inherited Members
System.Object.Equals(System.Object, System.Object)
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 class ShortTimeFormat : ITimeFormat
Methods
| Improve this Doc View SourceEquals(Object)
Determines whether the specified System.Object is equal to the current System.Object.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | The System.Object to compare with the current System.Object. |
Returns
Type | Description |
---|---|
System.Boolean | True if the specified System.Object is equal to the current System.Object; otherwise, false. |
Overrides
System.Object.Equals(System.Object)
Exceptions
Type | Condition |
---|---|
System.NullReferenceException | The |
GetHashCode()
Serves as a hash function for a particular type.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | A hash code for the current System.Object. |
Overrides
System.Object.GetHashCode()
|
Improve this Doc
View Source
GetTimeDisplayFormat(CultureInfo)
Declaration
public string GetTimeDisplayFormat(CultureInfo culture)
Parameters
Type | Name | Description |
---|---|---|
System.Globalization.CultureInfo | culture |
Returns
Type | Description |
---|---|
System.String |
GetTimeParseFormats(CultureInfo)
Declaration
public string[] GetTimeParseFormats(CultureInfo culture)
Parameters
Type | Name | Description |
---|---|---|
System.Globalization.CultureInfo | culture |
Returns
Type | Description |
---|---|
System.String[] |
Operators
| Improve this Doc View SourceEquality(ShortTimeFormat, ShortTimeFormat)
Implements the operator ==.
Declaration
public static bool operator ==(ShortTimeFormat left, ShortTimeFormat right)
Parameters
Type | Name | Description |
---|---|---|
ShortTimeFormat | left | The left instance to compare. |
ShortTimeFormat | right | The right instance to compare. |
Returns
Type | Description |
---|---|
System.Boolean | The result of the operator. |
Inequality(ShortTimeFormat, ShortTimeFormat)
Implements the operator !=.
Declaration
public static bool operator !=(ShortTimeFormat left, ShortTimeFormat right)
Parameters
Type | Name | Description |
---|---|---|
ShortTimeFormat | left | The left instance to compare. |
ShortTimeFormat | right | The right instance to compare. |
Returns
Type | Description |
---|---|
System.Boolean | The result of the operator. |