# C1.WPF.Schedule.VisualIntervalCollection.Item

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_WPF_Schedule_VisualIntervalCollection_Item_" data-uid="C1.WPF.Schedule.VisualIntervalCollection.Item*">this Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_WPF_Schedule_VisualIntervalCollection_Item_" data-uid="C1.WPF.Schedule.VisualIntervalCollection.Item*"></a>
<h4 id="C1_WPF_Schedule_VisualIntervalCollection_Item_System_Int32_" data-uid="C1.WPF.Schedule.VisualIntervalCollection.Item(System.Int32)">this[int]</h4>
<div class="markdown level1 summary"><p>Gets a <a class="xref" href="C1.WPF.Schedule.VisualInterval.html">VisualInterval</a> object at the specified index.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public VisualInterval this[int index] { get; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public ReadOnly Default Property Item(index As Integer) As VisualInterval</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.int32">int</a></td>
      <td><span class="parametername">index</span></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="C1_WPF_Schedule_VisualIntervalCollection_Item_" data-uid="C1.WPF.Schedule.VisualIntervalCollection.Item*"></a>
<h4 id="C1_WPF_Schedule_VisualIntervalCollection_Item_System_DateTime_" data-uid="C1.WPF.Schedule.VisualIntervalCollection.Item(System.DateTime)">this[DateTime]</h4>
<div class="markdown level1 summary"><p>Gets a <a class="xref" href="C1.WPF.Schedule.VisualInterval.html">VisualInterval</a> that includes the specified DateTime.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public VisualInterval this[DateTime time] { get; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public ReadOnly Default Property Item(time As Date) As VisualInterval</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">time</span></td>
      <td><p>DateTime for which a <a class="xref" href="C1.WPF.Schedule.VisualInterval.html">VisualInterval</a> to find.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="propertyValue">Property Value</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="C1.WPF.Schedule.VisualInterval.html">VisualInterval</a></td>
      <td><p>Returns a <a class="xref" href="C1.WPF.Schedule.VisualInterval.html">VisualInterval</a> that includes the specified DateTime,
if exists; otherwise, a null value.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_WPF_Schedule_VisualIntervalCollection_Item_System_DateTime__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>A DateTime is considered as belonging to a <a class="xref" href="C1.WPF.Schedule.VisualInterval.html">VisualInterval</a>
if the following condition is satisfied:</p>
<p>
<a class="xref" href="C1.WPF.Schedule.VisualInterval.StartTime.html#C1_WPF_Schedule_VisualInterval_StartTime">StartTime</a> &lt;= DateTime and 
DateTime &gt; <a class="xref" href="C1.WPF.Schedule.VisualInterval.EndTime.html#C1_WPF_Schedule_VisualInterval_EndTime">EndTime</a> 
</p>
<p>
Note that the bottom boundary of the interval is exclusive, that is 
DateTime = <a class="xref" href="C1.WPF.Schedule.VisualInterval.EndTime.html#C1_WPF_Schedule_VisualInterval_EndTime">EndTime</a> is considered as not
belonging to the interval.
</p>
</div>
</div>
