# C1.Framework.C1Icon

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Framework_C1Icon" data-uid="C1.Framework.C1Icon" class="text-break">C1Icon Class
</h1>
  <div class="markdown level0 summary"><p>Represents a visual icon that can be tinted and resized.</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">C1Icon</span></div>
      <div class="level2"><a class="xref" href="C1.Framework.C1BitmapIcon.html">C1BitmapIcon</a></div>
      <div class="level2"><a class="xref" href="C1.Framework.C1CompositeIcon.html">C1CompositeIcon</a></div>
      <div class="level2"><a class="xref" href="C1.Framework.C1FontIcon.html">C1FontIcon</a></div>
      <div class="level2"><a class="xref" href="C1.Framework.C1VectorIcon.html">C1VectorIcon</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.icloneable">ICloneable</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Framework.html">C1.Framework</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.10.dll</h6>
  <h5 id="C1_Framework_C1Icon_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[TypeConverter(typeof(C1IconConverter))]
public abstract class C1Icon : INotifyPropertyChanged, ICloneable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;TypeConverter(GetType(C1IconConverter))&gt;
Public MustInherit Class C1Icon
    Implements INotifyPropertyChanged, ICloneable</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_Framework_C1Icon__ctor" data-uid="C1.Framework.C1Icon.#ctor">
          <a class="xref" href="C1.Framework.C1Icon.-ctor.html#C1_Framework_C1Icon__ctor">C1Icon()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Framework.C1Icon.html">C1Icon</a> class.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_C1Icon__ctor_System_String_" data-uid="C1.Framework.C1Icon.#ctor(System.String)">
          <a class="xref" href="C1.Framework.C1Icon.-ctor.html#C1_Framework_C1Icon__ctor_System_String_">C1Icon(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Framework.C1Icon.html">C1Icon</a> class.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_C1Icon__ctor_System_String_System_Drawing_Size_System_Drawing_Color_" data-uid="C1.Framework.C1Icon.#ctor(System.String,System.Drawing.Size,System.Drawing.Color)">
          <a class="xref" href="C1.Framework.C1Icon.-ctor.html#C1_Framework_C1Icon__ctor_System_String_System_Drawing_Size_System_Drawing_Color_">C1Icon(string, Size, Color)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Framework.C1Icon.html">C1Icon</a> class with specified key, size and color.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_C1Icon__ctor_System_String_System_Drawing_Size_System_Drawing_Color_System_Drawing_Color_" data-uid="C1.Framework.C1Icon.#ctor(System.String,System.Drawing.Size,System.Drawing.Color,System.Drawing.Color)">
          <a class="xref" href="C1.Framework.C1Icon.-ctor.html#C1_Framework_C1Icon__ctor_System_String_System_Drawing_Size_System_Drawing_Color_System_Drawing_Color_">C1Icon(string, Size, Color, Color)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Framework.C1Icon.html">C1Icon</a> class with specified key, size and color.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="fields">Fields
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Framework_C1Icon_DEFAULT_HEIGHT" data-uid="C1.Framework.C1Icon.DEFAULT_HEIGHT">
          <a class="xref" href="C1.Framework.C1Icon.DEFAULT_HEIGHT.html">DEFAULT_HEIGHT</a>
        </td>
        <td class="markdown level1 summary"><p>The default height of an icon.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_C1Icon_DEFAULT_WIDTH" data-uid="C1.Framework.C1Icon.DEFAULT_WIDTH">
          <a class="xref" href="C1.Framework.C1Icon.DEFAULT_WIDTH.html">DEFAULT_WIDTH</a>
        </td>
        <td class="markdown level1 summary"><p>The default width of an icon.</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_Framework_C1Icon_BackColor" data-uid="C1.Framework.C1Icon.BackColor">
          <a class="xref" href="C1.Framework.C1Icon.BackColor.html#C1_Framework_C1Icon_BackColor">BackColor</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the color used to paint the icon's background. The default value is Transparent.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_C1Icon_Color" data-uid="C1.Framework.C1Icon.Color">
          <a class="xref" href="C1.Framework.C1Icon.Color.html#C1_Framework_C1Icon_Color">Color</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the color used to paint the icon. The default value is Transparent.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_C1Icon_IsEmptyBackColor" data-uid="C1.Framework.C1Icon.IsEmptyBackColor">
          <a class="xref" href="C1.Framework.C1Icon.IsEmptyBackColor.html#C1_Framework_C1Icon_IsEmptyBackColor">IsEmptyBackColor</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a> value specifying whether icon background color is set.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_C1Icon_IsEmptyColor" data-uid="C1.Framework.C1Icon.IsEmptyColor">
          <a class="xref" href="C1.Framework.C1Icon.IsEmptyColor.html#C1_Framework_C1Icon_IsEmptyColor">IsEmptyColor</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a> value specifying whether icon color is set.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_C1Icon_IsFreeScale" data-uid="C1.Framework.C1Icon.IsFreeScale">
          <a class="xref" href="C1.Framework.C1Icon.IsFreeScale.html#C1_Framework_C1Icon_IsFreeScale">IsFreeScale</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value indicating whether this C1Icon can free scale or not.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_C1Icon_Key" data-uid="C1.Framework.C1Icon.Key">
          <a class="xref" href="C1.Framework.C1Icon.Key.html#C1_Framework_C1Icon_Key">Key</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the key used to retrieve the image.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_C1Icon_Padding" data-uid="C1.Framework.C1Icon.Padding">
          <a class="xref" href="C1.Framework.C1Icon.Padding.html#C1_Framework_C1Icon_Padding">Padding</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the padding of the icon.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_C1Icon_Size" data-uid="C1.Framework.C1Icon.Size">
          <a class="xref" href="C1.Framework.C1Icon.Size.html#C1_Framework_C1Icon_Size">Size</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the size of icon to show.</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_Framework_C1Icon_Clone" data-uid="C1.Framework.C1Icon.Clone">
          <a class="xref" href="C1.Framework.C1Icon.Clone.html#C1_Framework_C1Icon_Clone">Clone()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new object that is a copy of the current instance.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_C1Icon_OnPropertyChanged_System_String_" data-uid="C1.Framework.C1Icon.OnPropertyChanged(System.String)">
          <a class="xref" href="C1.Framework.C1Icon.OnPropertyChanged.html#C1_Framework_C1Icon_OnPropertyChanged_System_String_">OnPropertyChanged(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Fires the <a class="xref" href="C1.Framework.C1Icon.PropertyChanged.html">PropertyChanged</a> event.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_C1Icon_ReadXml_System_Xml_XmlNode_" data-uid="C1.Framework.C1Icon.ReadXml(System.Xml.XmlNode)">
          <a class="xref" href="C1.Framework.C1Icon.ReadXml.html#C1_Framework_C1Icon_ReadXml_System_Xml_XmlNode_">ReadXml(XmlNode)</a>
        </td>
        <td class="markdown level1 summary"><p>Reads this <a class="xref" href="C1.Framework.C1Icon.html">C1Icon</a> from an <span class="xref">System.Xml.XmlReader</span>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_C1Icon_WriteXml_System_Xml_XmlWriter_" data-uid="C1.Framework.C1Icon.WriteXml(System.Xml.XmlWriter)">
          <a class="xref" href="C1.Framework.C1Icon.WriteXml.html#C1_Framework_C1Icon_WriteXml_System_Xml_XmlWriter_">WriteXml(XmlWriter)</a>
        </td>
        <td class="markdown level1 summary"><p>Writes this <a class="xref" href="C1.Framework.C1Icon.html">C1Icon</a> into an <span class="xref">System.Xml.XmlWriter</span>.</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_Framework_C1Icon_PropertyChanged" data-uid="C1.Framework.C1Icon.PropertyChanged">
          <a class="xref" href="C1.Framework.C1Icon.PropertyChanged.html">PropertyChanged</a>
        </td>
        <td class="markdown level1 summary"><p>Fires when property value was changed.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
