# GrapeCity.ActiveReports.Extensibility.Layout.LayoutContext.-ctor

## Content

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



<h1 id="GrapeCity_ActiveReports_Extensibility_Layout_LayoutContext__ctor_" data-uid="GrapeCity.ActiveReports.Extensibility.Layout.LayoutContext.#ctor*">LayoutContext Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_Extensibility_Layout_LayoutContext__ctor_" data-uid="GrapeCity.ActiveReports.Extensibility.Layout.LayoutContext.#ctor*"></a>
<h4 id="GrapeCity_ActiveReports_Extensibility_Layout_LayoutContext__ctor_GrapeCity_ActiveReports_Drawing_ITextMetricsProvider_GrapeCity_ActiveReports_Extensibility_Layout_IContentRange_GrapeCity_ActiveReports_Extensibility_Layout_LayoutDirection_System_Drawing_SizeF_System_Drawing_SizeF_" data-uid="GrapeCity.ActiveReports.Extensibility.Layout.LayoutContext.#ctor(GrapeCity.ActiveReports.Drawing.ITextMetricsProvider,GrapeCity.ActiveReports.Extensibility.Layout.IContentRange,GrapeCity.ActiveReports.Extensibility.Layout.LayoutDirection,System.Drawing.SizeF,System.Drawing.SizeF)">LayoutContext(ITextMetricsProvider, IContentRange, LayoutDirection, SizeF, SizeF)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.ActiveReports.Extensibility.Layout.LayoutContext.html">LayoutContext</a>  structure with the specified values.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public LayoutContext(ITextMetricsProvider metricsProvider, IContentRange contentRange, LayoutDirection direction, SizeF availableSize, SizeF reportItemSize = default)</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.Drawing.ITextMetricsProvider.html">ITextMetricsProvider</a></td>
      <td><span class="parametername">metricsProvider</span></td>
      <td><p>An object that provides text metrics for the report item.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.ActiveReports.Extensibility.Layout.IContentRange.html">IContentRange</a></td>
      <td><span class="parametername">contentRange</span></td>
      <td><p>A <a class="xref" href="GrapeCity.ActiveReports.Extensibility.Layout.ContentRange.html">ContentRange</a> object containing information about the range of the underlying content to include in the current layout operation.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.ActiveReports.Extensibility.Layout.LayoutDirection.html">LayoutDirection</a></td>
      <td><span class="parametername">direction</span></td>
      <td><p>An enumerated <a class="xref" href="GrapeCity.ActiveReports.Extensibility.Layout.LayoutDirection.html">LayoutDirection</a> value indicating the direction in which the layout for the report item runs.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.sizef">SizeF</a></td>
      <td><span class="parametername">availableSize</span></td>
      <td><p>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.sizef">SizeF</a> structure containing the width and height of the rectangle within which the report item is laid out.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.sizef">SizeF</a></td>
      <td><span class="parametername">reportItemSize</span></td>
      <td><p>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.sizef">SizeF</a> structure containing the width and height of the report item.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
