Class DateRangeConverter
UXML attribute converter for DateRange values.
Inherited Members
Namespace: Unity.AppUI.Editor
Assembly: Unity.AppUI.Editor.dll
Syntax
public class DateRangeConverter : UxmlAttributeConverter<DateRange>
Methods
FromString(string)
Converts a UXML attribute value into a DateRange.
Declaration
public override DateRange FromString(string value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | value | The attribute value to convert. |
Returns
| Type | Description |
|---|---|
| DateRange | The converted range, or the default range if the value is empty or cannot be parsed. |
Overrides
ToString(DateRange)
Converts a DateRange into its UXML attribute representation.
Declaration
public override string ToString(DateRange value)
Parameters
| Type | Name | Description |
|---|---|---|
| DateRange | value | The range to convert. |
Returns
| Type | Description |
|---|---|
| string | The string representation of the range. |
Overrides
UnityEditor.UIElements.UxmlAttributeConverter<Unity.AppUI.Core.DateRange>.ToString(Unity.AppUI.Core.DateRange)