TimeInterval.ToString(IFormatProvider) Method
In This Article
Provides a string representation of the time interval, culture specific.
Namespace: DevExpress.XtraScheduler
Assembly: DevExpress.XtraScheduler.v24.2.Core.dll
NuGet Package: DevExpress.Scheduler.Core
#Declaration
public string ToString(
IFormatProvider provider
)
#Parameters
Name | Type | Description |
---|---|---|
provider | IFormat |
An object, implementing the IFormat |
#Returns
Type | Description |
---|---|
String | A string, representing the Time |
#Remarks
Use this method to obtain a culture specific representation of the time interval.
The sample code and it’s result is shown below:
private void schedulerControl1_MouseUp(object sender, MouseEventArgs e)
{
MessageBox.Show(schedulerControl1.SelectedInterval.ToString(CultureInfo.CurrentCulture),
"You've selected the interval:");
}
See Also