# C1.WPF.DataFilter.Filter

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WPF_DataFilter_Filter" data-uid="C1.WPF.DataFilter.Filter" class="text-break">Filter Class
</h1>
  <div class="markdown level0 summary"><p>Base class represents filter of the C1DataFilter control.</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="C1.WPF.DataFilter.NotifyPropertyChanged.html">NotifyPropertyChanged</a></div>
    <div class="level2"><span class="xref">Filter</span></div>
      <div class="level3"><a class="xref" href="C1.WPF.DataFilter.CalendarFilterBase.html">CalendarFilterBase</a></div>
      <div class="level3"><a class="xref" href="C1.WPF.DataFilter.ConditionalFilter.html">ConditionalFilter</a></div>
      <div class="level3"><a class="xref" href="C1.WPF.DataFilter.CustomFilter.html">CustomFilter</a></div>
      <div class="level3"><a class="xref" href="C1.WPF.DataFilter.FilterWithSummary.html">FilterWithSummary</a></div>
      <div class="level3"><a class="xref" href="C1.WPF.DataFilter.FullTextFilter.html">FullTextFilter</a></div>
      <div class="level3"><a class="xref" href="C1.WPF.DataFilter.RangeFilterBase.html">RangeFilterBase</a></div>
      <div class="level3"><a class="xref" href="C1.WPF.DataFilter.RangeFilterBase-1.html">RangeFilterBase&lt;T&gt;</a></div>
      <div class="level3"><a class="xref" href="C1.WPF.DataFilter.ThreeStateFilter.html">ThreeStateFilter</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.DataFilter.html">C1.WPF.DataFilter</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.DataFilter.dll</h6>
  <h5 id="C1_WPF_DataFilter_Filter_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public abstract class Filter : NotifyPropertyChanged, INotifyPropertyChanged</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public MustInherit Class Filter
    Inherits NotifyPropertyChanged
    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_DataFilter_Filter__ctor_System_String_System_Boolean_" data-uid="C1.WPF.DataFilter.Filter.#ctor(System.String,System.Boolean)">
          <a class="xref" href="C1.WPF.DataFilter.Filter.-ctor.html#C1_WPF_DataFilter_Filter__ctor_System_String_System_Boolean_">Filter(string, bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.WPF.DataFilter.Filter.html">Filter</a> with the name of the data item property.</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_DataFilter_Filter_ActualHeaderText" data-uid="C1.WPF.DataFilter.Filter.ActualHeaderText">
          <a class="xref" href="C1.WPF.DataFilter.Filter.ActualHeaderText.html#C1_WPF_DataFilter_Filter_ActualHeaderText">ActualHeaderText</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the header that will be shown in the column header. if <a class="xref" href="C1.WPF.DataFilter.Filter.HeaderText.html#C1_WPF_DataFilter_Filter_HeaderText">HeaderText</a> is not specified the <a class="xref" href="C1.WPF.DataFilter.Filter.PropertyName.html#C1_WPF_DataFilter_Filter_PropertyName">PropertyName</a> property will be used.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_DataFilter_Filter_AttachedState" data-uid="C1.WPF.DataFilter.Filter.AttachedState">
          <a class="xref" href="C1.WPF.DataFilter.Filter.AttachedState.html#C1_WPF_DataFilter_Filter_AttachedState">AttachedState</a>
        </td>
        <td class="markdown level1 summary"><p>Filter attached state.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_DataFilter_Filter_Expression" data-uid="C1.WPF.DataFilter.Filter.Expression">
          <a class="xref" href="C1.WPF.DataFilter.Filter.Expression.html#C1_WPF_DataFilter_Filter_Expression">Expression</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the expression of the current <a class="xref" href="C1.WPF.DataFilter.Filter.html">Filter</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_DataFilter_Filter_HeaderText" data-uid="C1.WPF.DataFilter.Filter.HeaderText">
          <a class="xref" href="C1.WPF.DataFilter.Filter.HeaderText.html#C1_WPF_DataFilter_Filter_HeaderText">HeaderText</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value of header text of the current <a class="xref" href="C1.WPF.DataFilter.Filter.html">Filter</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_DataFilter_Filter_IsApplied" data-uid="C1.WPF.DataFilter.Filter.IsApplied">
          <a class="xref" href="C1.WPF.DataFilter.Filter.IsApplied.html#C1_WPF_DataFilter_Filter_IsApplied">IsApplied</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value indicating the current <a class="xref" href="C1.WPF.DataFilter.Filter.html">Filter</a> is applied or not.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_DataFilter_Filter_IsAutoGenerated" data-uid="C1.WPF.DataFilter.Filter.IsAutoGenerated">
          <a class="xref" href="C1.WPF.DataFilter.Filter.IsAutoGenerated.html#C1_WPF_DataFilter_Filter_IsAutoGenerated">IsAutoGenerated</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value indicating whether this filter was generated automatically.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_DataFilter_Filter_PropertyName" data-uid="C1.WPF.DataFilter.Filter.PropertyName">
          <a class="xref" href="C1.WPF.DataFilter.Filter.PropertyName.html#C1_WPF_DataFilter_Filter_PropertyName">PropertyName</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the name of the data item property to which the current <a class="xref" href="C1.WPF.DataFilter.Filter.html">Filter</a> applies.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_DataFilter_Filter_ToolTip" data-uid="C1.WPF.DataFilter.Filter.ToolTip">
          <a class="xref" href="C1.WPF.DataFilter.Filter.ToolTip.html#C1_WPF_DataFilter_Filter_ToolTip">ToolTip</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the text that appears as a ToolTip for header of this filter.</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_DataFilter_Filter_OnAttachedStateChanged_C1_WPF_DataFilter_AttachedFilterState_" data-uid="C1.WPF.DataFilter.Filter.OnAttachedStateChanged(C1.WPF.DataFilter.AttachedFilterState)">
          <a class="xref" href="C1.WPF.DataFilter.Filter.OnAttachedStateChanged.html#C1_WPF_DataFilter_Filter_OnAttachedStateChanged_C1_WPF_DataFilter_AttachedFilterState_">OnAttachedStateChanged(AttachedFilterState)</a>
        </td>
        <td class="markdown level1 summary"><p>Calls when the filter state was changed.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_DataFilter_Filter_Reset_System_Boolean_" data-uid="C1.WPF.DataFilter.Filter.Reset(System.Boolean)">
          <a class="xref" href="C1.WPF.DataFilter.Filter.Reset.html#C1_WPF_DataFilter_Filter_Reset_System_Boolean_">Reset(bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Resets the filter value to the default value.</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_DataFilter_Filter_AttachedStateChanged" data-uid="C1.WPF.DataFilter.Filter.AttachedStateChanged">
          <a class="xref" href="C1.WPF.DataFilter.Filter.AttachedStateChanged.html">AttachedStateChanged</a>
        </td>
        <td class="markdown level1 summary"><p>Notifies clients that a <a class="xref" href="C1.WPF.DataFilter.Filter.AttachedState.html#C1_WPF_DataFilter_Filter_AttachedState">AttachedState</a> value has changed.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
