# C1.WinUI.DxToolkit.Conv.ToCanvasBrush

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_WinUI_DxToolkit_Conv_ToCanvasBrush_" data-uid="C1.WinUI.DxToolkit.Conv.ToCanvasBrush*">ToCanvasBrush Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_WinUI_DxToolkit_Conv_ToCanvasBrush_" data-uid="C1.WinUI.DxToolkit.Conv.ToCanvasBrush*"></a>
<h4 id="C1_WinUI_DxToolkit_Conv_ToCanvasBrush_C1_Document_C1Brush_Microsoft_Graphics_Canvas_ICanvasResourceCreator_" data-uid="C1.WinUI.DxToolkit.Conv.ToCanvasBrush(C1.Document.C1Brush,Microsoft.Graphics.Canvas.ICanvasResourceCreator)">ToCanvasBrush(C1Brush, ICanvasResourceCreator)</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static ICanvasBrush ToCanvasBrush(this C1Brush brush, ICanvasResourceCreator owner)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function ToCanvasBrush(brush As C1Brush, owner As ICanvasResourceCreator) As ICanvasBrush</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">C1Brush</span></td>
      <td><span class="parametername">brush</span></td>
      <td></td>
    </tr>
    <tr>
      <td><span class="xref">ICanvasResourceCreator</span></td>
      <td><span class="parametername">owner</span></td>
      <td></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><span class="xref">ICanvasBrush</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
