# C1.Win.Input.Styles.ItemStyle-1

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Win_Input_Styles_ItemStyle_1" data-uid="C1.Win.Input.Styles.ItemStyle`1" class="text-break">ItemStyle&lt;T&gt; Class
</h1>
  <div class="markdown level0 summary"><p>The ItemStyle class represents the item element style.</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.Win.10/C1.Win.Themes.StyledPropertyCollection.html">StyledPropertyCollection</a></div>
    <div class="level2"><a class="xref" href="../C1.Win.10/C1.Win.Themes.BaseStyle.html">BaseStyle</a></div>
    <div class="level3"><a class="xref" href="../C1.Win.10/C1.Win.Themes.BaseC1FrameworkStyle.html">BaseC1FrameworkStyle</a></div>
    <div class="level4"><a class="xref" href="C1.Win.Input.Styles.ItemBaseStyle-1.html">ItemBaseStyle</a>&lt;T&gt;</div>
    <div class="level5"><span class="xref">ItemStyle&lt;T&gt;</span></div>
      <div class="level6"><a class="xref" href="C1.Win.Input.Styles.CheckBoxGlyphItemStyle.html">CheckBoxGlyphItemStyle</a></div>
      <div class="level6"><a class="xref" href="C1.Win.Input.Styles.ItemStyle.html">ItemStyle</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><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.idisposable">IDisposable</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Win.Input.Styles.html">C1.Win.Input.Styles</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.Input.10.dll</h6>
  <h5 id="C1_Win_Input_Styles_ItemStyle_1_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class ItemStyle&lt;T&gt; : ItemBaseStyle&lt;T&gt;, INotifyPropertyChanged, IDisposable where T : BaseC1FrameworkStyle, new()</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class ItemStyle(Of T As {BaseC1FrameworkStyle, New})
    Inherits ItemBaseStyle(Of T)
    Implements INotifyPropertyChanged, IDisposable</code></pre>
  </div>
  <h5 class="typeParameters">Type Parameters</h5>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="parametername">T</span></td>
        <td><p>State element type.</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_Win_Input_Styles_ItemStyle_1_Corners" data-uid="C1.Win.Input.Styles.ItemStyle`1.Corners">
          <a class="xref" href="C1.Win.Input.Styles.ItemStyle-1.Corners.html#C1_Win_Input_Styles_ItemStyle_1_Corners">Corners</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the radii of the element corners.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Styles_ItemStyle_1_Margins" data-uid="C1.Win.Input.Styles.ItemStyle`1.Margins">
          <a class="xref" href="C1.Win.Input.Styles.ItemStyle-1.Margins.html#C1_Win_Input_Styles_ItemStyle_1_Margins">Margins</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the thickness of the margins around the element.</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_Win_Input_Styles_ItemStyle_1_ResetCorners" data-uid="C1.Win.Input.Styles.ItemStyle`1.ResetCorners">
          <a class="xref" href="C1.Win.Input.Styles.ItemStyle-1.ResetCorners.html#C1_Win_Input_Styles_ItemStyle_1_ResetCorners">ResetCorners()</a>
        </td>
        <td class="markdown level1 summary"><p>Restores the default value of the <a class="xref" href="C1.Win.Input.Styles.ItemStyle-1.Corners.html#C1_Win_Input_Styles_ItemStyle_1_Corners">Corners</a> property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Styles_ItemStyle_1_ResetMargins" data-uid="C1.Win.Input.Styles.ItemStyle`1.ResetMargins">
          <a class="xref" href="C1.Win.Input.Styles.ItemStyle-1.ResetMargins.html#C1_Win_Input_Styles_ItemStyle_1_ResetMargins">ResetMargins()</a>
        </td>
        <td class="markdown level1 summary"><p>Restores the default value of the <a class="xref" href="C1.Win.Input.Styles.ItemStyle-1.Margins.html#C1_Win_Input_Styles_ItemStyle_1_Margins">Margins</a> property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Styles_ItemStyle_1_ShouldSerializeCorners" data-uid="C1.Win.Input.Styles.ItemStyle`1.ShouldSerializeCorners">
          <a class="xref" href="C1.Win.Input.Styles.ItemStyle-1.ShouldSerializeCorners.html#C1_Win_Input_Styles_ItemStyle_1_ShouldSerializeCorners">ShouldSerializeCorners()</a>
        </td>
        <td class="markdown level1 summary"><p>Specifies whether to save the value of the <a class="xref" href="C1.Win.Input.Styles.ItemStyle-1.Corners.html#C1_Win_Input_Styles_ItemStyle_1_Corners">Corners</a> property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Styles_ItemStyle_1_ShouldSerializeMargins" data-uid="C1.Win.Input.Styles.ItemStyle`1.ShouldSerializeMargins">
          <a class="xref" href="C1.Win.Input.Styles.ItemStyle-1.ShouldSerializeMargins.html#C1_Win_Input_Styles_ItemStyle_1_ShouldSerializeMargins">ShouldSerializeMargins()</a>
        </td>
        <td class="markdown level1 summary"><p>Specifies whether to save the value of the <a class="xref" href="C1.Win.Input.Styles.ItemStyle-1.Margins.html#C1_Win_Input_Styles_ItemStyle_1_Margins">Margins</a> property.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
