# C1.Report.DataFieldCollection

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Report_DataFieldCollection" data-uid="C1.Report.DataFieldCollection" class="text-break">DataFieldCollection Class
</h1>
  <div class="markdown level0 summary"><p>Collection of the fields in the <a class="xref" href="C1.Report.DataSource.html">DataSource</a>.</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.objectmodel.readonlycollection-1">ReadOnlyCollection</a>&lt;<a class="xref" href="C1.Report.DataField.html">DataField</a>&gt;</div>
    <div class="level2"><span class="xref">DataFieldCollection</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1">IList</a>&lt;<a class="xref" href="C1.Report.DataField.html">DataField</a>&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.icollection-1">ICollection</a>&lt;<a class="xref" href="C1.Report.DataField.html">DataField</a>&gt;</div>
    <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.generic.ireadonlylist-1">IReadOnlyList</a>&lt;<a class="xref" href="C1.Report.DataField.html">DataField</a>&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlycollection-1">IReadOnlyCollection</a>&lt;<a class="xref" href="C1.Report.DataField.html">DataField</a>&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a>&lt;<a class="xref" href="C1.Report.DataField.html">DataField</a>&gt;</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.Report.html">C1.Report</a></h6>
  <h6><strong>Assembly</strong>: C1.Report.dll</h6>
  <h5 id="C1_Report_DataFieldCollection_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class DataFieldCollection : ReadOnlyCollection&lt;DataField&gt;, IList&lt;DataField&gt;, ICollection&lt;DataField&gt;, IList, ICollection, IReadOnlyList&lt;DataField&gt;, IReadOnlyCollection&lt;DataField&gt;, IEnumerable&lt;DataField&gt;, IEnumerable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class DataFieldCollection
    Inherits ReadOnlyCollection(Of DataField)
    Implements IList(Of DataField), ICollection(Of DataField), IList, ICollection, IReadOnlyList(Of DataField), IReadOnlyCollection(Of DataField), IEnumerable(Of DataField), 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_Report_DataFieldCollection_Item_System_String_" data-uid="C1.Report.DataFieldCollection.Item(System.String)">
          <a class="xref" href="C1.Report.DataFieldCollection.Item.html#C1_Report_DataFieldCollection_Item_System_String_">this[string]</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a <a class="xref" href="C1.Report.DataField.html">DataField</a> with specified name, throws an exception if not found.</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_Report_DataFieldCollection_IndexByName_System_String_" data-uid="C1.Report.DataFieldCollection.IndexByName(System.String)">
          <a class="xref" href="C1.Report.DataFieldCollection.IndexByName.html#C1_Report_DataFieldCollection_IndexByName_System_String_">IndexByName(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns index of the <a class="xref" href="C1.Report.DataField.html">DataField</a> by its name.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
