# C1.Util.DX.Animation.Storyboard2.RepeatBetweenKeyframes

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Util_DX_Animation_Storyboard2_RepeatBetweenKeyframes_" data-uid="C1.Util.DX.Animation.Storyboard2.RepeatBetweenKeyframes*">RepeatBetweenKeyframes Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Util_DX_Animation_Storyboard2_RepeatBetweenKeyframes_" data-uid="C1.Util.DX.Animation.Storyboard2.RepeatBetweenKeyframes*"></a>
<h4 id="C1_Util_DX_Animation_Storyboard2_RepeatBetweenKeyframes_C1_Util_DX_Animation_KeyFrame_C1_Util_DX_Animation_KeyFrame_System_Double_C1_Util_DX_Animation_RepeatMode_C1_Util_DX_Animation_Storyboard2_LoopIterationChangedDelegate_System_IntPtr_System_Boolean_" data-uid="C1.Util.DX.Animation.Storyboard2.RepeatBetweenKeyframes(C1.Util.DX.Animation.KeyFrame,C1.Util.DX.Animation.KeyFrame,System.Double,C1.Util.DX.Animation.RepeatMode,C1.Util.DX.Animation.Storyboard2.LoopIterationChangedDelegate,System.IntPtr,System.Boolean)">RepeatBetweenKeyframes(KeyFrame, KeyFrame, double, RepeatMode, LoopIterationChangedDelegate, nint, bool)</h4>
<div class="markdown level1 summary"><p>Creates a loop between two keyframes.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void RepeatBetweenKeyframes(KeyFrame startKeyframe, KeyFrame endKeyframe, double cRepetition, RepeatMode repeatMode, Storyboard2.LoopIterationChangedDelegate iterationChangedHandler, nint id, bool fRegisterForNextAnimationEvent)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub RepeatBetweenKeyframes(startKeyframe As KeyFrame, endKeyframe As KeyFrame, cRepetition As Double, repeatMode As RepeatMode, iterationChangedHandler As Storyboard2.LoopIterationChangedDelegate, id As IntPtr, fRegisterForNextAnimationEvent As Boolean)</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.Util.DX.Animation.KeyFrame.html">KeyFrame</a></td>
      <td><span class="parametername">startKeyframe</span></td>
      <td><p>The keyframe at which the loop is to begin.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Animation.KeyFrame.html">KeyFrame</a></td>
      <td><span class="parametername">endKeyframe</span></td>
      <td><p>The keyframe at which the loop is to end. endKeyframe must not occur earlier in the storyboard than startKeyframe.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td><span class="parametername">cRepetition</span></td>
      <td><p>The number of times the loop is to be repeated; the last iteration of a loop can terminate fractionally between keyframes.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Animation.RepeatMode.html">RepeatMode</a></td>
      <td><span class="parametername">repeatMode</span></td>
      <td><p>The pattern for the loop iteration.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Animation.Storyboard2.html">Storyboard2</a>.<a class="xref" href="C1.Util.DX.Animation.Storyboard2.LoopIterationChangedDelegate.html">LoopIterationChangedDelegate</a></td>
      <td><span class="parametername">iterationChangedHandler</span></td>
      <td><p>The handler for each loop iteration event.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.intptr">nint</a></td>
      <td><span class="parametername">id</span></td>
      <td><p>The loop ID to pass to iterationChangeHandler.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">fRegisterForNextAnimationEvent</span></td>
      <td><p>If true, specifies that iterationChangeHandler will be incorporated into the estimate of the time interval until the next animation event that is returned by the IUIAnimationManager2::EstimateNextEventTime method.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
