# C1.C1Preview.C1MultiDocument.Cancel

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_C1Preview_C1MultiDocument_Cancel_" data-uid="C1.C1Preview.C1MultiDocument.Cancel*">Cancel Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_C1Preview_C1MultiDocument_Cancel_" data-uid="C1.C1Preview.C1MultiDocument.Cancel*"></a>
<h4 id="C1_C1Preview_C1MultiDocument_Cancel" data-uid="C1.C1Preview.C1MultiDocument.Cancel">Cancel</h4>
<div class="markdown level1 summary"><p>Gets or sets a value indicating whether to cancel the generation of the current document.
Note that this property is useful only if <a class="xref" href="C1.C1Preview.C1MultiDocument.DoEvents.html#C1_C1Preview_C1MultiDocument_DoEvents">DoEvents</a>
is set to <b>true</b>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">[Browsable(false)]
public bool Cancel { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">&lt;Browsable(False)&gt;
Public Property Cancel As Boolean</code></pre>
</div>
<h5 id="C1_C1Preview_C1MultiDocument_Cancel_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>Setting this property to <b>true</b> can only be done while the current document is
being generated (i.e. the value of the <a class="xref" href="C1.C1Preview.C1MultiDocument.BusyState.html#C1_C1Preview_C1MultiDocument_BusyState">BusyState</a> property is
equal to <a class="xref" href="C1.C1Preview.BusyStateEnum.html#C1_C1Preview_BusyStateEnum_Generating">Generating</a>). An attempt to set this property
to <b>true</b> when the document is not being generated will cause an exception.</p>
</div>
</div>
