# C1.Win.FlexGrid.OwnerDrawOutlineButtonEventArgs.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_FlexGrid_OwnerDrawOutlineButtonEventArgs__ctor_" data-uid="C1.Win.FlexGrid.OwnerDrawOutlineButtonEventArgs.#ctor*">OwnerDrawOutlineButtonEventArgs Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_FlexGrid_OwnerDrawOutlineButtonEventArgs__ctor_" data-uid="C1.Win.FlexGrid.OwnerDrawOutlineButtonEventArgs.#ctor*"></a>
<h4 id="C1_Win_FlexGrid_OwnerDrawOutlineButtonEventArgs__ctor_C1_Win_FlexGrid_C1FlexGridBase_System_Drawing_Graphics_System_Int32_System_Int32_System_Int32_C1_Win_FlexGrid_CellStyle_System_Drawing_Rectangle_System_String_System_Drawing_Image_" data-uid="C1.Win.FlexGrid.OwnerDrawOutlineButtonEventArgs.#ctor(C1.Win.FlexGrid.C1FlexGridBase,System.Drawing.Graphics,System.Int32,System.Int32,System.Int32,C1.Win.FlexGrid.CellStyle,System.Drawing.Rectangle,System.String,System.Drawing.Image)">OwnerDrawOutlineButtonEventArgs(C1FlexGridBase, Graphics, int, int, int, CellStyle, Rectangle, string, Image)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Win.FlexGrid.OwnerDrawOutlineButtonEventArgs.html">OwnerDrawOutlineButtonEventArgs</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public OwnerDrawOutlineButtonEventArgs(C1FlexGridBase view, Graphics graphics, int row, int col, int level, CellStyle style, Rectangle bounds, string text, Image img)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(view As C1FlexGridBase, graphics As Graphics, row As Integer, col As Integer, level As Integer, style As CellStyle, bounds As Rectangle, text As String, img As Image)</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><a class="xref" href="C1.Win.FlexGrid.C1FlexGridBase.html">C1FlexGridBase</a></td>
      <td><span class="parametername">view</span></td>
      <td><p>The <a class="xref" href="C1.Win.FlexGrid.C1FlexGridBase.html">C1FlexGridBase</a> control that contains the outline button being painted.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.graphics">Graphics</a></td>
      <td><span class="parametername">graphics</span></td>
      <td><p>The <a class="xref" href="C1.Win.FlexGrid.OwnerDrawOutlineButtonEventArgs.Graphics.html#C1_Win_FlexGrid_OwnerDrawOutlineButtonEventArgs_Graphics">Graphics</a> object where the outline button will be painted.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">row</span></td>
      <td><p>The row index of the cell which contains the outline button being painted.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">col</span></td>
      <td><p>The column index of the cell which contains the outline button being painted.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">level</span></td>
      <td><p>The level of the tree which will be collapsed by clicking on the outline button.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Win.FlexGrid.CellStyle.html">CellStyle</a></td>
      <td><span class="parametername">style</span></td>
      <td><p>The <a class="xref" href="C1.Win.FlexGrid.CellStyle.html">CellStyle</a> that will be used to paint the outline button.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectangle">Rectangle</a></td>
      <td><span class="parametername">bounds</span></td>
      <td><p>The bounds of the outline button being painted.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">text</span></td>
      <td><p>The text that will be displayed in the outline button.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.image">Image</a></td>
      <td><span class="parametername">img</span></td>
      <td><p>The image that will be displayed in the outline button.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
