# GrapeCity.Win.Spread.InputMan.CellType.SubItem.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Win_Spread_InputMan_CellType_SubItem__ctor_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.SubItem.#ctor*">SubItem Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Win_Spread_InputMan_CellType_SubItem__ctor_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.SubItem.#ctor*"></a>
<h4 id="GrapeCity_Win_Spread_InputMan_CellType_SubItem__ctor_System_Object_System_Object_System_Drawing_ContentAlignment_System_Boolean_System_Boolean_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.SubItem.#ctor(System.Object,System.Object,System.Drawing.ContentAlignment,System.Boolean,System.Boolean)">SubItem(object, object, ContentAlignment, bool, bool)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.SubItem.html">SubItem</a> class with values.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public SubItem(object value, object tag, ContentAlignment contentAlignment, bool wordWrap, bool ellipsis)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(value As Object, tag As Object, contentAlignment As ContentAlignment, wordWrap As Boolean, ellipsis 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.object">object</a></td>
      <td><span class="parametername">value</span></td>
      <td><p>An <b>object</b> indicates the value of the <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.SubItem.html">SubItem</a> object.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></td>
      <td><span class="parametername">tag</span></td>
      <td><p>An <b>object</b> indicates the tag value of the <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.SubItem.html">SubItem</a> object.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.contentalignment">ContentAlignment</a></td>
      <td><span class="parametername">contentAlignment</span></td>
      <td><p>A <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.SubItem.ContentAlignment.html#GrapeCity_Win_Spread_InputMan_CellType_SubItem_ContentAlignment">ContentAlignment</a> enumeration indicates the alignment of the content.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">wordWrap</span></td>
      <td><p>A <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">bool</a> value, <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">true</a> if allow wrap by word. Otherwise, <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">false</a>.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">ellipsis</span></td>
      <td><p>A <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">bool</a> value, <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">true</a> if auto show ellipsis when content can not display completely, otherwise <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">false</a>.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Win_Spread_InputMan_CellType_SubItem__ctor_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.SubItem.#ctor*"></a>
<h4 id="GrapeCity_Win_Spread_InputMan_CellType_SubItem__ctor_System_Object_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.SubItem.#ctor(System.Object)">SubItem(object)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.SubItem.html">SubItem</a> class with values.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public SubItem(object value)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(value As Object)</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.object">object</a></td>
      <td><span class="parametername">value</span></td>
      <td><p>An <b>object</b> indicates the value of the <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.SubItem.html">SubItem</a> object.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Win_Spread_InputMan_CellType_SubItem__ctor_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.SubItem.#ctor*"></a>
<h4 id="GrapeCity_Win_Spread_InputMan_CellType_SubItem__ctor" data-uid="GrapeCity.Win.Spread.InputMan.CellType.SubItem.#ctor">SubItem()</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.SubItem.html">SubItem</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 SubItem()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New()</code></pre>
</div>
</div>
