# C1.Win.Document.Util.C1HtmlGraphics.CustomDraw

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_Document_Util_C1HtmlGraphics_CustomDraw_" data-uid="C1.Win.Document.Util.C1HtmlGraphics.CustomDraw*">CustomDraw Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_Document_Util_C1HtmlGraphics_CustomDraw_" data-uid="C1.Win.Document.Util.C1HtmlGraphics.CustomDraw*"></a>
<h4 id="C1_Win_Document_Util_C1HtmlGraphics_CustomDraw_C1_Document_RenderFragment_C1_Document_FragmentDrawParams__" data-uid="C1.Win.Document.Util.C1HtmlGraphics.CustomDraw(C1.Document.RenderFragment,C1.Document.FragmentDrawParams@)">CustomDraw(RenderFragment, ref FragmentDrawParams)</h4>
<div class="markdown level1 summary"><p>Allows <span class="xref">C1.Document.Util.C1Graphics</span> descendant to override drawing of some render fragments.
This method should return true if drawing implemented by the C1Graphics in the custom way.
Only background and content should be drawn, borders are drawn always.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public override bool CustomDraw(RenderFragment rf, ref FragmentDrawParams fdp)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overrides Function CustomDraw(rf As RenderFragment, ByRef fdp As FragmentDrawParams) As Boolean</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><span class="xref">RenderFragment</span></td>
      <td><span class="parametername">rf</span></td>
      <td></td>
    </tr>
    <tr>
      <td><span class="xref">FragmentDrawParams</span></td>
      <td><span class="parametername">fdp</span></td>
      <td><p>The <span class="xref">C1.Document.FragmentDrawParams</span> object.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td></td>
    </tr>
  </tbody>
</table>
<h5 class="overrides">Overrides</h5>
<div><span class="xref">C1.Document.Util.C1Graphics.CustomDraw(C1.Document.RenderFragment, ref C1.Document.FragmentDrawParams)</span></div>
</div>
