# C1.WPF.ListView.ListViewItem

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WPF_ListView_ListViewItem" data-uid="C1.WPF.ListView.ListViewItem" class="text-break">ListViewItem Class
</h1>
  <div class="markdown level0 summary"><p>Model class to store settings of an item inside <a class="xref" href="C1.WPF.ListView.C1ListView.html">C1ListView</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"><span class="xref">ListViewItem</span></div>
      <div class="level2"><a class="xref" href="C1.WPF.ListView.ListViewGroupItem.html">ListViewGroupItem</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>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.WPF.ListView.html">C1.WPF.ListView</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.ListView.dll</h6>
  <h5 id="C1_WPF_ListView_ListViewItem_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class ListViewItem : INotifyPropertyChanged</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class ListViewItem
    Implements INotifyPropertyChanged</code></pre>
  </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_ListView_ListViewItem__ctor" data-uid="C1.WPF.ListView.ListViewItem.#ctor">
          <a class="xref" href="C1.WPF.ListView.ListViewItem.-ctor.html#C1_WPF_ListView_ListViewItem__ctor">ListViewItem()</a>
        </td>
        <td class="markdown level1 summary"><p>Initialize a new instance of <a class="xref" href="C1.WPF.ListView.ListViewItem.html">ListViewItem</a> class.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_ListView_ListViewItem__ctor_C1_DataCollection_IDataCollection_System_Object__System_Int32_" data-uid="C1.WPF.ListView.ListViewItem.#ctor(C1.DataCollection.IDataCollection{System.Object},System.Int32)">
          <a class="xref" href="C1.WPF.ListView.ListViewItem.-ctor.html#C1_WPF_ListView_ListViewItem__ctor_C1_DataCollection_IDataCollection_System_Object__System_Int32_">ListViewItem(IDataCollection&lt;object&gt;, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Initialize a new instance of <a class="xref" href="C1.WPF.ListView.ListViewItem.html">ListViewItem</a> class.</p>
</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_ListView_ListViewItem_Content" data-uid="C1.WPF.ListView.ListViewItem.Content">
          <a class="xref" href="C1.WPF.ListView.ListViewItem.Content.html#C1_WPF_ListView_ListViewItem_Content">Content</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the content associated with this object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_ListView_ListViewItem_DataCollection" data-uid="C1.WPF.ListView.ListViewItem.DataCollection">
          <a class="xref" href="C1.WPF.ListView.ListViewItem.DataCollection.html#C1_WPF_ListView_ListViewItem_DataCollection">DataCollection</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the collection to which the bound item belongs to.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_ListView_ListViewItem_DataIndex" data-uid="C1.WPF.ListView.ListViewItem.DataIndex">
          <a class="xref" href="C1.WPF.ListView.ListViewItem.DataIndex.html#C1_WPF_ListView_ListViewItem_DataIndex">DataIndex</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the index of the data inside the collection of items.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_ListView_ListViewItem_Index" data-uid="C1.WPF.ListView.ListViewItem.Index">
          <a class="xref" href="C1.WPF.ListView.ListViewItem.Index.html#C1_WPF_ListView_ListViewItem_Index">Index</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the index of this item in the collection of items.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_ListView_ListViewItem_IsEnabled" data-uid="C1.WPF.ListView.ListViewItem.IsEnabled">
          <a class="xref" href="C1.WPF.ListView.ListViewItem.IsEnabled.html#C1_WPF_ListView_ListViewItem_IsEnabled">IsEnabled</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the IsEnabled property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_ListView_ListViewItem_IsGroup" data-uid="C1.WPF.ListView.ListViewItem.IsGroup">
          <a class="xref" href="C1.WPF.ListView.ListViewItem.IsGroup.html#C1_WPF_ListView_ListViewItem_IsGroup">IsGroup</a>
        </td>
        <td class="markdown level1 summary"><p>Gets whether this item is a group.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_ListView_ListViewItem_IsSelected" data-uid="C1.WPF.ListView.ListViewItem.IsSelected">
          <a class="xref" href="C1.WPF.ListView.ListViewItem.IsSelected.html#C1_WPF_ListView_ListViewItem_IsSelected">IsSelected</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the IsSelected property</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_ListView_ListViewItem_Level" data-uid="C1.WPF.ListView.ListViewItem.Level">
          <a class="xref" href="C1.WPF.ListView.ListViewItem.Level.html#C1_WPF_ListView_ListViewItem_Level">Level</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the nesting level inside a group. This is zero if no grouping is used.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_ListView_ListViewItem_Parent" data-uid="C1.WPF.ListView.ListViewItem.Parent">
          <a class="xref" href="C1.WPF.ListView.ListViewItem.Parent.html#C1_WPF_ListView_ListViewItem_Parent">Parent</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the parent group item.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_ListView_ListViewItem_State" data-uid="C1.WPF.ListView.ListViewItem.State">
          <a class="xref" href="C1.WPF.ListView.ListViewItem.State.html#C1_WPF_ListView_ListViewItem_State">State</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the state of the item, which can be Preview or Full.</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_ListView_ListViewItem_GetField__1___0__System_String_" data-uid="C1.WPF.ListView.ListViewItem.GetField``1(``0@,System.String)">
          <a class="xref" href="C1.WPF.ListView.ListViewItem.GetField.html#C1_WPF_ListView_ListViewItem_GetField__1___0__System_String_">GetField&lt;T&gt;(ref T, string)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the field value from its property name.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_ListView_ListViewItem_OnPropertyChanged_System_ComponentModel_PropertyChangedEventArgs_" data-uid="C1.WPF.ListView.ListViewItem.OnPropertyChanged(System.ComponentModel.PropertyChangedEventArgs)">
          <a class="xref" href="C1.WPF.ListView.ListViewItem.OnPropertyChanged.html#C1_WPF_ListView_ListViewItem_OnPropertyChanged_System_ComponentModel_PropertyChangedEventArgs_">OnPropertyChanged(PropertyChangedEventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Raises the custom <a class="xref" href="C1.WPF.ListView.ListViewItem.PropertyChanged.html">PropertyChanged</a> event.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_ListView_ListViewItem_OnPropertyChanged_System_String_" data-uid="C1.WPF.ListView.ListViewItem.OnPropertyChanged(System.String)">
          <a class="xref" href="C1.WPF.ListView.ListViewItem.OnPropertyChanged.html#C1_WPF_ListView_ListViewItem_OnPropertyChanged_System_String_">OnPropertyChanged(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Raises the <a class="xref" href="C1.WPF.ListView.ListViewItem.PropertyChanged.html">PropertyChanged</a> event.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_ListView_ListViewItem_SetField__1___0____0_System_String_" data-uid="C1.WPF.ListView.ListViewItem.SetField``1(``0@,``0,System.String)">
          <a class="xref" href="C1.WPF.ListView.ListViewItem.SetField.html#C1_WPF_ListView_ListViewItem_SetField__1___0____0_System_String_">SetField&lt;T&gt;(ref T, T, string)</a>
        </td>
        <td class="markdown level1 summary"><p>Compares two values of property and raises an <a class="xref" href="C1.WPF.ListView.ListViewItem.PropertyChanged.html">PropertyChanged</a> event if they are different.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_ListView_ListViewItem_ToString" data-uid="C1.WPF.ListView.ListViewItem.ToString">
          <a class="xref" href="C1.WPF.ListView.ListViewItem.ToString.html#C1_WPF_ListView_ListViewItem_ToString">ToString()</a>
        </td>
        <td class="markdown level1 summary"></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_ListView_ListViewItem_PropertyChanged" data-uid="C1.WPF.ListView.ListViewItem.PropertyChanged">
          <a class="xref" href="C1.WPF.ListView.ListViewItem.PropertyChanged.html">PropertyChanged</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when a property value changes.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
