# GrapeCity.ActiveReports.Design.Toolbox.BaseToolbox.EnableCategory

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_ActiveReports_Design_Toolbox_BaseToolbox_EnableCategory_" data-uid="GrapeCity.ActiveReports.Design.Toolbox.BaseToolbox.EnableCategory*">EnableCategory Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_Design_Toolbox_BaseToolbox_EnableCategory_" data-uid="GrapeCity.ActiveReports.Design.Toolbox.BaseToolbox.EnableCategory*"></a>
<h4 id="GrapeCity_ActiveReports_Design_Toolbox_BaseToolbox_EnableCategory_System_String_System_Boolean_" data-uid="GrapeCity.ActiveReports.Design.Toolbox.BaseToolbox.EnableCategory(System.String,System.Boolean)">EnableCategory(string, bool)</h4>
<div class="markdown level1 summary"><p>Enables or disables the specified category in the toolbox.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void EnableCategory(string category, bool enable)</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="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">category</span></td>
      <td><p>The name of the category to enable or disable.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">enable</span></td>
      <td><p>A boolean value indicating whether to enable (<code>true</code>) or disable (<code>false</code>) the category.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_ActiveReports_Design_Toolbox_BaseToolbox_EnableCategory_System_String_System_Boolean__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>This method sets the enabled state of the specified category and all its tools.
When a category is disabled, all tools within that category are also disabled.</p>
</div>
</div>
