Skip to main content

HumanReadableTimeSpanHelper.ConvertToString Event

Occurs before the specified TimeSpan value is converted to a string.

Namespace: DevExpress.XtraScheduler.Native

Assembly: DevExpress.XtraScheduler.v24.1.Core.Desktop.dll

NuGet Package: DevExpress.Scheduler.CoreDesktop

Declaration

public static event TimeSpanStringConvertEventHandler ConvertToString

Event Data

The ConvertToString event's data class is TimeSpanStringConvertEventArgs. The following properties provide information specific to this event:

Property Description
Handled Gets or sets whether an event was handled, if it was handled the default actions are not required.
StringValue Gets or sets the string used when converting a TimeSpan value to a string or vice versa.
TimeSpanValue Gets or sets the TimeSpan value used when converting a TimeSpan value to a string or vice versa.

Remarks

Use the HumanReadableTimeSpanHelper.ToString method to convert a TimeSpan to a string . Handle the ConvertToString event to implement a custom conversion.

See Also