# GrapeCity.Wpf.SpreadSheet.CellType.Editors.PropertyCondition

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_PropertyCondition" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.PropertyCondition" class="text-break">PropertyCondition Class
</h1>
  <div class="markdown level0 summary"><p>Represents the <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.PropertyCondition.html">PropertyCondition</a> class which use to judge condition through property of button data.</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="GrapeCity.Wpf.SpreadSheet.CellType.Editors.SelectorCondition.html">SelectorCondition</a></div>
    <div class="level2"><span class="xref">PropertyCondition</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.html">GrapeCity.Wpf.SpreadSheet.CellType.Editors</a></h6>
  <h6><strong>Assembly</strong>: GrapeCity.Wpf.SpreadSheet.CellType.dll</h6>
  <h5 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_PropertyCondition_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class PropertyCondition : SelectorCondition</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class PropertyCondition
    Inherits SelectorCondition</code></pre>
  </div>
  <h5 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_PropertyCondition_remarks"><strong>Remarks</strong></h5>
  <div class="markdown level0 remarks"><p>In <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.WeekTitleStyleSelector.html">WeekTitleStyleSelector</a>, the <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.PropertyCondition.Property.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_PropertyCondition_Property">Property</a> should be one of the properties of <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.WeekTitleInfo.html">WeekTitleInfo</a>.
In <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.CalendarDayButtonStyleSelector.html">CalendarDayButtonStyleSelector</a>, the <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.PropertyCondition.Property.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_PropertyCondition_Property">Property</a> should be one of the properties of <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.DayInfo.html">DayInfo</a>.</p>
</div>
  <h5 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_PropertyCondition_examples"><strong>Examples</strong></h5>
  <p>The following xaml demonstrates how to change appearance of <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.WeekTitle.html">WeekTitle</a> and <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.CalendarDayButton.html">CalendarDayButton</a>
through <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.WeekTitleStyleSelector.html">WeekTitleStyleSelector</a> and <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.CalendarDayButtonStyleSelector.html">CalendarDayButtonStyleSelector</a> in xaml.</p>

  <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="GrapeCity_Wpf_SpreadSheet_CellType_Editors_PropertyCondition__ctor" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.PropertyCondition.#ctor">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.PropertyCondition.-ctor.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_PropertyCondition__ctor">PropertyCondition()</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="GrapeCity_Wpf_SpreadSheet_CellType_Editors_PropertyCondition_Property" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.PropertyCondition.Property">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.PropertyCondition.Property.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_PropertyCondition_Property">Property</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the property that returns the value that is compared with the <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.PropertyCondition.Value.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_PropertyCondition_Value">Value</a> property of the <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.PropertyCondition.html">PropertyCondition</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_PropertyCondition_Value" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.PropertyCondition.Value">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.PropertyCondition.Value.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_PropertyCondition_Value">Value</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the value to be compared with the property value of the <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.PropertyCondition.html">PropertyCondition</a> target.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
