# C1.Win.Schedule.C1Schedule.BeforeAppointmentCreate

## Content

<div class="doc-site-dotnet-api-container">




<h1 id="C1_Win_Schedule_C1Schedule_BeforeAppointmentCreate" data-uid="C1.Win.Schedule.C1Schedule.BeforeAppointmentCreate" class="text-break">BeforeAppointmentCreate Event
</h1>
<div class="markdown level0 summary"><p>Occurs immediately before the new <span class="xref">C1.Schedule.Appointment</span> object is created.</p>
</div>
<div class="markdown level0 conceptual"></div>
<h6><strong>Namespace</strong>: <a class="xref" href="C1.Win.Schedule.html">C1.Win.Schedule</a></h6>
<h6><strong>Assembly</strong>: C1.Win.Schedule.10.dll</h6>
<h5 id="C1_Win_Schedule_C1Schedule_BeforeAppointmentCreate_syntax">Syntax</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">[C1Description(&quot;BeforeAppointmentCreate&quot;, &quot;Fired before the new Appointment object is created.&quot;)]
[C1Category(&quot;UI&quot;)]
public event CancelAppointmentEventHandler BeforeAppointmentCreate</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">&lt;C1Description(&quot;BeforeAppointmentCreate&quot;, &quot;Fired before the new Appointment object is created.&quot;)&gt;
&lt;C1Category(&quot;UI&quot;)&gt;
Public Event BeforeAppointmentCreate As CancelAppointmentEventHandler</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><span class="xref">CancelAppointmentEventHandler</span></td>
      <td>Occurs immediately before the new  object is created.</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Win_Schedule_C1Schedule_BeforeAppointmentCreate_remarks"><strong>Remarks</strong></h5>
<div class="markdown level0 remarks"><p>CancelAppointmentEventArgs for this event is initialized according 
            to the currently selected view and date. For example: </p>
            <ul><li><span class="term"></span>If there are some selected slots in the DayView, 
            then <span class="xref">C1.Schedule.Appointment.Start</span> and 
            <span class="xref">C1.Schedule.Appointment.End</span> properties will be initialized 
            accordingly.</li><li><span class="term"></span>If there is a selected day in a WeekView 
            or in a MonthView, the <span class="xref">C1.Schedule.Appointment.AllDayEvent</span> 
            property will be set to true.</li></ul>
            <p>Use this event to prevent the appointment creation or to fill-in some additional appointment properties.</p>
</div>
</div>
