# C1.Win.C1Editor.BeforeModeChangeEventArgs

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Win_C1Editor_BeforeModeChangeEventArgs" data-uid="C1.Win.C1Editor.BeforeModeChangeEventArgs" class="text-break">BeforeModeChangeEventArgs Class
</h1>
  <div class="markdown level0 summary"><p>Provides data for the <a class="xref" href="C1.Win.C1Editor.C1Editor.BeforeModeChange.html">BeforeModeChange</a> event.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.eventargs">EventArgs</a></div>
    <div class="level2"><span class="xref">BeforeModeChangeEventArgs</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Win.C1Editor.html">C1.Win.C1Editor</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.C1Editor.4.8.dll</h6>
  <h5 id="C1_Win_C1Editor_BeforeModeChangeEventArgs_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class BeforeModeChangeEventArgs : EventArgs</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class BeforeModeChangeEventArgs
    Inherits EventArgs</code></pre>
  </div>
  <h5 id="C1_Win_C1Editor_BeforeModeChangeEventArgs_remarks"><strong>Remarks</strong></h5>
  <div class="markdown level0 remarks"><p>This type is used in the <a class="xref" href="C1.Win.C1Editor.C1Editor.BeforeModeChange.html">BeforeModeChange</a> event.</p>
</div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Win_C1Editor_BeforeModeChangeEventArgs__ctor_C1_Win_C1Editor_EditorMode_System_String_" data-uid="C1.Win.C1Editor.BeforeModeChangeEventArgs.#ctor(C1.Win.C1Editor.EditorMode,System.String)">
          <a class="xref" href="C1.Win.C1Editor.BeforeModeChangeEventArgs.-ctor.html#C1_Win_C1Editor_BeforeModeChangeEventArgs__ctor_C1_Win_C1Editor_EditorMode_System_String_">BeforeModeChangeEventArgs(EditorMode, string)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Win.C1Editor.BeforeModeChangeEventArgs.html">BeforeModeChangeEventArgs</a> class.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Win_C1Editor_BeforeModeChangeEventArgs_HtmlString" data-uid="C1.Win.C1Editor.BeforeModeChangeEventArgs.HtmlString">
          <a class="xref" href="C1.Win.C1Editor.BeforeModeChangeEventArgs.HtmlString.html#C1_Win_C1Editor_BeforeModeChangeEventArgs_HtmlString">HtmlString</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the HTML source for the document being edited.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_BeforeModeChangeEventArgs_NewMode" data-uid="C1.Win.C1Editor.BeforeModeChangeEventArgs.NewMode">
          <a class="xref" href="C1.Win.C1Editor.BeforeModeChangeEventArgs.NewMode.html#C1_Win_C1Editor_BeforeModeChangeEventArgs_NewMode">NewMode</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a new editing mode. Choose from Design, Source, or Preview modes.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
