Skip to main content

TimeInterval.ToString(IFormatProvider) Method

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

Namespace: DevExpress.XtraScheduler

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

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