# C1.WPF.Excel.XLColumn.Width

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_WPF_Excel_XLColumn_Width_" data-uid="C1.WPF.Excel.XLColumn.Width*">Width Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_WPF_Excel_XLColumn_Width_" data-uid="C1.WPF.Excel.XLColumn.Width*"></a>
<h4 id="C1_WPF_Excel_XLColumn_Width" data-uid="C1.WPF.Excel.XLColumn.Width">Width</h4>
<div class="markdown level1 summary"><p>Gets or sets the width of the column, in twips.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public int Width { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Property Width As Integer</code></pre>
</div>
<h5 id="C1_WPF_Excel_XLColumn_Width_remarks">Remarks</h5>
<div class="markdown level1 remarks"><pre><code>&lt;p&gt;A value of -1 indicates that the column should be displayed using
</code></pre>
<p>the sheet's <a class="xref" href="C1.WPF.Excel.XLSheet.DefaultColumnWidth.html#C1_WPF_Excel_XLSheet_DefaultColumnWidth">DefaultColumnWidth</a>.</p>
<p>To convert between pixels and twips, use the <a class="xref" href="C1.WPF.Excel.C1XLBook.TwipsToPixels.html#C1_WPF_Excel_C1XLBook_TwipsToPixels_System_Double_">TwipsToPixels(double)</a>
and <a class="xref" href="C1.WPF.Excel.C1XLBook.PixelsToTwips.html#C1_WPF_Excel_C1XLBook_PixelsToTwips_System_Double_">PixelsToTwips(double)</a> methods.</p>
</div>
</div>
