# GrapeCity.ActiveReports.Rendering.Export.LayoutEngineExtensions.Layout

## Content

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



<h1 id="GrapeCity_ActiveReports_Rendering_Export_LayoutEngineExtensions_Layout_" data-uid="GrapeCity.ActiveReports.Rendering.Export.LayoutEngineExtensions.Layout*">Layout Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_Rendering_Export_LayoutEngineExtensions_Layout_" data-uid="GrapeCity.ActiveReports.Rendering.Export.LayoutEngineExtensions.Layout*"></a>
<h4 id="GrapeCity_ActiveReports_Rendering_Export_LayoutEngineExtensions_Layout_GrapeCity_ActiveReports_Extensibility_Layout_ILayoutEngine_GrapeCity_ActiveReports_Extensibility_Rendering_Components_IReport_GrapeCity_ActiveReports_Drawing_ITextMetricsProvider_GrapeCity_ActiveReports_PageReportModel_TargetDeviceKind_GrapeCity_ActiveReports_Rendering_Export_InteractivityType_System_Boolean_System_Boolean_" data-uid="GrapeCity.ActiveReports.Rendering.Export.LayoutEngineExtensions.Layout(GrapeCity.ActiveReports.Extensibility.Layout.ILayoutEngine,GrapeCity.ActiveReports.Extensibility.Rendering.Components.IReport,GrapeCity.ActiveReports.Drawing.ITextMetricsProvider,GrapeCity.ActiveReports.PageReportModel.TargetDeviceKind,GrapeCity.ActiveReports.Rendering.Export.InteractivityType,System.Boolean,System.Boolean)">Layout(ILayoutEngine, IReport, ITextMetricsProvider, TargetDeviceKind, InteractivityType, bool, bool)</h4>
<div class="markdown level1 summary"><p>Creates a report layout using the specified layout engine.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static IReportLayout Layout(this ILayoutEngine engine, IReport report, ITextMetricsProvider textMetricsProvider, TargetDeviceKind targetDevice, InteractivityType interactivity, bool paginated = true, bool pro = true)</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.Extensibility.Layout.ILayoutEngine.html">ILayoutEngine</a></td>
      <td><span class="parametername">engine</span></td>
      <td><p>The layout engine to use.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.ActiveReports.Extensibility.Rendering.Components.IReport.html">IReport</a></td>
      <td><span class="parametername">report</span></td>
      <td><p>The report to layout.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.ActiveReports.Drawing.ITextMetricsProvider.html">ITextMetricsProvider</a></td>
      <td><span class="parametername">textMetricsProvider</span></td>
      <td><p>The text metrics provider to use for layout calculations.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="../MESCIUS.ActiveReports.Core.Rdl/GrapeCity.ActiveReports.PageReportModel.TargetDeviceKind.html">TargetDeviceKind</a></td>
      <td><span class="parametername">targetDevice</span></td>
      <td><p>The target device kind for which the layout is being created.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.ActiveReports.Rendering.Export.InteractivityType.html">InteractivityType</a></td>
      <td><span class="parametername">interactivity</span></td>
      <td><p>The type of interactivity for the layout.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">paginated</span></td>
      <td><p>Indicates whether the layout should be paginated. Default is true.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">pro</span></td>
      <td><p>Indicates whether the layout should use professional features. Default is true.</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="GrapeCity.ActiveReports.Extensibility.Layout.IReportLayout.html">IReportLayout</a></td>
      <td><p>An <a class="xref" href="GrapeCity.ActiveReports.Extensibility.Layout.IReportLayout.html">IReportLayout</a> object representing the layout of the report.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
