# GrapeCity.ActiveReports.Document.Section.TextInfoItem.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_ActiveReports_Document_Section_TextInfoItem__ctor_" data-uid="GrapeCity.ActiveReports.Document.Section.TextInfoItem.#ctor*">TextInfoItem Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_Document_Section_TextInfoItem__ctor_" data-uid="GrapeCity.ActiveReports.Document.Section.TextInfoItem.#ctor*"></a>
<h4 id="GrapeCity_ActiveReports_Document_Section_TextInfoItem__ctor_System_String_System_Object_System_Globalization_CultureInfo_System_Globalization_CultureInfo_" data-uid="GrapeCity.ActiveReports.Document.Section.TextInfoItem.#ctor(System.String,System.Object,System.Globalization.CultureInfo,System.Globalization.CultureInfo)">TextInfoItem(string, object, CultureInfo, CultureInfo)</h4>
<div class="markdown level1 summary"><p>Initialize the instance of the <a class="xref" href="GrapeCity.ActiveReports.Document.Section.TextInfoItem.html">TextInfoItem</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public TextInfoItem(string outputFormat, object value, CultureInfo culture, CultureInfo currencyCulture)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">outputFormat</span></td>
      <td><p>The output format.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></td>
      <td><span class="parametername">value</span></td>
      <td><p>The value.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.globalization.cultureinfo">CultureInfo</a></td>
      <td><span class="parametername">culture</span></td>
      <td><p>The culture.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.globalization.cultureinfo">CultureInfo</a></td>
      <td><span class="parametername">currencyCulture</span></td>
      <td><p>The culture of the currency.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_ActiveReports_Document_Section_TextInfoItem__ctor_System_String_System_Object_System_Globalization_CultureInfo_System_Globalization_CultureInfo__examples">Examples</h5>
<pre><code class="lang-csharp">public void AddTextInfoItem(string outputFormat, object value, CultureInfo culture, CultureInfo currencyCulture)
{
	CanvasItems.add(new TextInfoItem(outputFormat, value??0, culture, currencyCulture));
}</code></pre>

<h5 class="exceptions">Exceptions</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Condition</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.argumentnullexception">ArgumentNullException</a></td>
      <td><p>Thrown if &quot;value&quot; is null</p>
</td>
    </tr>
  </tbody>
</table>
</div>
