# C1.Win.Schedule.C1Schedule.SelectAppointment

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_Schedule_C1Schedule_SelectAppointment_" data-uid="C1.Win.Schedule.C1Schedule.SelectAppointment*">SelectAppointment Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_Schedule_C1Schedule_SelectAppointment_" data-uid="C1.Win.Schedule.C1Schedule.SelectAppointment*"></a>
<h4 id="C1_Win_Schedule_C1Schedule_SelectAppointment_C1_Schedule_Appointment_System_Boolean_" data-uid="C1.Win.Schedule.C1Schedule.SelectAppointment(C1.Schedule.Appointment,System.Boolean)">SelectAppointment(Appointment, bool)</h4>
<div class="markdown level1 summary"><p>Selects specified <span class="xref">C1.Schedule.Appointment</span> object in the user interface.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void SelectAppointment(Appointment appointment, bool extendSelection)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub SelectAppointment(appointment As Appointment, extendSelection 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">Appointment</span></td>
      <td><span class="parametername">appointment</span></td>
      <td><p>The <span class="xref">C1.Schedule.Appointment</span> object to select.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">extendSelection</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a> value specifying the kind
of selection to be made.
If true, specified <span class="xref">C1.Schedule.Appointment</span> object
will be added to the current selection.
If false, current selection will be changed
by the specified <span class="xref">C1.Schedule.Appointment</span> object.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Win_Schedule_C1Schedule_SelectAppointment_C1_Schedule_Appointment_System_Boolean__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>This method doesn't change or scroll current view.
Use <a class="xref" href="C1.Win.Schedule.C1Schedule.GoToDate.html#C1_Win_Schedule_C1Schedule_GoToDate_System_DateTime_">GoToDate(DateTime)</a> method to bring desired <span class="xref">C1.Schedule.Appointment</span>
object into view:
<pre><code class="lang-csharp">GoToDate(appointment.Start);</code></pre>
</div>
</div>
