# C1.WPF.Schedule.VisualInterval

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WPF_Schedule_VisualInterval" data-uid="C1.WPF.Schedule.VisualInterval" class="text-break">VisualInterval Class
</h1>
  <div class="markdown level0 summary"><p>Represents a definition of a minimal indivisible time interval represented
by the <a class="xref" href="C1.WPF.Schedule.C1Scheduler.html">C1Scheduler</a>.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.threading.dispatcherobject">DispatcherObject</a></div>
    <div class="level2"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.dependencyobject">DependencyObject</a></div>
    <div class="level3"><span class="xref">VisualInterval</span></div>
      <div class="level4"><a class="xref" href="C1.WPF.Schedule.VisualIntervalGroup.html">VisualIntervalGroup</a></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.inotifypropertychanged">INotifyPropertyChanged</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.iweakeventlistener">IWeakEventListener</a></div>
  </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_VisualInterval_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class VisualInterval : DependencyObject, INotifyPropertyChanged, IWeakEventListener</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class VisualInterval
    Inherits DependencyObject
    Implements INotifyPropertyChanged, IWeakEventListener</code></pre>
  </div>
  <h5 id="C1_WPF_Schedule_VisualInterval_remarks"><strong>Remarks</strong></h5>
  <div class="markdown level0 remarks"><p>The instances of this class are used as DataContext for the
<a class="xref" href="C1.WPF.Schedule.C1Scheduler.VisualIntervalTemplate.html#C1_WPF_Schedule_C1Scheduler_VisualIntervalTemplate">VisualIntervalTemplate</a>.</p>
</div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_WPF_Schedule_VisualInterval__ctor_C1_WPF_Schedule_C1Scheduler_C1_WPF_Schedule_SchedulerGroupItem_System_DateTime_System_TimeSpan_" data-uid="C1.WPF.Schedule.VisualInterval.#ctor(C1.WPF.Schedule.C1Scheduler,C1.WPF.Schedule.SchedulerGroupItem,System.DateTime,System.TimeSpan)">
          <a class="xref" href="C1.WPF.Schedule.VisualInterval.-ctor.html#C1_WPF_Schedule_VisualInterval__ctor_C1_WPF_Schedule_C1Scheduler_C1_WPF_Schedule_SchedulerGroupItem_System_DateTime_System_TimeSpan_">VisualInterval(C1Scheduler, SchedulerGroupItem, DateTime, TimeSpan)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new <a class="xref" href="C1.WPF.Schedule.VisualInterval.html">VisualInterval</a> object for the specified
<a class="xref" href="C1.WPF.Schedule.C1Scheduler.html">C1Scheduler</a> that represents the specified time range.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="fields">Fields
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_WPF_Schedule_VisualInterval_IsSelectedProperty" data-uid="C1.WPF.Schedule.VisualInterval.IsSelectedProperty">
          <a class="xref" href="C1.WPF.Schedule.VisualInterval.IsSelectedProperty.html">IsSelectedProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Schedule.VisualInterval.IsSelected.html#C1_WPF_Schedule_VisualInterval_IsSelected">IsSelected</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Schedule_VisualInterval_StartTimeInfoProperty" data-uid="C1.WPF.Schedule.VisualInterval.StartTimeInfoProperty">
          <a class="xref" href="C1.WPF.Schedule.VisualInterval.StartTimeInfoProperty.html">StartTimeInfoProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Schedule.VisualInterval.StartTimeInfoProperty.html">StartTimeInfoProperty</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Schedule_VisualInterval_StatusBrushProperty" data-uid="C1.WPF.Schedule.VisualInterval.StatusBrushProperty">
          <a class="xref" href="C1.WPF.Schedule.VisualInterval.StatusBrushProperty.html">StatusBrushProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Schedule.VisualInterval.StatusBrush.html#C1_WPF_Schedule_VisualInterval_StatusBrush">StatusBrush</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Schedule_VisualInterval_TotalStatusBrushProperty" data-uid="C1.WPF.Schedule.VisualInterval.TotalStatusBrushProperty">
          <a class="xref" href="C1.WPF.Schedule.VisualInterval.TotalStatusBrushProperty.html">TotalStatusBrushProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.Schedule.VisualInterval.TotalStatusBrush.html#C1_WPF_Schedule_VisualInterval_TotalStatusBrush">TotalStatusBrush</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Schedule_VisualInterval__isDisposed" data-uid="C1.WPF.Schedule.VisualInterval._isDisposed">
          <a class="xref" href="C1.WPF.Schedule.VisualInterval._isDisposed.html">_isDisposed</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_WPF_Schedule_VisualInterval__scheduler" data-uid="C1.WPF.Schedule.VisualInterval._scheduler">
          <a class="xref" href="C1.WPF.Schedule.VisualInterval._scheduler.html">_scheduler</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_WPF_Schedule_VisualInterval_Appointments" data-uid="C1.WPF.Schedule.VisualInterval.Appointments">
          <a class="xref" href="C1.WPF.Schedule.VisualInterval.Appointments.html#C1_WPF_Schedule_VisualInterval_Appointments">Appointments</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a collection of <a class="xref" href="C1.WPF.Schedule.IntervalAppointment.html">IntervalAppointment</a> objects representing
appointments whose time range is intersected with the time range of this
<a class="xref" href="C1.WPF.Schedule.VisualInterval.html">VisualInterval</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Schedule_VisualInterval_Culture" data-uid="C1.WPF.Schedule.VisualInterval.Culture">
          <a class="xref" href="C1.WPF.Schedule.VisualInterval.Culture.html#C1_WPF_Schedule_VisualInterval_Culture">Culture</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a CultureInfo.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Schedule_VisualInterval_EndTime" data-uid="C1.WPF.Schedule.VisualInterval.EndTime">
          <a class="xref" href="C1.WPF.Schedule.VisualInterval.EndTime.html#C1_WPF_Schedule_VisualInterval_EndTime">EndTime</a>
        </td>
        <td class="markdown level1 summary"><p>Gets an end time of a time range represented by the <a class="xref" href="C1.WPF.Schedule.VisualInterval.html">VisualInterval</a> object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Schedule_VisualInterval_EndTimeInfo" data-uid="C1.WPF.Schedule.VisualInterval.EndTimeInfo">
          <a class="xref" href="C1.WPF.Schedule.VisualInterval.EndTimeInfo.html#C1_WPF_Schedule_VisualInterval_EndTimeInfo">EndTimeInfo</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a DateTimeInfo object containing auxiliary properties for a usage in XAML
that provides additional information for the <a class="xref" href="C1.WPF.Schedule.VisualInterval.EndTime.html#C1_WPF_Schedule_VisualInterval_EndTime">EndTime</a> property
value.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Schedule_VisualInterval_InclusiveEndTime" data-uid="C1.WPF.Schedule.VisualInterval.InclusiveEndTime">
          <a class="xref" href="C1.WPF.Schedule.VisualInterval.InclusiveEndTime.html#C1_WPF_Schedule_VisualInterval_InclusiveEndTime">InclusiveEndTime</a>
        </td>
        <td class="markdown level1 summary"><p>Gets an inclusive end time of a time range represented by the <a class="xref" href="C1.WPF.Schedule.VisualInterval.html">VisualInterval</a> object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Schedule_VisualInterval_InclusiveEndTimeInfo" data-uid="C1.WPF.Schedule.VisualInterval.InclusiveEndTimeInfo">
          <a class="xref" href="C1.WPF.Schedule.VisualInterval.InclusiveEndTimeInfo.html#C1_WPF_Schedule_VisualInterval_InclusiveEndTimeInfo">InclusiveEndTimeInfo</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a DateTimeInfo object containing auxiliary properties for a usage in XAML
that provides additional information for the <a class="xref" href="C1.WPF.Schedule.VisualInterval.EndTimeInfo.html#C1_WPF_Schedule_VisualInterval_EndTimeInfo">EndTimeInfo</a> property
value.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Schedule_VisualInterval_Index" data-uid="C1.WPF.Schedule.VisualInterval.Index">
          <a class="xref" href="C1.WPF.Schedule.VisualInterval.Index.html#C1_WPF_Schedule_VisualInterval_Index">Index</a>
        </td>
        <td class="markdown level1 summary"><p>Gets an index of <a class="xref" href="C1.WPF.Schedule.VisualInterval.html">VisualInterval</a> in
the owning <a class="xref" href="C1.WPF.Schedule.SchedulerGroupItem.VisualIntervals.html#C1_WPF_Schedule_SchedulerGroupItem_VisualIntervals">VisualIntervals</a> collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Schedule_VisualInterval_IsSelected" data-uid="C1.WPF.Schedule.VisualInterval.IsSelected">
          <a class="xref" href="C1.WPF.Schedule.VisualInterval.IsSelected.html#C1_WPF_Schedule_VisualInterval_IsSelected">IsSelected</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value that determines whether the UI element that has this
<a class="xref" href="C1.WPF.Schedule.VisualInterval.html">VisualInterval</a> as a DataContext is selected.
This is a dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Schedule_VisualInterval_IsToday" data-uid="C1.WPF.Schedule.VisualInterval.IsToday">
          <a class="xref" href="C1.WPF.Schedule.VisualInterval.IsToday.html#C1_WPF_Schedule_VisualInterval_IsToday">IsToday</a>
        </td>
        <td class="markdown level1 summary"><p>Indicates whether the <a class="xref" href="C1.WPF.Schedule.VisualInterval.html">VisualInterval</a> represents the current day.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Schedule_VisualInterval_Items" data-uid="C1.WPF.Schedule.VisualInterval.Items">
          <a class="xref" href="C1.WPF.Schedule.VisualInterval.Items.html#C1_WPF_Schedule_VisualInterval_Items">Items</a>
        </td>
        <td class="markdown level1 summary"><p>Virtual property returns null in this class implementation.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Schedule_VisualInterval_OwnerGroup" data-uid="C1.WPF.Schedule.VisualInterval.OwnerGroup">
          <a class="xref" href="C1.WPF.Schedule.VisualInterval.OwnerGroup.html#C1_WPF_Schedule_VisualInterval_OwnerGroup">OwnerGroup</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the owning <a class="xref" href="C1.WPF.Schedule.SchedulerGroupItem.html">SchedulerGroupItem</a> object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Schedule_VisualInterval_Scheduler" data-uid="C1.WPF.Schedule.VisualInterval.Scheduler">
          <a class="xref" href="C1.WPF.Schedule.VisualInterval.Scheduler.html#C1_WPF_Schedule_VisualInterval_Scheduler">Scheduler</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="C1.WPF.Schedule.VisualInterval.Scheduler.html#C1_WPF_Schedule_VisualInterval_Scheduler">Scheduler</a> that <a class="xref" href="C1.WPF.Schedule.VisualInterval.html">VisualInterval</a>
belongs to.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Schedule_VisualInterval_StartTime" data-uid="C1.WPF.Schedule.VisualInterval.StartTime">
          <a class="xref" href="C1.WPF.Schedule.VisualInterval.StartTime.html#C1_WPF_Schedule_VisualInterval_StartTime">StartTime</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a start time of a time range represented by the <a class="xref" href="C1.WPF.Schedule.VisualInterval.html">VisualInterval</a> object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Schedule_VisualInterval_StartTimeInfo" data-uid="C1.WPF.Schedule.VisualInterval.StartTimeInfo">
          <a class="xref" href="C1.WPF.Schedule.VisualInterval.StartTimeInfo.html#C1_WPF_Schedule_VisualInterval_StartTimeInfo">StartTimeInfo</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a DateTimeInfo object containing auxiliary properties for a usage in XAML
that provides additional information for the <a class="xref" href="C1.WPF.Schedule.VisualInterval.StartTime.html#C1_WPF_Schedule_VisualInterval_StartTime">StartTime</a> property
value.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Schedule_VisualInterval_StatusBrush" data-uid="C1.WPF.Schedule.VisualInterval.StatusBrush">
          <a class="xref" href="C1.WPF.Schedule.VisualInterval.StatusBrush.html#C1_WPF_Schedule_VisualInterval_StatusBrush">StatusBrush</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.media.brush">Brush</a> object representing interval availability status.
Only honors all-day and multi-day events availability status.
This is a dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Schedule_VisualInterval_TimeScale" data-uid="C1.WPF.Schedule.VisualInterval.TimeScale">
          <a class="xref" href="C1.WPF.Schedule.VisualInterval.TimeScale.html#C1_WPF_Schedule_VisualInterval_TimeScale">TimeScale</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a TimeSpan of a time range represented by the <a class="xref" href="C1.WPF.Schedule.VisualInterval.html">VisualInterval</a> object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Schedule_VisualInterval_TotalStatusBrush" data-uid="C1.WPF.Schedule.VisualInterval.TotalStatusBrush">
          <a class="xref" href="C1.WPF.Schedule.VisualInterval.TotalStatusBrush.html#C1_WPF_Schedule_VisualInterval_TotalStatusBrush">TotalStatusBrush</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.media.brush">Brush</a> object representing interval availability status.
Honors status of all appointments in the interval.
This is a dependency property.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_WPF_Schedule_VisualInterval_ContainsTime_System_DateTime_" data-uid="C1.WPF.Schedule.VisualInterval.ContainsTime(System.DateTime)">
          <a class="xref" href="C1.WPF.Schedule.VisualInterval.ContainsTime.html#C1_WPF_Schedule_VisualInterval_ContainsTime_System_DateTime_">ContainsTime(DateTime)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value indicating whether the specified DateTime belongs to the
time range represented by the <a class="xref" href="C1.WPF.Schedule.VisualInterval.html">VisualInterval</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Schedule_VisualInterval_ReceiveWeakEvent_System_Type_System_Object_System_EventArgs_" data-uid="C1.WPF.Schedule.VisualInterval.ReceiveWeakEvent(System.Type,System.Object,System.EventArgs)">
          <a class="xref" href="C1.WPF.Schedule.VisualInterval.ReceiveWeakEvent.html#C1_WPF_Schedule_VisualInterval_ReceiveWeakEvent_System_Type_System_Object_System_EventArgs_">ReceiveWeakEvent(Type, object, EventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Receives events from the centralized event manager.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="events">Events
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_WPF_Schedule_VisualInterval_PropertyChanged" data-uid="C1.WPF.Schedule.VisualInterval.PropertyChanged">
          <a class="xref" href="C1.WPF.Schedule.VisualInterval.PropertyChanged.html">PropertyChanged</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when property value is changed.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
