# C1.Schedule.Printing.DateAppointmentsCollection.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Schedule_Printing_DateAppointmentsCollection__ctor_" data-uid="C1.Schedule.Printing.DateAppointmentsCollection.#ctor*">DateAppointmentsCollection Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Schedule_Printing_DateAppointmentsCollection__ctor_" data-uid="C1.Schedule.Printing.DateAppointmentsCollection.#ctor*"></a>
<h4 id="C1_Schedule_Printing_DateAppointmentsCollection__ctor_System_DateTime_System_DateTime_C1_Schedule_AppointmentCollection_" data-uid="C1.Schedule.Printing.DateAppointmentsCollection.#ctor(System.DateTime,System.DateTime,C1.Schedule.AppointmentCollection)">DateAppointmentsCollection(DateTime, DateTime, AppointmentCollection)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Schedule.Printing.DateAppointmentsCollection.html">DateAppointmentsCollection</a> collection
for the specified date range with appointment from the specified <span class="xref">C1.Schedule.AppointmentCollection</span> collection.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public DateAppointmentsCollection(DateTime start, DateTime end, AppointmentCollection appointmentCollection)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(start As Date, [end] As Date, appointmentCollection As AppointmentCollection)</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.datetime">DateTime</a></td>
      <td><span class="parametername">start</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.datetime">DateTime</a> value representing the beginning of the date range.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.datetime">DateTime</a></td>
      <td><span class="parametername">end</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.datetime">DateTime</a> value representing the end of the date range.</p>
</td>
    </tr>
    <tr>
      <td><span class="xref">AppointmentCollection</span></td>
      <td><span class="parametername">appointmentCollection</span></td>
      <td><p>The <span class="xref">C1.Schedule.AppointmentCollection</span> collection for getting appointments from.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Schedule_Printing_DateAppointmentsCollection__ctor_" data-uid="C1.Schedule.Printing.DateAppointmentsCollection.#ctor*"></a>
<h4 id="C1_Schedule_Printing_DateAppointmentsCollection__ctor_System_DateTime_System_DateTime_C1_Schedule_AppointmentCollection_System_Boolean_System_Boolean_" data-uid="C1.Schedule.Printing.DateAppointmentsCollection.#ctor(System.DateTime,System.DateTime,C1.Schedule.AppointmentCollection,System.Boolean,System.Boolean)">DateAppointmentsCollection(DateTime, DateTime, AppointmentCollection, bool, bool)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Schedule.Printing.DateAppointmentsCollection.html">DateAppointmentsCollection</a> collection
for the specified date range with appointment from the specified <span class="xref">C1.Schedule.AppointmentCollection</span> collection.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public DateAppointmentsCollection(DateTime start, DateTime end, AppointmentCollection appointmentCollection, bool includeEmptyDays, bool includePrivateAppointments)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(start As Date, [end] As Date, appointmentCollection As AppointmentCollection, includeEmptyDays As Boolean, includePrivateAppointments 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.datetime">DateTime</a></td>
      <td><span class="parametername">start</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.datetime">DateTime</a> value representing the beginning of the date range.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.datetime">DateTime</a></td>
      <td><span class="parametername">end</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.datetime">DateTime</a> value representing the end of the date range.</p>
</td>
    </tr>
    <tr>
      <td><span class="xref">AppointmentCollection</span></td>
      <td><span class="parametername">appointmentCollection</span></td>
      <td><p>The <span class="xref">C1.Schedule.AppointmentCollection</span> collection for getting appointments from.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">includeEmptyDays</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a> value specifying whether to include days without appointments into collection.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">includePrivateAppointments</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a> value specifying whether to include private appointments into collection.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Schedule_Printing_DateAppointmentsCollection__ctor_" data-uid="C1.Schedule.Printing.DateAppointmentsCollection.#ctor*"></a>
<h4 id="C1_Schedule_Printing_DateAppointmentsCollection__ctor_System_DateTime_System_DateTime_C1_Schedule_AppointmentCollection_C1_Schedule_CalendarInfo_System_Boolean_System_Boolean_System_Boolean_" data-uid="C1.Schedule.Printing.DateAppointmentsCollection.#ctor(System.DateTime,System.DateTime,C1.Schedule.AppointmentCollection,C1.Schedule.CalendarInfo,System.Boolean,System.Boolean,System.Boolean)">DateAppointmentsCollection(DateTime, DateTime, AppointmentCollection, CalendarInfo, bool, bool, bool)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Schedule.Printing.DateAppointmentsCollection.html">DateAppointmentsCollection</a> collection
for the specified date range with appointment from the specified <span class="xref">C1.Schedule.AppointmentCollection</span> collection.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public DateAppointmentsCollection(DateTime start, DateTime end, AppointmentCollection appointmentCollection, CalendarInfo calendarInfo, bool includeEmptyDays, bool includeWeekends, bool includePrivateAppointments)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(start As Date, [end] As Date, appointmentCollection As AppointmentCollection, calendarInfo As CalendarInfo, includeEmptyDays As Boolean, includeWeekends As Boolean, includePrivateAppointments 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.datetime">DateTime</a></td>
      <td><span class="parametername">start</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.datetime">DateTime</a> value representing the beginning of the date range.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.datetime">DateTime</a></td>
      <td><span class="parametername">end</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.datetime">DateTime</a> value representing the end of the date range.</p>
</td>
    </tr>
    <tr>
      <td><span class="xref">AppointmentCollection</span></td>
      <td><span class="parametername">appointmentCollection</span></td>
      <td><p>The <span class="xref">C1.Schedule.AppointmentCollection</span> collection for getting appointments from.</p>
</td>
    </tr>
    <tr>
      <td><span class="xref">CalendarInfo</span></td>
      <td><span class="parametername">calendarInfo</span></td>
      <td><p>The <span class="xref">C1.Schedule.CalendarInfo</span> object containing calendar specific information.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">includeEmptyDays</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a> value specifying whether to include days without appointments into collection.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">includeWeekends</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a> value specifying whether to include weekend days into collection.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">includePrivateAppointments</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a> value specifying whether to include private appointments into collection.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Schedule_Printing_DateAppointmentsCollection__ctor_" data-uid="C1.Schedule.Printing.DateAppointmentsCollection.#ctor*"></a>
<h4 id="C1_Schedule_Printing_DateAppointmentsCollection__ctor_System_DateTime_System_DateTime_System_Collections_Generic_IList_C1_Schedule_Appointment__System_Boolean_" data-uid="C1.Schedule.Printing.DateAppointmentsCollection.#ctor(System.DateTime,System.DateTime,System.Collections.Generic.IList{C1.Schedule.Appointment},System.Boolean)">DateAppointmentsCollection(DateTime, DateTime, IList&lt;Appointment&gt;, bool)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Schedule.Printing.DateAppointmentsCollection.html">DateAppointmentsCollection</a> collection
for the specified date range with appointment from the specified <span class="xref">C1.Schedule.AppointmentCollection</span> collection.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public DateAppointmentsCollection(DateTime start, DateTime end, IList&lt;Appointment&gt; appointments, bool includeEmptyDays)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(start As Date, [end] As Date, appointments As IList(Of Appointment), includeEmptyDays 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.datetime">DateTime</a></td>
      <td><span class="parametername">start</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.datetime">DateTime</a> value representing the beginning of the date range.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.datetime">DateTime</a></td>
      <td><span class="parametername">end</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.datetime">DateTime</a> value representing the end of the date range.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1">IList</a>&lt;<span class="xref">Appointment</span>&gt;</td>
      <td><span class="parametername">appointments</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1">IList&lt;T&gt;</a> list of appointments.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">includeEmptyDays</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a> value specifying whether to include days without appointments into collection.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Schedule_Printing_DateAppointmentsCollection__ctor_" data-uid="C1.Schedule.Printing.DateAppointmentsCollection.#ctor*"></a>
<h4 id="C1_Schedule_Printing_DateAppointmentsCollection__ctor_System_DateTime_System_DateTime_System_Collections_Generic_IList_C1_Schedule_Appointment__C1_Schedule_CalendarInfo_System_Boolean_System_Boolean_" data-uid="C1.Schedule.Printing.DateAppointmentsCollection.#ctor(System.DateTime,System.DateTime,System.Collections.Generic.IList{C1.Schedule.Appointment},C1.Schedule.CalendarInfo,System.Boolean,System.Boolean)">DateAppointmentsCollection(DateTime, DateTime, IList&lt;Appointment&gt;, CalendarInfo, bool, bool)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Schedule.Printing.DateAppointmentsCollection.html">DateAppointmentsCollection</a> collection
for the specified date range with appointment from the specified <span class="xref">C1.Schedule.AppointmentCollection</span> collection.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public DateAppointmentsCollection(DateTime start, DateTime end, IList&lt;Appointment&gt; appointments, CalendarInfo calendarInfo, bool includeEmptyDays, bool includeWeekends)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(start As Date, [end] As Date, appointments As IList(Of Appointment), calendarInfo As CalendarInfo, includeEmptyDays As Boolean, includeWeekends 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.datetime">DateTime</a></td>
      <td><span class="parametername">start</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.datetime">DateTime</a> value representing the beginning of the date range.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.datetime">DateTime</a></td>
      <td><span class="parametername">end</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.datetime">DateTime</a> value representing the end of the date range.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1">IList</a>&lt;<span class="xref">Appointment</span>&gt;</td>
      <td><span class="parametername">appointments</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1">IList&lt;T&gt;</a> list of appointments.</p>
</td>
    </tr>
    <tr>
      <td><span class="xref">CalendarInfo</span></td>
      <td><span class="parametername">calendarInfo</span></td>
      <td><p>The <span class="xref">C1.Schedule.CalendarInfo</span> object containing calendar specific information.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">includeEmptyDays</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a> value specifying whether to include days without appointments into collection.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">includeWeekends</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a> value specifying whether to include weekend days into collection.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
