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

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Win_Spread_InputMan_CellType_LiteralBoxInfo__ctor_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.LiteralBoxInfo.#ctor*">LiteralBoxInfo Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Win_Spread_InputMan_CellType_LiteralBoxInfo__ctor_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.LiteralBoxInfo.#ctor*"></a>
<h4 id="GrapeCity_Win_Spread_InputMan_CellType_LiteralBoxInfo__ctor" data-uid="GrapeCity.Win.Spread.InputMan.CellType.LiteralBoxInfo.#ctor">LiteralBoxInfo()</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.InputBoxInfo.html">InputBoxInfo</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public LiteralBoxInfo()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New()</code></pre>
</div>


<a id="GrapeCity_Win_Spread_InputMan_CellType_LiteralBoxInfo__ctor_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.LiteralBoxInfo.#ctor*"></a>
<h4 id="GrapeCity_Win_Spread_InputMan_CellType_LiteralBoxInfo__ctor_System_String_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.LiteralBoxInfo.#ctor(System.String)">LiteralBoxInfo(string)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.InputBoxInfo.html">InputBoxInfo</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public LiteralBoxInfo(string text)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(text 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>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a> indicates the text of the literal box.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Win_Spread_InputMan_CellType_LiteralBoxInfo__ctor_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.LiteralBoxInfo.#ctor*"></a>
<h4 id="GrapeCity_Win_Spread_InputMan_CellType_LiteralBoxInfo__ctor_System_Boolean_System_Drawing_Size_System_Drawing_Color_System_Drawing_Color_GrapeCity_Win_Spread_InputMan_CellType_CharBoxStyle_System_Windows_Forms_Padding_System_Windows_Forms_Padding_GrapeCity_Win_Spread_InputMan_CellType_CharBoxBorderInfo_System_Drawing_Font_System_Drawing_ContentAlignment_System_String_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.LiteralBoxInfo.#ctor(System.Boolean,System.Drawing.Size,System.Drawing.Color,System.Drawing.Color,GrapeCity.Win.Spread.InputMan.CellType.CharBoxStyle,System.Windows.Forms.Padding,System.Windows.Forms.Padding,GrapeCity.Win.Spread.InputMan.CellType.CharBoxBorderInfo,System.Drawing.Font,System.Drawing.ContentAlignment,System.String)">LiteralBoxInfo(bool, Size, Color, Color, CharBoxStyle, Padding, Padding, CharBoxBorderInfo, Font, ContentAlignment, string)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.InputBoxInfo.html">InputBoxInfo</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public LiteralBoxInfo(bool autoSize, Size size, Color backColor, Color foreColor, CharBoxStyle style, Padding margin, Padding padding, CharBoxBorderInfo border, Font font, ContentAlignment contentAlignment, string text)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(autoSize As Boolean, size As Size, backColor As Color, foreColor As Color, style As CharBoxStyle, margin As Padding, padding As Padding, border As CharBoxBorderInfo, font As Font, contentAlignment As ContentAlignment, text 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.boolean">bool</a></td>
      <td><span class="parametername">autoSize</span></td>
      <td><p>A <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">bool</a> value indicating whether the height of the control automatically
adjusts when the font assigned to the control is changed.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.size">Size</a></td>
      <td><span class="parametername">size</span></td>
      <td><p>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.size">Size</a> indicates the size of the literal box.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a></td>
      <td><span class="parametername">backColor</span></td>
      <td><p>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a> indicates the background color.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a></td>
      <td><span class="parametername">foreColor</span></td>
      <td><p>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a> indicates the foreground color.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.CharBoxStyle.html">CharBoxStyle</a></td>
      <td><span class="parametername">style</span></td>
      <td><p>A <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.CharBoxStyle.html">CharBoxStyle</a> indicates the literal box style.</p>
</td>
    </tr>
    <tr>
      <td><span class="xref">Padding</span></td>
      <td><span class="parametername">margin</span></td>
      <td><p>A <span class="xref">System.Windows.Forms.Padding</span> indicates the margins.</p>
</td>
    </tr>
    <tr>
      <td><span class="xref">Padding</span></td>
      <td><span class="parametername">padding</span></td>
      <td><p>A <span class="xref">System.Windows.Forms.Padding</span> indicates the paddings.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.CharBoxBorderInfo.html">CharBoxBorderInfo</a></td>
      <td><span class="parametername">border</span></td>
      <td><p>A <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.CharBoxBorderInfo.html">CharBoxBorderInfo</a> indicates the border of the literal box.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.font">Font</a></td>
      <td><span class="parametername">font</span></td>
      <td><p>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.font">Font</a> indicates the text font of the literal box.</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="https://learn.microsoft.com/dotnet/api/system.drawing.contentalignment">ContentAlignment</a> value indicates the content alignment of the literal box.</p>
</td>
    </tr>
    <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>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a> value indicates the text of the literal box.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Win_Spread_InputMan_CellType_LiteralBoxInfo__ctor_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.LiteralBoxInfo.#ctor*"></a>
<h4 id="GrapeCity_Win_Spread_InputMan_CellType_LiteralBoxInfo__ctor_System_Runtime_Serialization_SerializationInfo_System_Runtime_Serialization_StreamingContext_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.LiteralBoxInfo.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">LiteralBoxInfo(SerializationInfo, StreamingContext)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of this class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected LiteralBoxInfo(SerializationInfo info, StreamingContext context)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Sub New(info As SerializationInfo, context As StreamingContext)</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.runtime.serialization.serializationinfo">SerializationInfo</a></td>
      <td><span class="parametername">info</span></td>
      <td><p>The information.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.runtime.serialization.streamingcontext">StreamingContext</a></td>
      <td><span class="parametername">context</span></td>
      <td><p>The context.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
