# GrapeCity.ActiveReports.Design.Designer.QueryActionEnabled

## Content

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



<h1 id="GrapeCity_ActiveReports_Design_Designer_QueryActionEnabled_" data-uid="GrapeCity.ActiveReports.Design.Designer.QueryActionEnabled*">QueryActionEnabled Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_Design_Designer_QueryActionEnabled_" data-uid="GrapeCity.ActiveReports.Design.Designer.QueryActionEnabled*"></a>
<h4 id="GrapeCity_ActiveReports_Design_Designer_QueryActionEnabled_GrapeCity_ActiveReports_Design_DesignerAction_" data-uid="GrapeCity.ActiveReports.Design.Designer.QueryActionEnabled(GrapeCity.ActiveReports.Design.DesignerAction)">QueryActionEnabled(DesignerAction)</h4>
<div class="markdown level1 summary"><p>Checks whether a specific designer action is currently enabled.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool QueryActionEnabled(DesignerAction action)</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="GrapeCity.ActiveReports.Design.DesignerAction.html">DesignerAction</a></td>
      <td><span class="parametername">action</span></td>
      <td><p>The <a class="xref" href="GrapeCity.ActiveReports.Design.DesignerAction.html">DesignerAction</a> to check. This parameter identifies the specific action whose enabled state is being queried.</p>
</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><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><pre><code>&lt;code&gt;true&lt;/code&gt; if the specified action is enabled and can be executed; otherwise, &lt;code&gt;false&lt;/code&gt;. The return value reflects the action's current 
</code></pre>
<p>availability within the designer environment.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_ActiveReports_Design_Designer_QueryActionEnabled_GrapeCity_ActiveReports_Design_DesignerAction__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>This method is utilized to determine the availability of actions within the designer, such as commands related to editing, formatting, or other design-time
operations. An action being enabled implies that it is available for use under the current state of the designer.</p>
</div>
<h5 id="GrapeCity_ActiveReports_Design_Designer_QueryActionEnabled_GrapeCity_ActiveReports_Design_DesignerAction__examples">Examples</h5>
<p>This example shows how to determine if the &quot;Convert to Master&quot; action is enabled for the current report loaded in the designer.</p>
<pre><code class="lang-csharp">// Assuming 'designer' is an instance of the Designer class.
var canConvert = designer.QueryActionEnabled(DesignerAction.ConvertToMaster);
// The 'canConvert' value will be 'false' for master reports and 'true' for RDLX reports.
// Use this information to enable/disable UI elements or to inform the user.</code></pre>

</div>
