# C1.Win.Ribbon.RibbonTextBox.LabelWidth

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_Ribbon_RibbonTextBox_LabelWidth_" data-uid="C1.Win.Ribbon.RibbonTextBox.LabelWidth*">LabelWidth Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_Ribbon_RibbonTextBox_LabelWidth_" data-uid="C1.Win.Ribbon.RibbonTextBox.LabelWidth*"></a>
<h4 id="C1_Win_Ribbon_RibbonTextBox_LabelWidth" data-uid="C1.Win.Ribbon.RibbonTextBox.LabelWidth">LabelWidth</h4>
<div class="markdown level1 summary"><p>Gets or sets the width of the text label. Set to -1 to let the label calculate width automatically.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">[C1Category(&quot;Appearance&quot;)]
[C1Description(&quot;RibbonTextBox.LabelWidth&quot;, &quot;The width of the text label. Set to -1 to let the label calculate width automatically.&quot;)]
public int LabelWidth { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">&lt;C1Category(&quot;Appearance&quot;)&gt;
&lt;C1Description(&quot;RibbonTextBox.LabelWidth&quot;, &quot;The width of the text label. Set to -1 to let the label calculate width automatically.&quot;)&gt;
Public Property LabelWidth As Integer</code></pre>
</div>
</div>
