Skip to main content
A newer version of this page is available. .

TimeInterval.ToString(IFormatProvider) Method

Provides a string representation of the time interval, culture specific.

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v20.2.Core.dll

NuGet Packages: DevExpress.Scheduler.Core, DevExpress.WindowsDesktop.Scheduler.Core

Declaration

public string ToString(
    IFormatProvider provider
)

Parameters

Name Type Description
provider IFormatProvider

An object, implementing the IFormatProvider interface, which specifies the datetime formatting template.

Returns

Type Description
String

A string, representing the TimeInterval object.

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:");
 }

TimeInterval_ToString

See Also