# C1.Win.Themes.BaseStyle.ResetProperty

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_Themes_BaseStyle_ResetProperty_" data-uid="C1.Win.Themes.BaseStyle.ResetProperty*">ResetProperty Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_Themes_BaseStyle_ResetProperty_" data-uid="C1.Win.Themes.BaseStyle.ResetProperty*"></a>
<h4 id="C1_Win_Themes_BaseStyle_ResetProperty_System_String_System_Object_" data-uid="C1.Win.Themes.BaseStyle.ResetProperty(System.String,System.Object)">ResetProperty(string, object)</h4>
<div class="markdown level1 summary"><p>Reset specified property to its default value.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected void ResetProperty(string name, object defaultValue)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Sub ResetProperty(name As String, defaultValue As Object)</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.string">string</a></td>
      <td><span class="parametername">name</span></td>
      <td><p>Specified property.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></td>
      <td><span class="parametername">defaultValue</span></td>
      <td><p>Resets to this value if can't reset automatically.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Win_Themes_BaseStyle_ResetProperty_" data-uid="C1.Win.Themes.BaseStyle.ResetProperty*"></a>
<h4 id="C1_Win_Themes_BaseStyle_ResetProperty_System_String_" data-uid="C1.Win.Themes.BaseStyle.ResetProperty(System.String)">ResetProperty(string)</h4>
<div class="markdown level1 summary"><p>Reset specified property to its default value.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected override void ResetProperty(string name)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Overrides Sub ResetProperty(name As String)</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.string">string</a></td>
      <td><span class="parametername">name</span></td>
      <td><p>Specified property.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="overrides">Overrides</h5>
<div><a class="xref" href="C1.Win.Themes.StyledPropertyCollection.ResetProperty.html#C1_Win_Themes_StyledPropertyCollection_ResetProperty_System_String_">StyledPropertyCollection.ResetProperty(string)</a></div>
<h5 class="exceptions">Exceptions</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Condition</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.keynotfoundexception">KeyNotFoundException</a></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
