# C1.C1Preview.Style.ClientAreaOnly

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_C1Preview_Style_ClientAreaOnly_" data-uid="C1.C1Preview.Style.ClientAreaOnly*">ClientAreaOnly Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_C1Preview_Style_ClientAreaOnly_" data-uid="C1.C1Preview.Style.ClientAreaOnly*"></a>
<h4 id="C1_C1Preview_Style_ClientAreaOnly" data-uid="C1.C1Preview.Style.ClientAreaOnly">ClientAreaOnly</h4>
<div class="markdown level1 summary"><p>Gets or sets a value indicating whether just the client area of a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.control">Control</a>,
or the whole control, is rendered by the <a class="xref" href="C1.C1Preview.RenderImage.html">RenderImage</a> object owning the current style.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool ClientAreaOnly { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Property ClientAreaOnly As Boolean</code></pre>
</div>
<h5 id="C1_C1Preview_Style_ClientAreaOnly_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>
A <a class="xref" href="C1.C1Preview.RenderImage.html">RenderImage</a> can render an image of a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.control">Control</a>
if it is assigned to the <b>RenderImage</b>'s <a class="xref" href="C1.C1Preview.RenderImage.Control.html#C1_C1Preview_RenderImage_Control">Control</a> property.
<b>ClientAreaOnly</b> can be used to indicate that only the client area of that control should be rendered.
</p>
<p>
This property is <b>non-ambient</b> (inherited from the <a class="xref" href="C1.C1Preview.Style.Parent.html#C1_C1Preview_Style_Parent">Parent</a> of the current style if not explicitly set).
</p>
<p>The default is <b>false</b>.</p>
</div>
</div>
