# C1.Win.Gauge.DecoratorCollection

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Win_Gauge_DecoratorCollection" data-uid="C1.Win.Gauge.DecoratorCollection" class="text-break">DecoratorCollection Class
</h1>
  <div class="markdown level0 summary"><p>Represents a collection of <a class="xref" href="C1.Win.Gauge.C1GaugeDecorator.html">C1GaugeDecorator</a> objects.</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="https://learn.microsoft.com/dotnet/api/system.collections.collectionbase">CollectionBase</a></div>
    <div class="level2"><span class="xref">DecoratorCollection</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.ilist">IList</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.icollection">ICollection</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.ienumerable">IEnumerable</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Win.Gauge.html">C1.Win.Gauge</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.Gauge.10.dll</h6>
  <h5 id="C1_Win_Gauge_DecoratorCollection_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[ListBindable(false)]
public class DecoratorCollection : CollectionBase, IList, ICollection, IEnumerable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;ListBindable(False)&gt;
Public Class DecoratorCollection
    Inherits CollectionBase
    Implements IList, ICollection, IEnumerable</code></pre>
  </div>
  <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_Gauge_DecoratorCollection_Item_System_Int32_" data-uid="C1.Win.Gauge.DecoratorCollection.Item(System.Int32)">
          <a class="xref" href="C1.Win.Gauge.DecoratorCollection.Item.html#C1_Win_Gauge_DecoratorCollection_Item_System_Int32_">this[int]</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the <a class="xref" href="C1.Win.Gauge.C1GaugeDecorator.html">C1GaugeDecorator</a> at the specified position in the collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Gauge_DecoratorCollection_Item_System_String_" data-uid="C1.Win.Gauge.DecoratorCollection.Item(System.String)">
          <a class="xref" href="C1.Win.Gauge.DecoratorCollection.Item.html#C1_Win_Gauge_DecoratorCollection_Item_System_String_">this[string]</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the first <a class="xref" href="C1.Win.Gauge.C1GaugeDecorator.html">C1GaugeDecorator</a> with the specified name in the collection.</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_Gauge_DecoratorCollection_Add_C1_Win_Gauge_C1GaugeDecorator_" data-uid="C1.Win.Gauge.DecoratorCollection.Add(C1.Win.Gauge.C1GaugeDecorator)">
          <a class="xref" href="C1.Win.Gauge.DecoratorCollection.Add.html#C1_Win_Gauge_DecoratorCollection_Add_C1_Win_Gauge_C1GaugeDecorator_">Add(C1GaugeDecorator)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds the specified <a class="xref" href="C1.Win.Gauge.C1GaugeDecorator.html">C1GaugeDecorator</a> to the collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Gauge_DecoratorCollection_AddRange_C1_Win_Gauge_C1GaugeDecorator___" data-uid="C1.Win.Gauge.DecoratorCollection.AddRange(C1.Win.Gauge.C1GaugeDecorator[])">
          <a class="xref" href="C1.Win.Gauge.DecoratorCollection.AddRange.html#C1_Win_Gauge_DecoratorCollection_AddRange_C1_Win_Gauge_C1GaugeDecorator___">AddRange(C1GaugeDecorator[])</a>
        </td>
        <td class="markdown level1 summary"><p>Adds a group of <a class="xref" href="C1.Win.Gauge.C1GaugeDecorator.html">C1GaugeDecorator</a> objects to the end of the collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Gauge_DecoratorCollection_ClearAndDispose" data-uid="C1.Win.Gauge.DecoratorCollection.ClearAndDispose">
          <a class="xref" href="C1.Win.Gauge.DecoratorCollection.ClearAndDispose.html#C1_Win_Gauge_DecoratorCollection_ClearAndDispose">ClearAndDispose()</a>
        </td>
        <td class="markdown level1 summary"><p>Removes all decorators from the collection, then disposes the decorators.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Gauge_DecoratorCollection_Contains_C1_Win_Gauge_C1GaugeDecorator_" data-uid="C1.Win.Gauge.DecoratorCollection.Contains(C1.Win.Gauge.C1GaugeDecorator)">
          <a class="xref" href="C1.Win.Gauge.DecoratorCollection.Contains.html#C1_Win_Gauge_DecoratorCollection_Contains_C1_Win_Gauge_C1GaugeDecorator_">Contains(C1GaugeDecorator)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines whether this collection contains the specified <a class="xref" href="C1.Win.Gauge.C1GaugeDecorator.html">C1GaugeDecorator</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Gauge_DecoratorCollection_Contains_System_String_" data-uid="C1.Win.Gauge.DecoratorCollection.Contains(System.String)">
          <a class="xref" href="C1.Win.Gauge.DecoratorCollection.Contains.html#C1_Win_Gauge_DecoratorCollection_Contains_System_String_">Contains(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines whether this collection contains a <a class="xref" href="C1.Win.Gauge.C1GaugeDecorator.html">C1GaugeDecorator</a> with the specified name.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Gauge_DecoratorCollection_IndexOf_C1_Win_Gauge_C1GaugeDecorator_" data-uid="C1.Win.Gauge.DecoratorCollection.IndexOf(C1.Win.Gauge.C1GaugeDecorator)">
          <a class="xref" href="C1.Win.Gauge.DecoratorCollection.IndexOf.html#C1_Win_Gauge_DecoratorCollection_IndexOf_C1_Win_Gauge_C1GaugeDecorator_">IndexOf(C1GaugeDecorator)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines the index of a specific <a class="xref" href="C1.Win.Gauge.C1GaugeDecorator.html">C1GaugeDecorator</a> in the collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Gauge_DecoratorCollection_IndexOf_System_String_" data-uid="C1.Win.Gauge.DecoratorCollection.IndexOf(System.String)">
          <a class="xref" href="C1.Win.Gauge.DecoratorCollection.IndexOf.html#C1_Win_Gauge_DecoratorCollection_IndexOf_System_String_">IndexOf(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines index of the first <a class="xref" href="C1.Win.Gauge.C1GaugeDecorator.html">C1GaugeDecorator</a> with the specified name in the collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Gauge_DecoratorCollection_Insert_System_Int32_C1_Win_Gauge_C1GaugeDecorator_" data-uid="C1.Win.Gauge.DecoratorCollection.Insert(System.Int32,C1.Win.Gauge.C1GaugeDecorator)">
          <a class="xref" href="C1.Win.Gauge.DecoratorCollection.Insert.html#C1_Win_Gauge_DecoratorCollection_Insert_System_Int32_C1_Win_Gauge_C1GaugeDecorator_">Insert(int, C1GaugeDecorator)</a>
        </td>
        <td class="markdown level1 summary"><p>Inserts the specified <a class="xref" href="C1.Win.Gauge.C1GaugeDecorator.html">C1GaugeDecorator</a> into this collection at the given index.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Gauge_DecoratorCollection_Move_System_Int32_System_Int32_" data-uid="C1.Win.Gauge.DecoratorCollection.Move(System.Int32,System.Int32)">
          <a class="xref" href="C1.Win.Gauge.DecoratorCollection.Move.html#C1_Win_Gauge_DecoratorCollection_Move_System_Int32_System_Int32_">Move(int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Moves the item with given index (fromIndex) to the new position (toIndex).</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Gauge_DecoratorCollection_OnClear" data-uid="C1.Win.Gauge.DecoratorCollection.OnClear">
          <a class="xref" href="C1.Win.Gauge.DecoratorCollection.OnClear.html#C1_Win_Gauge_DecoratorCollection_OnClear">OnClear()</a>
        </td>
        <td class="markdown level1 summary"><p>Performs additional custom processes when clearing the contents of
the <a class="xref" href="C1.Win.Gauge.DecoratorCollection.html">DecoratorCollection</a> instance.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Gauge_DecoratorCollection_OnClearComplete" data-uid="C1.Win.Gauge.DecoratorCollection.OnClearComplete">
          <a class="xref" href="C1.Win.Gauge.DecoratorCollection.OnClearComplete.html#C1_Win_Gauge_DecoratorCollection_OnClearComplete">OnClearComplete()</a>
        </td>
        <td class="markdown level1 summary"><p>Performs additional custom processes after clearing the contents of
the <a class="xref" href="C1.Win.Gauge.DecoratorCollection.html">DecoratorCollection</a> instance.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Gauge_DecoratorCollection_OnInsertComplete_System_Int32_System_Object_" data-uid="C1.Win.Gauge.DecoratorCollection.OnInsertComplete(System.Int32,System.Object)">
          <a class="xref" href="C1.Win.Gauge.DecoratorCollection.OnInsertComplete.html#C1_Win_Gauge_DecoratorCollection_OnInsertComplete_System_Int32_System_Object_">OnInsertComplete(int, object)</a>
        </td>
        <td class="markdown level1 summary"><p>Performs additional custom processes after inserting a <a class="xref" href="C1.Win.Gauge.C1GaugeDecorator.html">C1GaugeDecorator</a>
into the <a class="xref" href="C1.Win.Gauge.DecoratorCollection.html">DecoratorCollection</a> instance.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Gauge_DecoratorCollection_OnRemoveComplete_System_Int32_System_Object_" data-uid="C1.Win.Gauge.DecoratorCollection.OnRemoveComplete(System.Int32,System.Object)">
          <a class="xref" href="C1.Win.Gauge.DecoratorCollection.OnRemoveComplete.html#C1_Win_Gauge_DecoratorCollection_OnRemoveComplete_System_Int32_System_Object_">OnRemoveComplete(int, object)</a>
        </td>
        <td class="markdown level1 summary"><p>Performs additional custom processes after removing a <a class="xref" href="C1.Win.Gauge.C1GaugeDecorator.html">C1GaugeDecorator</a>
from the <a class="xref" href="C1.Win.Gauge.DecoratorCollection.html">DecoratorCollection</a> instance.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Gauge_DecoratorCollection_OnSetComplete_System_Int32_System_Object_System_Object_" data-uid="C1.Win.Gauge.DecoratorCollection.OnSetComplete(System.Int32,System.Object,System.Object)">
          <a class="xref" href="C1.Win.Gauge.DecoratorCollection.OnSetComplete.html#C1_Win_Gauge_DecoratorCollection_OnSetComplete_System_Int32_System_Object_System_Object_">OnSetComplete(int, object, object)</a>
        </td>
        <td class="markdown level1 summary"><p>Performs additional custom processes after setting a <a class="xref" href="C1.Win.Gauge.C1GaugeDecorator.html">C1GaugeDecorator</a>
in the <a class="xref" href="C1.Win.Gauge.DecoratorCollection.html">DecoratorCollection</a> instance.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Gauge_DecoratorCollection_OnValidate_System_Object_" data-uid="C1.Win.Gauge.DecoratorCollection.OnValidate(System.Object)">
          <a class="xref" href="C1.Win.Gauge.DecoratorCollection.OnValidate.html#C1_Win_Gauge_DecoratorCollection_OnValidate_System_Object_">OnValidate(object)</a>
        </td>
        <td class="markdown level1 summary"><p>Checks whather the type of the value argument is allowable for this collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Gauge_DecoratorCollection_Remove_C1_Win_Gauge_C1GaugeDecorator_" data-uid="C1.Win.Gauge.DecoratorCollection.Remove(C1.Win.Gauge.C1GaugeDecorator)">
          <a class="xref" href="C1.Win.Gauge.DecoratorCollection.Remove.html#C1_Win_Gauge_DecoratorCollection_Remove_C1_Win_Gauge_C1GaugeDecorator_">Remove(C1GaugeDecorator)</a>
        </td>
        <td class="markdown level1 summary"><p>Removes the specified <a class="xref" href="C1.Win.Gauge.C1GaugeDecorator.html">C1GaugeDecorator</a> from the collection.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
