# C1.Report.TextField

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Report_TextField" data-uid="C1.Report.TextField" class="text-break">TextField Class
</h1>
  <div class="markdown level0 summary"><p>Represents a field containing a uniformly formatted databound or static text.</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="C1.Report.ReportObject.html">ReportObject</a></div>
    <div class="level2"><a class="xref" href="C1.Report.VisualReportObject.html">VisualReportObject</a></div>
    <div class="level3"><a class="xref" href="C1.Report.FieldBase.html">FieldBase</a></div>
    <div class="level4"><a class="xref" href="C1.Report.TextFieldBase.html">TextFieldBase</a></div>
    <div class="level5"><span class="xref">TextField</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="C1.Report.IScriptContextProvider.html">IScriptContextProvider</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.Report.html">C1.Report</a></h6>
  <h6><strong>Assembly</strong>: C1.Report.dll</h6>
  <h5 id="C1_Report_TextField_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class TextField : TextFieldBase, IScriptContextProvider, ICloneable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class TextField
    Inherits TextFieldBase
    Implements IScriptContextProvider, 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_Report_TextField__ctor" data-uid="C1.Report.TextField.#ctor">
          <a class="xref" href="C1.Report.TextField.-ctor.html#C1_Report_TextField__ctor">TextField()</a>
        </td>
        <td class="markdown level1 summary"><p>Initialize a new instance of the <a class="xref" href="C1.Report.TextField.html">TextField</a> class.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Report_TextField__ctor_System_String_" data-uid="C1.Report.TextField.#ctor(System.String)">
          <a class="xref" href="C1.Report.TextField.-ctor.html#C1_Report_TextField__ctor_System_String_">TextField(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Report.TextField.html">TextField</a> class.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Report_TextField__ctor_System_String_System_String_" data-uid="C1.Report.TextField.#ctor(System.String,System.String)">
          <a class="xref" href="C1.Report.TextField.-ctor.html#C1_Report_TextField__ctor_System_String_System_String_">TextField(string, string)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Report.TextField.html">TextField</a> class.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Report_TextField__ctor_System_String_System_String_System_Double_System_Double_System_Double_System_Double_" data-uid="C1.Report.TextField.#ctor(System.String,System.String,System.Double,System.Double,System.Double,System.Double)">
          <a class="xref" href="C1.Report.TextField.-ctor.html#C1_Report_TextField__ctor_System_String_System_String_System_Double_System_Double_System_Double_System_Double_">TextField(string, string, double, double, double, double)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Report.TextField.html">TextField</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="C1_Report_TextField_Format" data-uid="C1.Report.TextField.Format">
          <a class="xref" href="C1.Report.TextField.Format.html#C1_Report_TextField_Format">Format</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a string used to format the field value.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Report_TextField_Text" data-uid="C1.Report.TextField.Text">
          <a class="xref" href="C1.Report.TextField.Text.html#C1_Report_TextField_Text">Text</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a <a class="xref" href="C1.Report.ScriptObjectValue.html">ScriptObjectValue</a> yielding the text of the field.</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_TextField_AfterRender" data-uid="C1.Report.TextField.AfterRender">
          <a class="xref" href="C1.Report.TextField.AfterRender.html#C1_Report_TextField_AfterRender">AfterRender()</a>
        </td>
        <td class="markdown level1 summary"><p>Called where report rendering finish.
Can be used to finalize object after rendering.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Report_TextField_AssignFrom_C1_Report_ReportObject_System_Boolean_" data-uid="C1.Report.TextField.AssignFrom(C1.Report.ReportObject,System.Boolean)">
          <a class="xref" href="C1.Report.TextField.AssignFrom.html#C1_Report_TextField_AssignFrom_C1_Report_ReportObject_System_Boolean_">AssignFrom(ReportObject, bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Copies properties from another object into this object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Report_TextField_CreateSame" data-uid="C1.Report.TextField.CreateSame">
          <a class="xref" href="C1.Report.TextField.CreateSame.html#C1_Report_TextField_CreateSame">CreateSame()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates instance of the same type as current object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Report_TextField_GetContentAutoHeight_System_Double_" data-uid="C1.Report.TextField.GetContentAutoHeight(System.Double)">
          <a class="xref" href="C1.Report.TextField.GetContentAutoHeight.html#C1_Report_TextField_GetContentAutoHeight_System_Double_">GetContentAutoHeight(double)</a>
        </td>
        <td class="markdown level1 summary"><p>Override this method to calculate the height of object on basis of its content,
this method is called when field can grow or shrink vertically.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Report_TextField_GetContentAutoSize_System_Double__System_Double__" data-uid="C1.Report.TextField.GetContentAutoSize(System.Double@,System.Double@)">
          <a class="xref" href="C1.Report.TextField.GetContentAutoSize.html#C1_Report_TextField_GetContentAutoSize_System_Double__System_Double__">GetContentAutoSize(out double, out double)</a>
        </td>
        <td class="markdown level1 summary"><p>Override this method to calculate sizes of object on basis of its content,
this method is called when field can grow or shrink vertically and horizontally.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Report_TextField_GetContentAutoWidth_System_Double_" data-uid="C1.Report.TextField.GetContentAutoWidth(System.Double)">
          <a class="xref" href="C1.Report.TextField.GetContentAutoWidth.html#C1_Report_TextField_GetContentAutoWidth_System_Double_">GetContentAutoWidth(double)</a>
        </td>
        <td class="markdown level1 summary"><p>Override this method to calculate the width of object on basis of its content,
this method is called when field can grow or shrink horizontally.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Report_TextField_GetPropsTable" data-uid="C1.Report.TextField.GetPropsTable">
          <a class="xref" href="C1.Report.TextField.GetPropsTable.html#C1_Report_TextField_GetPropsTable">GetPropsTable()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Report_TextField_GetText" data-uid="C1.Report.TextField.GetText">
          <a class="xref" href="C1.Report.TextField.GetText.html#C1_Report_TextField_GetText">GetText()</a>
        </td>
        <td class="markdown level1 summary"><p>Gets all drawing text from this field.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Report_TextField_Import_C1_Document_Serialization_XmlNodeWrapperBase_" data-uid="C1.Report.TextField.Import(C1.Document.Serialization.XmlNodeWrapperBase)">
          <a class="xref" href="C1.Report.TextField.Import.html#C1_Report_TextField_Import_C1_Document_Serialization_XmlNodeWrapperBase_">Import(XmlNodeWrapperBase)</a>
        </td>
        <td class="markdown level1 summary"><p>Imports node from legacy xml report definition;</p>
</td>
      </tr>
      <tr>
        <td id="C1_Report_TextField_InternalBuildBrick_C1_Report_Rendering_SubSectionBrick_" data-uid="C1.Report.TextField.InternalBuildBrick(C1.Report.Rendering.SubSectionBrick)">
          <a class="xref" href="C1.Report.TextField.InternalBuildBrick.html#C1_Report_TextField_InternalBuildBrick_C1_Report_Rendering_SubSectionBrick_">InternalBuildBrick(SubSectionBrick)</a>
        </td>
        <td class="markdown level1 summary"><p>This method should be overriden in descendant classes like Field, BarCodeField, ChartField and so on.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Report_TextField_InternalRefreshBrick_C1_Report_Rendering_FieldBrickBase_" data-uid="C1.Report.TextField.InternalRefreshBrick(C1.Report.Rendering.FieldBrickBase)">
          <a class="xref" href="C1.Report.TextField.InternalRefreshBrick.html#C1_Report_TextField_InternalRefreshBrick_C1_Report_Rendering_FieldBrickBase_">InternalRefreshBrick(FieldBrickBase)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Report_TextField_PrecalculateValues" data-uid="C1.Report.TextField.PrecalculateValues">
          <a class="xref" href="C1.Report.TextField.PrecalculateValues.html#C1_Report_TextField_PrecalculateValues">PrecalculateValues()</a>
        </td>
        <td class="markdown level1 summary"><p>Called by rendering engine to precalculate field's value in the footer sections:
report footer, group footers.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Report_TextField_ResetState" data-uid="C1.Report.TextField.ResetState">
          <a class="xref" href="C1.Report.TextField.ResetState.html#C1_Report_TextField_ResetState">ResetState()</a>
        </td>
        <td class="markdown level1 summary"><p>Called when FlexReport starts calculation of the section containing this FieldBase.
Resets internal state of the field.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
