# C1.Win.Ribbon.RibbonTextBox.MaxLength

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_Ribbon_RibbonTextBox_MaxLength_" data-uid="C1.Win.Ribbon.RibbonTextBox.MaxLength*">MaxLength Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_Ribbon_RibbonTextBox_MaxLength_" data-uid="C1.Win.Ribbon.RibbonTextBox.MaxLength*"></a>
<h4 id="C1_Win_Ribbon_RibbonTextBox_MaxLength" data-uid="C1.Win.Ribbon.RibbonTextBox.MaxLength">MaxLength</h4>
<div class="markdown level1 summary"><p>Gets or sets the maximum length of the string in the Text property in this <a class="xref" href="C1.Win.Ribbon.RibbonTextBox.html">RibbonTextBox</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">[C1Category(&quot;Behavior&quot;)]
[C1Description(&quot;RibbonTextBox.MaxLength&quot;, &quot;Gets or sets the maximum length of the string in the Text property in this RibbonTextBox.&quot;)]
public int MaxLength { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">&lt;C1Category(&quot;Behavior&quot;)&gt;
&lt;C1Description(&quot;RibbonTextBox.MaxLength&quot;, &quot;Gets or sets the maximum length of the string in the Text property in this RibbonTextBox.&quot;)&gt;
Public Property MaxLength As Integer</code></pre>
</div>
</div>
