# C1.Framework.Text.Lexicons.Lexicon

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Framework_Text_Lexicons_Lexicon" data-uid="C1.Framework.Text.Lexicons.Lexicon" class="text-break">Lexicon Class
</h1>
  <div class="markdown level0 summary"><p>Defines the Lexicon class.</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">Lexicon</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Framework.Text.Lexicons.html">C1.Framework.Text.Lexicons</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.C1Input.4.8.dll</h6>
  <h5 id="C1_Framework_Text_Lexicons_Lexicon_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class Lexicon</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class Lexicon</code></pre>
  </div>
  <h5 id="C1_Framework_Text_Lexicons_Lexicon_remarks"><strong>Remarks</strong></h5>
  <div class="markdown level0 remarks"><p>Provides a tool, that can parse the key word form the text.
Each key word take effecting by a IPattern interface, lexicon will try to find it by the order.
The find is described by <a class="xref" href="C1.Framework.Text.Lexicons.Lexicon.Match.html">Lexicon.Match</a>.
You also can set the two kinds of relation ship: Repellency and  Dependency.
Repellency, make a pattern not take effecting, when a pattern has been matched.
Dependency, make a pattern not take effecting, until a pattern has been matched.</p>
</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_Text_Lexicons_Lexicon__ctor" data-uid="C1.Framework.Text.Lexicons.Lexicon.#ctor">
          <a class="xref" href="C1.Framework.Text.Lexicons.Lexicon.-ctor.html#C1_Framework_Text_Lexicons_Lexicon__ctor">Lexicon()</a>
        </td>
        <td class="markdown level1 summary"><p>Constructor.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Text_Lexicons_Lexicon__ctor_System_Char_System_Object_" data-uid="C1.Framework.Text.Lexicons.Lexicon.#ctor(System.Char,System.Object)">
          <a class="xref" href="C1.Framework.Text.Lexicons.Lexicon.-ctor.html#C1_Framework_Text_Lexicons_Lexicon__ctor_System_Char_System_Object_">Lexicon(char, object)</a>
        </td>
        <td class="markdown level1 summary"><p>Constructor.</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_Text_Lexicons_Lexicon_AssertionID" data-uid="C1.Framework.Text.Lexicons.Lexicon.AssertionID">
          <a class="xref" href="C1.Framework.Text.Lexicons.Lexicon.AssertionID.html">AssertionID</a>
        </td>
        <td class="markdown level1 summary"><p>Indicates the assertion id.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Text_Lexicons_Lexicon_ESCAPE" data-uid="C1.Framework.Text.Lexicons.Lexicon.ESCAPE">
          <a class="xref" href="C1.Framework.Text.Lexicons.Lexicon.ESCAPE.html">ESCAPE</a>
        </td>
        <td class="markdown level1 summary"><p>Indicates the esacpe char.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Text_Lexicons_Lexicon_LiteralsID" data-uid="C1.Framework.Text.Lexicons.Lexicon.LiteralsID">
          <a class="xref" href="C1.Framework.Text.Lexicons.Lexicon.LiteralsID.html">LiteralsID</a>
        </td>
        <td class="markdown level1 summary"><p>Indicates the id of the literals.</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_Text_Lexicons_Lexicon_Count" data-uid="C1.Framework.Text.Lexicons.Lexicon.Count">
          <a class="xref" href="C1.Framework.Text.Lexicons.Lexicon.Count.html#C1_Framework_Text_Lexicons_Lexicon_Count">Count</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the item count.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Text_Lexicons_Lexicon_Dependency" data-uid="C1.Framework.Text.Lexicons.Lexicon.Dependency">
          <a class="xref" href="C1.Framework.Text.Lexicons.Lexicon.Dependency.html#C1_Framework_Text_Lexicons_Lexicon_Dependency">Dependency</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the dependency set.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Text_Lexicons_Lexicon_Item_System_Int32_" data-uid="C1.Framework.Text.Lexicons.Lexicon.Item(System.Int32)">
          <a class="xref" href="C1.Framework.Text.Lexicons.Lexicon.Item.html#C1_Framework_Text_Lexicons_Lexicon_Item_System_Int32_">this[int]</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the item by speical index.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Text_Lexicons_Lexicon_Repellency" data-uid="C1.Framework.Text.Lexicons.Lexicon.Repellency">
          <a class="xref" href="C1.Framework.Text.Lexicons.Lexicon.Repellency.html#C1_Framework_Text_Lexicons_Lexicon_Repellency">Repellency</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the repellency set.</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_Text_Lexicons_Lexicon_Add_C1_Framework_Text_Lexicons_LexiconItem_" data-uid="C1.Framework.Text.Lexicons.Lexicon.Add(C1.Framework.Text.Lexicons.LexiconItem)">
          <a class="xref" href="C1.Framework.Text.Lexicons.Lexicon.Add.html#C1_Framework_Text_Lexicons_Lexicon_Add_C1_Framework_Text_Lexicons_LexiconItem_">Add(LexiconItem)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds a item into the collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Text_Lexicons_Lexicon_BuildMatch_System_String_" data-uid="C1.Framework.Text.Lexicons.Lexicon.BuildMatch(System.String)">
          <a class="xref" href="C1.Framework.Text.Lexicons.Lexicon.BuildMatch.html#C1_Framework_Text_Lexicons_Lexicon_BuildMatch_System_String_">BuildMatch(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates the first match.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Text_Lexicons_Lexicon_BuildMatches_System_String_" data-uid="C1.Framework.Text.Lexicons.Lexicon.BuildMatches(System.String)">
          <a class="xref" href="C1.Framework.Text.Lexicons.Lexicon.BuildMatches.html#C1_Framework_Text_Lexicons_Lexicon_BuildMatches_System_String_">BuildMatches(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the matches collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_Text_Lexicons_Lexicon_Remove_C1_Framework_Text_Lexicons_LexiconItem_" data-uid="C1.Framework.Text.Lexicons.Lexicon.Remove(C1.Framework.Text.Lexicons.LexiconItem)">
          <a class="xref" href="C1.Framework.Text.Lexicons.Lexicon.Remove.html#C1_Framework_Text_Lexicons_Lexicon_Remove_C1_Framework_Text_Lexicons_LexiconItem_">Remove(LexiconItem)</a>
        </td>
        <td class="markdown level1 summary"><p>Remove a item form the collection.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
