# GrapeCity.Spreadsheet.DataValidationSuggestionItem.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Spreadsheet_DataValidationSuggestionItem__ctor_" data-uid="GrapeCity.Spreadsheet.DataValidationSuggestionItem.#ctor*">DataValidationSuggestionItem Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Spreadsheet_DataValidationSuggestionItem__ctor_" data-uid="GrapeCity.Spreadsheet.DataValidationSuggestionItem.#ctor*"></a>
<h4 id="GrapeCity_Spreadsheet_DataValidationSuggestionItem__ctor_System_String_System_String_" data-uid="GrapeCity.Spreadsheet.DataValidationSuggestionItem.#ctor(System.String,System.String)">DataValidationSuggestionItem(string, string)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Spreadsheet.DataValidationSuggestionItem.html">DataValidationSuggestionItem</a> struct.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public DataValidationSuggestionItem(string text, string value)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(text As String, value As String)</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">text</span></td>
      <td><p>The format text.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">value</span></td>
      <td><p>The value.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Spreadsheet_DataValidationSuggestionItem__ctor_" data-uid="GrapeCity.Spreadsheet.DataValidationSuggestionItem.#ctor*"></a>
<h4 id="GrapeCity_Spreadsheet_DataValidationSuggestionItem__ctor_System_String_System_Double_System_Int32_" data-uid="GrapeCity.Spreadsheet.DataValidationSuggestionItem.#ctor(System.String,System.Double,System.Int32)">DataValidationSuggestionItem(string, double, int)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Spreadsheet.DataValidationSuggestionItem.html">DataValidationSuggestionItem</a> struct.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public DataValidationSuggestionItem(string text, double value, int numberFormat)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(text As String, value As Double, numberFormat As Integer)</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">text</span></td>
      <td><p>The format text.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</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.int32">int</a></td>
      <td><span class="parametername">numberFormat</span></td>
      <td><p>The number format.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Spreadsheet_DataValidationSuggestionItem__ctor_" data-uid="GrapeCity.Spreadsheet.DataValidationSuggestionItem.#ctor*"></a>
<h4 id="GrapeCity_Spreadsheet_DataValidationSuggestionItem__ctor_System_String_System_Boolean_" data-uid="GrapeCity.Spreadsheet.DataValidationSuggestionItem.#ctor(System.String,System.Boolean)">DataValidationSuggestionItem(string, bool)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Spreadsheet.DataValidationSuggestionItem.html">DataValidationSuggestionItem</a> struct.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public DataValidationSuggestionItem(string text, bool value)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(text As String, value As Boolean)</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">text</span></td>
      <td><p>the format text.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">value</span></td>
      <td><p>The value.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Spreadsheet_DataValidationSuggestionItem__ctor_" data-uid="GrapeCity.Spreadsheet.DataValidationSuggestionItem.#ctor*"></a>
<h4 id="GrapeCity_Spreadsheet_DataValidationSuggestionItem__ctor_System_String_GrapeCity_CalcEngine_CalcError_" data-uid="GrapeCity.Spreadsheet.DataValidationSuggestionItem.#ctor(System.String,GrapeCity.CalcEngine.CalcError)">DataValidationSuggestionItem(string, CalcError)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Spreadsheet.DataValidationSuggestionItem.html">DataValidationSuggestionItem</a> struct.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public DataValidationSuggestionItem(string text, CalcError value)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(text As String, value As CalcError)</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">text</span></td>
      <td><p>The format text.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="../GrapeCity.CalcEngine/GrapeCity.CalcEngine.CalcError.html">CalcError</a></td>
      <td><span class="parametername">value</span></td>
      <td><p>The value.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
