# GrapeCity.Win.Spread.InputMan.CellType.Fields.Field

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Win_Spread_InputMan_CellType_Fields_Field" data-uid="GrapeCity.Win.Spread.InputMan.CellType.Fields.Field" class="text-break">Field Class
</h1>
  <div class="markdown level0 summary"><p>Represnts a <b>Field</b> class to define a base field.</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">Field</span></div>
      <div class="level2"><a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.Fields.DateField.html">DateField</a></div>
      <div class="level2"><a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.Fields.MaskField.html">MaskField</a></div>
      <div class="level2"><a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.Fields.NumberField.html">NumberField</a></div>
      <div class="level2"><a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.Fields.TimeSpanField.html">TimeSpanField</a></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.INamedObject.html">INamedObject</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.Fields.html">GrapeCity.Win.Spread.InputMan.CellType.Fields</a></h6>
  <h6><strong>Assembly</strong>: GrapeCity.Win.PluginInputMan.dll</h6>
  <h5 id="GrapeCity_Win_Spread_InputMan_CellType_Fields_Field_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public abstract class Field : INamedObject</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public MustInherit Class Field
    Implements INamedObject</code></pre>
  </div>
  <h5 id="GrapeCity_Win_Spread_InputMan_CellType_Fields_Field_remarks"><strong>Remarks</strong></h5>
  <div class="markdown level0 remarks"><p>This class will implement view function for single segment. And some input behavior will exposed to user, too.
This is final interface for our user.
When a field is created, it will create a segment and value module for it. Then configuration will be done on the
segment and the value module.</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="GrapeCity_Win_Spread_InputMan_CellType_Fields_Field__ctor" data-uid="GrapeCity.Win.Spread.InputMan.CellType.Fields.Field.#ctor">
          <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.Fields.Field.-ctor.html#GrapeCity_Win_Spread_InputMan_CellType_Fields_Field__ctor">Field()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.Fields.Field.html">Field</a> class.</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="GrapeCity_Win_Spread_InputMan_CellType_Fields_Field_BackColor" data-uid="GrapeCity.Win.Spread.InputMan.CellType.Fields.Field.BackColor">
          <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.Fields.Field.BackColor.html#GrapeCity_Win_Spread_InputMan_CellType_Fields_Field_BackColor">BackColor</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the background color of the <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.Fields.Field.html">Field</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Win_Spread_InputMan_CellType_Fields_Field_Focused" data-uid="GrapeCity.Win.Spread.InputMan.CellType.Fields.Field.Focused">
          <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.Fields.Field.Focused.html#GrapeCity_Win_Spread_InputMan_CellType_Fields_Field_Focused">Focused</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value indicating whether the <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.Fields.Field.html">Field</a> has input focus.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Win_Spread_InputMan_CellType_Fields_Field_Font" data-uid="GrapeCity.Win.Spread.InputMan.CellType.Fields.Field.Font">
          <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.Fields.Field.Font.html#GrapeCity_Win_Spread_InputMan_CellType_Fields_Field_Font">Font</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the font of the <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.Fields.Field.html">Field</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Win_Spread_InputMan_CellType_Fields_Field_ForeColor" data-uid="GrapeCity.Win.Spread.InputMan.CellType.Fields.Field.ForeColor">
          <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.Fields.Field.ForeColor.html#GrapeCity_Win_Spread_InputMan_CellType_Fields_Field_ForeColor">ForeColor</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the foreground color of the <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.Fields.Field.html">Field</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Win_Spread_InputMan_CellType_Fields_Field_InputStatus" data-uid="GrapeCity.Win.Spread.InputMan.CellType.Fields.Field.InputStatus">
          <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.Fields.Field.InputStatus.html#GrapeCity_Win_Spread_InputMan_CellType_Fields_Field_InputStatus">InputStatus</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the current input status of the <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.Fields.Field.html">Field</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Win_Spread_InputMan_CellType_Fields_Field_Margin" data-uid="GrapeCity.Win.Spread.InputMan.CellType.Fields.Field.Margin">
          <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.Fields.Field.Margin.html#GrapeCity_Win_Spread_InputMan_CellType_Fields_Field_Margin">Margin</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the space around the <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.Fields.Field.html">Field</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Win_Spread_InputMan_CellType_Fields_Field_Name" data-uid="GrapeCity.Win.Spread.InputMan.CellType.Fields.Field.Name">
          <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.Fields.Field.Name.html#GrapeCity_Win_Spread_InputMan_CellType_Fields_Field_Name">Name</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the name of the object.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Win_Spread_InputMan_CellType_Fields_Field_Padding" data-uid="GrapeCity.Win.Spread.InputMan.CellType.Fields.Field.Padding">
          <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.Fields.Field.Padding.html#GrapeCity_Win_Spread_InputMan_CellType_Fields_Field_Padding">Padding</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets padding within the <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.Fields.Field.html">Field</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Win_Spread_InputMan_CellType_Fields_Field_SelectionLength" data-uid="GrapeCity.Win.Spread.InputMan.CellType.Fields.Field.SelectionLength">
          <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.Fields.Field.SelectionLength.html#GrapeCity_Win_Spread_InputMan_CellType_Fields_Field_SelectionLength">SelectionLength</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the length of the selection.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Win_Spread_InputMan_CellType_Fields_Field_SelectionStart" data-uid="GrapeCity.Win.Spread.InputMan.CellType.Fields.Field.SelectionStart">
          <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.Fields.Field.SelectionStart.html#GrapeCity_Win_Spread_InputMan_CellType_Fields_Field_SelectionStart">SelectionStart</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the selection start position.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Win_Spread_InputMan_CellType_Fields_Field_Size" data-uid="GrapeCity.Win.Spread.InputMan.CellType.Fields.Field.Size">
          <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.Fields.Field.Size.html#GrapeCity_Win_Spread_InputMan_CellType_Fields_Field_Size">Size</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the size of the <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.Fields.Field.html">Field</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Win_Spread_InputMan_CellType_Fields_Field_Text" data-uid="GrapeCity.Win.Spread.InputMan.CellType.Fields.Field.Text">
          <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.Fields.Field.Text.html#GrapeCity_Win_Spread_InputMan_CellType_Fields_Field_Text">Text</a>
        </td>
        <td class="markdown level1 summary"><p>Gets text of the <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.Fields.Field.html">Field</a>.</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="GrapeCity_Win_Spread_InputMan_CellType_Fields_Field_CharPositionToX_System_Int32_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.Fields.Field.CharPositionToX(System.Int32)">
          <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.Fields.Field.CharPositionToX.html#GrapeCity_Win_Spread_InputMan_CellType_Fields_Field_CharPositionToX_System_Int32_">CharPositionToX(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Converts the char position to x coordinate position.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Win_Spread_InputMan_CellType_Fields_Field_PointContainerToField_System_Drawing_Point_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.Fields.Field.PointContainerToField(System.Drawing.Point)">
          <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.Fields.Field.PointContainerToField.html#GrapeCity_Win_Spread_InputMan_CellType_Fields_Field_PointContainerToField_System_Drawing_Point_">PointContainerToField(Point)</a>
        </td>
        <td class="markdown level1 summary"><p>Computes the location of the specified container point into field coordinates.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Win_Spread_InputMan_CellType_Fields_Field_PointFieldToContainer_System_Drawing_Point_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.Fields.Field.PointFieldToContainer(System.Drawing.Point)">
          <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.Fields.Field.PointFieldToContainer.html#GrapeCity_Win_Spread_InputMan_CellType_Fields_Field_PointFieldToContainer_System_Drawing_Point_">PointFieldToContainer(Point)</a>
        </td>
        <td class="markdown level1 summary"><p>Computes the location of the specified field point into container coordinates.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Win_Spread_InputMan_CellType_Fields_Field_ResetFont" data-uid="GrapeCity.Win.Spread.InputMan.CellType.Fields.Field.ResetFont">
          <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.Fields.Field.ResetFont.html#GrapeCity_Win_Spread_InputMan_CellType_Fields_Field_ResetFont">ResetFont()</a>
        </td>
        <td class="markdown level1 summary"><p>Resets the <b>Font</b> property to default value.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Win_Spread_InputMan_CellType_Fields_Field_ResetForeColor" data-uid="GrapeCity.Win.Spread.InputMan.CellType.Fields.Field.ResetForeColor">
          <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.Fields.Field.ResetForeColor.html#GrapeCity_Win_Spread_InputMan_CellType_Fields_Field_ResetForeColor">ResetForeColor()</a>
        </td>
        <td class="markdown level1 summary"><p>Resets the <b>ForeColor</b> property to default value.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Win_Spread_InputMan_CellType_Fields_Field_XToCharPosition_System_Int32_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.Fields.Field.XToCharPosition(System.Int32)">
          <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.Fields.Field.XToCharPosition.html#GrapeCity_Win_Spread_InputMan_CellType_Fields_Field_XToCharPosition_System_Int32_">XToCharPosition(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Converts the x coordinate position to char position.</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="GrapeCity_Win_Spread_InputMan_CellType_Fields_Field_Enter" data-uid="GrapeCity.Win.Spread.InputMan.CellType.Fields.Field.Enter">
          <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.Fields.Field.Enter.html">Enter</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when the input focus enters the field.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Win_Spread_InputMan_CellType_Fields_Field_Leave" data-uid="GrapeCity.Win.Spread.InputMan.CellType.Fields.Field.Leave">
          <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.Fields.Field.Leave.html">Leave</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when the input focus leaves the field.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Win_Spread_InputMan_CellType_Fields_Field_Paint" data-uid="GrapeCity.Win.Spread.InputMan.CellType.Fields.Field.Paint">
          <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.Fields.Field.Paint.html">Paint</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when the field is redrawn.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
