# FarPoint.Web.Spread.FloatingObject.Width

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Web_Spread_FloatingObject_Width_" data-uid="FarPoint.Web.Spread.FloatingObject.Width*">Width Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Web_Spread_FloatingObject_Width_" data-uid="FarPoint.Web.Spread.FloatingObject.Width*"></a>
<h4 id="FarPoint_Web_Spread_FloatingObject_Width" data-uid="FarPoint.Web.Spread.FloatingObject.Width">Width</h4>
<div class="markdown level1 summary"><p>Gets or sets the width of the object in pixels.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">[FpCategory(&quot;Layout&quot;)]
public override Unit Width { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">&lt;FpCategory(&quot;Layout&quot;)&gt;
Public Overrides Property Width As Unit</code></pre>
</div>
<h5 class="overrides">Overrides</h5>
<div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.web.ui.webcontrols.webcontrol.width">WebControl.Width</a></div>
<h5 class="exceptions">Exceptions</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Condition</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.argumentexception">ArgumentException</a></td>
      <td><p>if <a class="xref" href="FarPoint.Web.Spread.FloatingObject.Width.html#FarPoint_Web_Spread_FloatingObject_Width">Width</a> unit is not pixel.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.argumentoutofrangeexception">ArgumentOutOfRangeException</a></td>
      <td><p>if <a class="xref" href="FarPoint.Web.Spread.FloatingObject.Width.html#FarPoint_Web_Spread_FloatingObject_Width">Width</a> value is not larger than zero.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
