Scheduler for WPF | ComponentOne
C1.WPF.Schedule Namespace / C1Scheduler Class / SetRelativeStartTime Method
A double value in a range between 0 and 1 that defines a relative value between C1Scheduler.Start and C1Scheduler.End.

In This Topic
    SetRelativeStartTime Method (C1Scheduler)
    In This Topic
    Sets the C1Scheduler.VisualStartTime property to a value between the C1Scheduler.Start and C1Scheduler.End property values based on the specified coefficient.
    Syntax
    'Declaration
     
    
    Public Sub SetRelativeStartTime( _
       ByVal coefficient As Double _
    ) 
    public void SetRelativeStartTime( 
       double coefficient
    )

    Parameters

    coefficient
    A double value in a range between 0 and 1 that defines a relative value between C1Scheduler.Start and C1Scheduler.End.
    Remarks
    The approximate new value is calculated with the following formula:

    VisualStartTime = Start + (End - Start) * coefficient

    After the new value is calculated, it is adjusted so that the old and new values of the C1Scheduler.VisualStartTime property become different in an amount that is multiple of the C1Scheduler.SmallStartTimeChange property value, that guarantees that the first VisualInterval in the VisualIntervals collection is properly aligned to be in synch with UI model suppositions.

    This method implements the C1Scheduler.SetRelativeStartTimeCommand command.

    See Also