# C1.Win.C1Editor.C1Editor.BeginTransaction

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_C1Editor_C1Editor_BeginTransaction_" data-uid="C1.Win.C1Editor.C1Editor.BeginTransaction*">BeginTransaction Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_C1Editor_C1Editor_BeginTransaction_" data-uid="C1.Win.C1Editor.C1Editor.BeginTransaction*"></a>
<h4 id="C1_Win_C1Editor_C1Editor_BeginTransaction_System_String_" data-uid="C1.Win.C1Editor.C1Editor.BeginTransaction(System.String)">BeginTransaction(string)</h4>
<div class="markdown level1 summary"><p>Begins a transaction.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void BeginTransaction(string title)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub BeginTransaction(title As String)</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="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">title</span></td>
      <td><p>Title of the started transaction.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Win_C1Editor_C1Editor_BeginTransaction_System_String__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>If the <a class="xref" href="C1.Win.C1Editor.C1Editor.Document.html#C1_Win_C1Editor_C1Editor_Document">Document</a> is changed without using transactions, each time any of the
NodeInserted, NodeRemoved and NodeChanged events of the XmlDocument occurs, the control performs
synchronization between XML and MSHTML. Calling <a class="xref" href="C1.Win.C1Editor.C1Editor.BeginTransaction.html#C1_Win_C1Editor_C1Editor_BeginTransaction_System_String_">BeginTransaction(string)</a> tells the control
it must not synchronized any changes made in XmlDocument until <a class="xref" href="C1.Win.C1Editor.C1Editor.CommitTransaction.html#C1_Win_C1Editor_C1Editor_CommitTransaction">CommitTransaction()</a> is called.
The <a class="xref" href="C1.Win.C1Editor.C1TextRange.ApplyStyle.html#C1_Win_C1Editor_C1TextRange_ApplyStyle_System_String_System_String_">ApplyStyle(string, string)</a> and the <a class="xref" href="C1.Win.C1Editor.C1TextRange.RemoveStyle.html#C1_Win_C1Editor_C1TextRange_RemoveStyle_System_String_System_String_">RemoveStyle(string, string)</a> methods of the <a class="xref" href="C1.Win.C1Editor.C1TextRange.html">C1TextRange</a> automatically start a transaction, if
it has not been started yet.</p>
</div>
</div>
