# C1.WPF.Schedule.CoverElementsPane.GetLaneSize

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_WPF_Schedule_CoverElementsPane_GetLaneSize_" data-uid="C1.WPF.Schedule.CoverElementsPane.GetLaneSize*">GetLaneSize Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_WPF_Schedule_CoverElementsPane_GetLaneSize_" data-uid="C1.WPF.Schedule.CoverElementsPane.GetLaneSize*"></a>
<h4 id="C1_WPF_Schedule_CoverElementsPane_GetLaneSize_C1_WPF_Schedule_SizingType_System_Object_System_Double_System_Int32_" data-uid="C1.WPF.Schedule.CoverElementsPane.GetLaneSize(C1.WPF.Schedule.SizingType,System.Object,System.Double,System.Int32)">GetLaneSize(SizingType, object, double, int)</h4>
<div class="markdown level1 summary"><p>Returns the size which should be used to draw cover element according to specified sizing type,
available space and total lane count.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected virtual double GetLaneSize(SizingType sizingType, object dataContext, double availableSpace, int totalLanes)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Overridable Function GetLaneSize(sizingType As SizingType, dataContext As Object, availableSpace As Double, totalLanes As Integer) As Double</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="C1.WPF.Schedule.SizingType.html">SizingType</a></td>
      <td><span class="parametername">sizingType</span></td>
      <td><p>The <a class="xref" href="C1.WPF.Schedule.CoverElementsPane.SizingType.html#C1_WPF_Schedule_CoverElementsPane_SizingType">SizingType</a> value.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></td>
      <td><span class="parametername">dataContext</span></td>
      <td><p>The cover element data context. It can be used to determine additional sizing conditions in overrides.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td><span class="parametername">availableSpace</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a> value specifying avaliable size.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">totalLanes</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a> value specifying the number of intersecting elements (1 for the single element without intersection).</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.double">double</a></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a> value specifying actual cover element size (height or width depending on the orientation.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
