# C1.Win.Ribbon.DrawItemEventArgs

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Win_Ribbon_DrawItemEventArgs" data-uid="C1.Win.Ribbon.DrawItemEventArgs" class="text-break">DrawItemEventArgs Class
</h1>
  <div class="markdown level0 summary"><p>Provides data for the DrawItem event.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.eventargs">EventArgs</a></div>
    <div class="level2"><span class="xref">DrawItemEventArgs</span></div>
  </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_DrawItemEventArgs_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class DrawItemEventArgs : EventArgs</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class DrawItemEventArgs
    Inherits EventArgs</code></pre>
  </div>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Win_Ribbon_DrawItemEventArgs_Bounds" data-uid="C1.Win.Ribbon.DrawItemEventArgs.Bounds">
          <a class="xref" href="C1.Win.Ribbon.DrawItemEventArgs.Bounds.html#C1_Win_Ribbon_DrawItemEventArgs_Bounds">Bounds</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the rectangle that represents the bounds of the item being drawn.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Ribbon_DrawItemEventArgs_Font" data-uid="C1.Win.Ribbon.DrawItemEventArgs.Font">
          <a class="xref" href="C1.Win.Ribbon.DrawItemEventArgs.Font.html#C1_Win_Ribbon_DrawItemEventArgs_Font">Font</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the font assigned to the item being drawn.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Ribbon_DrawItemEventArgs_ForeColor" data-uid="C1.Win.Ribbon.DrawItemEventArgs.ForeColor">
          <a class="xref" href="C1.Win.Ribbon.DrawItemEventArgs.ForeColor.html#C1_Win_Ribbon_DrawItemEventArgs_ForeColor">ForeColor</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the foreground color of the of the item being drawn.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Ribbon_DrawItemEventArgs_Graphics" data-uid="C1.Win.Ribbon.DrawItemEventArgs.Graphics">
          <a class="xref" href="C1.Win.Ribbon.DrawItemEventArgs.Graphics.html#C1_Win_Ribbon_DrawItemEventArgs_Graphics">Graphics</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the graphics surface to draw the item on.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Ribbon_DrawItemEventArgs_Item" data-uid="C1.Win.Ribbon.DrawItemEventArgs.Item">
          <a class="xref" href="C1.Win.Ribbon.DrawItemEventArgs.Item.html#C1_Win_Ribbon_DrawItemEventArgs_Item">Item</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the RibbonItem that is being OwnerDrawn</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Ribbon_DrawItemEventArgs_State" data-uid="C1.Win.Ribbon.DrawItemEventArgs.State">
          <a class="xref" href="C1.Win.Ribbon.DrawItemEventArgs.State.html#C1_Win_Ribbon_DrawItemEventArgs_State">State</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the state of the item being drawn.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Win_Ribbon_DrawItemEventArgs_DrawBackground" data-uid="C1.Win.Ribbon.DrawItemEventArgs.DrawBackground">
          <a class="xref" href="C1.Win.Ribbon.DrawItemEventArgs.DrawBackground.html#C1_Win_Ribbon_DrawItemEventArgs_DrawBackground">DrawBackground()</a>
        </td>
        <td class="markdown level1 summary"><p>Override this method to draw the custom background.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
