# C1.Win.Ribbon.RibbonButton.DrawItem

## Content

<div class="doc-site-dotnet-api-container">




<h1 id="C1_Win_Ribbon_RibbonButton_DrawItem" data-uid="C1.Win.Ribbon.RibbonButton.DrawItem" class="text-break">DrawItem Event
</h1>
<div class="markdown level0 summary"><p>Occurs when the button is owner-drawn.</p>
</div>
<div class="markdown level0 conceptual"></div>
<h6><strong>Namespace</strong>: <a class="xref" href="C1.Win.Ribbon.html">C1.Win.Ribbon</a></h6>
<h6><strong>Assembly</strong>: C1.Win.Ribbon.10.dll</h6>
<h5 id="C1_Win_Ribbon_RibbonButton_DrawItem_syntax">Syntax</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">[C1Category(&quot;Behavior&quot;)]
[C1Description(&quot;RibbonButton.DrawItem&quot;, &quot;Occurs when the button is owner-drawn.&quot;)]
public event EventHandler&lt;DrawItemEventArgs&gt; DrawItem</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">&lt;C1Category(&quot;Behavior&quot;)&gt;
&lt;C1Description(&quot;RibbonButton.DrawItem&quot;, &quot;Occurs when the button is owner-drawn.&quot;)&gt;
Public Event DrawItem As EventHandler(Of DrawItemEventArgs)</code></pre>
</div>
<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.eventhandler-1">EventHandler</a>&lt;<a class="xref" href="C1.Win.Ribbon.DrawItemEventArgs.html">DrawItemEventArgs</a>&gt;</td>
      <td>Occurs when the button is owner-drawn.</td>
    </tr>
  </tbody>
</table>
</div>
