# C1.WPF.Schedule.C1Scheduler.SetRelativeStartTime

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_WPF_Schedule_C1Scheduler_SetRelativeStartTime_" data-uid="C1.WPF.Schedule.C1Scheduler.SetRelativeStartTime*">SetRelativeStartTime Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_WPF_Schedule_C1Scheduler_SetRelativeStartTime_" data-uid="C1.WPF.Schedule.C1Scheduler.SetRelativeStartTime*"></a>
<h4 id="C1_WPF_Schedule_C1Scheduler_SetRelativeStartTime_System_Double_" data-uid="C1.WPF.Schedule.C1Scheduler.SetRelativeStartTime(System.Double)">SetRelativeStartTime(double)</h4>
<div class="markdown level1 summary"><p>Sets the <a class="xref" href="C1.WPF.Schedule.C1Scheduler.VisualStartTime.html#C1_WPF_Schedule_C1Scheduler_VisualStartTime">VisualStartTime</a> property to a value between the
<a class="xref" href="C1.WPF.Schedule.C1Scheduler.Start.html#C1_WPF_Schedule_C1Scheduler_Start">Start</a> and <a class="xref" href="C1.WPF.Schedule.C1Scheduler.End.html#C1_WPF_Schedule_C1Scheduler_End">End</a> property values based on the specified
coefficient.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void SetRelativeStartTime(double coefficient)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub SetRelativeStartTime(coefficient As Double)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td><span class="parametername">coefficient</span></td>
      <td><p>A double value in a range between 0 and 1 that defines a relative value
between <a class="xref" href="C1.WPF.Schedule.C1Scheduler.Start.html#C1_WPF_Schedule_C1Scheduler_Start">Start</a> and <a class="xref" href="C1.WPF.Schedule.C1Scheduler.End.html#C1_WPF_Schedule_C1Scheduler_End">End</a>.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_WPF_Schedule_C1Scheduler_SetRelativeStartTime_System_Double__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>The approximate new value is calculated with the following formula:</p>
<p>
VisualStartTime = Start + (End - Start) * coefficient
</p>
<p>
After the new value is calculated, it is adjusted so that the old and new 
values of the
<a class="xref" href="C1.WPF.Schedule.C1Scheduler.VisualStartTime.html#C1_WPF_Schedule_C1Scheduler_VisualStartTime">VisualStartTime</a> property become different in an amount that is 
multiple of 
the <a class="xref" href="C1.WPF.Schedule.C1Scheduler.SmallStartTimeChange.html#C1_WPF_Schedule_C1Scheduler_SmallStartTimeChange">SmallStartTimeChange</a> property value, that guarantees that the 
first  <a class="xref" href="C1.WPF.Schedule.VisualInterval.html">VisualInterval</a> in the VisualIntervals 
collection is properly aligned to be in synch with UI model suppositions.
</p>
<p>
This method implements the <a class="xref" href="C1.WPF.Schedule.C1Scheduler.SetRelativeStartTimeCommand.html">SetRelativeStartTimeCommand</a> command.
</p>
</div>
</div>
