You can specify the current time of a C1TimeEditor control by setting the C1TimeEditor.Value property in code.
In the Designer
Complete the following steps:
In XAML
To specify the current time, place Value="07:00:00" to the <DateTimeEditors:C1TimeEditor>tag so that the markup resembles the following:
Markup |
Copy Code
|
---|---|
<DateTimeEditors:C1TimeEditor Value="07:00:00"/>
|
The control reflects a time of 7:00:00 a.m.
In Code
Complete the following steps:
Visual Basic Copy Code C1TimeEditor1.Value = New TimeSpan(7, 0, 0)
C# Copy CodeC1TimeEditor1.Value = new TimeSpan(7,0,0);
This Topic Illustrates the Following:
By following the steps in this topic, you have changed the time on the C1TimeEditor control to 7:00:00 a.m. The result will resemble the following: