Back to Devexpress

HumanReadableTimeSpanHelper.ConvertToString Event

corelibraries-devexpress-dot-xtrascheduler-dot-native-dot-humanreadabletimespanhelper.md

latest2.7 KB
Original Source

HumanReadableTimeSpanHelper.ConvertToString Event

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

Namespace : DevExpress.XtraScheduler.Native

Assembly : DevExpress.XtraScheduler.v25.2.Core.Desktop.dll

NuGet Package : DevExpress.Scheduler.CoreDesktop

Declaration

csharp
public static event TimeSpanStringConvertEventHandler ConvertToString
vb
Public Shared Event ConvertToString As TimeSpanStringConvertEventHandler

Event Data

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

PropertyDescription
HandledGets or sets whether an event was handled, if it was handled the default actions are not required.
StringValueGets or sets the string used when converting a TimeSpan value to a string or vice versa.
TimeSpanValueGets 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

ParseString

HumanReadableTimeSpanHelper Class

HumanReadableTimeSpanHelper Members

DevExpress.XtraScheduler.Native Namespace