# C1.WPF.Schedule.C1Scheduler.NavigateToAppointment

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_WPF_Schedule_C1Scheduler_NavigateToAppointment_" data-uid="C1.WPF.Schedule.C1Scheduler.NavigateToAppointment*">NavigateToAppointment Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_WPF_Schedule_C1Scheduler_NavigateToAppointment_" data-uid="C1.WPF.Schedule.C1Scheduler.NavigateToAppointment*"></a>
<h4 id="C1_WPF_Schedule_C1Scheduler_NavigateToAppointment_System_Boolean_System_Nullable_System_DateTime__" data-uid="C1.WPF.Schedule.C1Scheduler.NavigateToAppointment(System.Boolean,System.Nullable{System.DateTime})">NavigateToAppointment(bool, DateTime?)</h4>
<div class="markdown level1 summary"><p>Navigates the <a class="xref" href="C1.WPF.Schedule.C1Scheduler.html">C1Scheduler</a> control to the nearest
<span class="xref">C1.Schedule.Appointment</span>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool NavigateToAppointment(bool previous, DateTime? startTime)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function NavigateToAppointment(previous As Boolean, startTime As Date?) As Boolean</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.boolean">bool</a></td>
      <td><span class="parametername">previous</span></td>
      <td><p>If true, means the backward direction;
forward direction otherwise.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.datetime">DateTime</a>?</td>
      <td><span class="parametername">startTime</span></td>
      <td><p>The start <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.datetime">DateTime</a> point.
If this parameter has no value, navigation will be
performed starting from the <a class="xref" href="C1.WPF.Schedule.C1Scheduler.SelectedDateTime.html#C1_WPF_Schedule_C1Scheduler_SelectedDateTime">SelectedDateTime</a> property value.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><p>True if navigation has occurred;
False if there are no appointments in the specified direction.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_WPF_Schedule_C1Scheduler_NavigateToAppointment_" data-uid="C1.WPF.Schedule.C1Scheduler.NavigateToAppointment*"></a>
<h4 id="C1_WPF_Schedule_C1Scheduler_NavigateToAppointment_C1_Schedule_BaseObject_System_Boolean_System_Nullable_System_DateTime__" data-uid="C1.WPF.Schedule.C1Scheduler.NavigateToAppointment(C1.Schedule.BaseObject,System.Boolean,System.Nullable{System.DateTime})">NavigateToAppointment(BaseObject, bool, DateTime?)</h4>
<div class="markdown level1 summary"><p>Navigates the <a class="xref" href="C1.WPF.Schedule.C1Scheduler.html">C1Scheduler</a> control to the nearest
<span class="xref">C1.Schedule.Appointment</span> in the GroupItems with the specified owner object.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool NavigateToAppointment(BaseObject owner, bool previous, DateTime? startTime)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function NavigateToAppointment(owner As BaseObject, previous As Boolean, startTime As Date?) As Boolean</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><span class="xref">BaseObject</span></td>
      <td><span class="parametername">owner</span></td>
      <td><p>An owner object determining the <a class="xref" href="C1.WPF.Schedule.SchedulerGroupItem.html">SchedulerGroupItem</a> to search through.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">previous</span></td>
      <td><p>If true, means the backward direction;
forward direction otherwise.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.datetime">DateTime</a>?</td>
      <td><span class="parametername">startTime</span></td>
      <td><p>The start <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.datetime">DateTime</a> point.
If this parameter has no value, navigation will be
performed starting from the <a class="xref" href="C1.WPF.Schedule.C1Scheduler.SelectedDateTime.html#C1_WPF_Schedule_C1Scheduler_SelectedDateTime">SelectedDateTime</a> property value.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><p>True if navigation has occurred;
False if there are no appointments in the specified direction.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
