# C1.WPF.Schedule.C1Scheduler.UserDeletingAppointment

## Content

<div class="doc-site-dotnet-api-container">




<h1 id="C1_WPF_Schedule_C1Scheduler_UserDeletingAppointment" data-uid="C1.WPF.Schedule.C1Scheduler.UserDeletingAppointment" class="text-break">UserDeletingAppointment Event
</h1>
<div class="markdown level0 summary"><p>Occurs before the currently selected <span class="xref">C1.Schedule.Appointment</span> is deleted by a user
or as a result of the DeleteAppointment method call
or receiving the <a class="xref" href="C1.WPF.Schedule.C1Scheduler.DeleteAppointmentCommand.html">DeleteAppointmentCommand</a> command.</p>
</div>
<div class="markdown level0 conceptual"></div>
<h6><strong>Namespace</strong>: <a class="xref" href="C1.WPF.Schedule.html">C1.WPF.Schedule</a></h6>
<h6><strong>Assembly</strong>: C1.WPF.Schedule.4.6.2.dll</h6>
<h5 id="C1_WPF_Schedule_C1Scheduler_UserDeletingAppointment_syntax">Syntax</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public event EventHandler&lt;AppointmentActionEventArgs&gt; UserDeletingAppointment</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Event UserDeletingAppointment As EventHandler(Of AppointmentActionEventArgs)</code></pre>
</div>
<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.eventhandler-1">EventHandler</a>&lt;<a class="xref" href="C1.WPF.Schedule.AppointmentActionEventArgs.html">AppointmentActionEventArgs</a>&gt;</td>
      <td>Occurs before the currently selected  is deleted by a user or as a result of the DeleteAppointment method call or receiving the  command.</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_WPF_Schedule_C1Scheduler_UserDeletingAppointment_remarks"><strong>Remarks</strong></h5>
<div class="markdown level0 remarks"><p>Use this event to make custom actions before appointment deletion and/or to
implement your own reaction on this event. To prevent a deletion of the
appointment, set the e.Handled event argument to True.</p>
</div>
</div>
