# C1.WPF.Schedule.AutoDistributionGrid.FitCellsOfHeight

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_WPF_Schedule_AutoDistributionGrid_FitCellsOfHeight_" data-uid="C1.WPF.Schedule.AutoDistributionGrid.FitCellsOfHeight*">FitCellsOfHeight Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_WPF_Schedule_AutoDistributionGrid_FitCellsOfHeight_" data-uid="C1.WPF.Schedule.AutoDistributionGrid.FitCellsOfHeight*"></a>
<h4 id="C1_WPF_Schedule_AutoDistributionGrid_FitCellsOfHeight" data-uid="C1.WPF.Schedule.AutoDistributionGrid.FitCellsOfHeight">FitCellsOfHeight</h4>
<div class="markdown level1 summary"><p>Allows the forcing of the <a class="xref" href="C1.WPF.Schedule.AutoDistributionGrid.html">AutoDistributionGrid</a> to generate cells
of the specified height, where a number of rows will be automatically
adjusted so as to fully fit a maximum number of cells in a current grid
height. The default value is <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double.nan">NaN</a>.
This is a dependency property.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public double FitCellsOfHeight { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Property FitCellsOfHeight As Double</code></pre>
</div>
<h5 id="C1_WPF_Schedule_AutoDistributionGrid_FitCellsOfHeight_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>
Setting <a class="xref" href="C1.WPF.Schedule.AutoDistributionGrid.FitCellsOfHeight.html#C1_WPF_Schedule_AutoDistributionGrid_FitCellsOfHeight">FitCellsOfHeight</a> to non Double.NaN value directs
grid to automatically create as many columns of the height specified as the 
property value
that can fully fit in the grid's height (but at least one). When grid height 
is changed, the number of rows is adjusted automatically.
</p>
</div>
</div>
