# C1.Schedule.Status.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Schedule_Status__ctor_" data-uid="C1.Schedule.Status.#ctor*">Status Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Schedule_Status__ctor_" data-uid="C1.Schedule.Status.#ctor*"></a>
<h4 id="C1_Schedule_Status__ctor_System_Int32_" data-uid="C1.Schedule.Status.#ctor(System.Int32)">Status(int)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Schedule.Status.html">Status</a> class with the specified key.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Status(int key)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(key As Integer)</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.int32">int</a></td>
      <td><span class="parametername">key</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a> value which should be used as status key.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Schedule_Status__ctor_System_Int32__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>Use this constructor if your business logic requires setting custom key value.
Make sure that you use the correct constructor overload (with integer or Guid key value) and that key value is unique.</p>
</div>


<a id="C1_Schedule_Status__ctor_" data-uid="C1.Schedule.Status.#ctor*"></a>
<h4 id="C1_Schedule_Status__ctor_System_Guid_" data-uid="C1.Schedule.Status.#ctor(System.Guid)">Status(Guid)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Schedule.Status.html">Status</a> class with the specified key.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Status(Guid key)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(key As Guid)</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.guid">Guid</a></td>
      <td><span class="parametername">key</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.guid">Guid</a> value which should be used as status key.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Schedule_Status__ctor_System_Guid__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>Use this constructor if your business logic requires setting custom key value.
Make sure that you use the correct constructor overload (with integer or Guid key value) and that key value is unique.</p>
</div>


<a id="C1_Schedule_Status__ctor_" data-uid="C1.Schedule.Status.#ctor*"></a>
<h4 id="C1_Schedule_Status__ctor" data-uid="C1.Schedule.Status.#ctor">Status()</h4>
<div class="markdown level1 summary"><p>Creates the new custom <a class="xref" href="C1.Schedule.Status.html">Status</a> object with default parameters.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Status()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New()</code></pre>
</div>


<a id="C1_Schedule_Status__ctor_" data-uid="C1.Schedule.Status.#ctor*"></a>
<h4 id="C1_Schedule_Status__ctor_C1_Schedule_StatusTypeEnum_" data-uid="C1.Schedule.Status.#ctor(C1.Schedule.StatusTypeEnum)">Status(StatusTypeEnum)</h4>
<div class="markdown level1 summary"><p>Creates a new instance of the <a class="xref" href="C1.Schedule.Status.html">Status</a> class
and initializes it with the specified type.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Status(StatusTypeEnum type)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(type As StatusTypeEnum)</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.Schedule.StatusTypeEnum.html">StatusTypeEnum</a></td>
      <td><span class="parametername">type</span></td>
      <td><p>The <a class="xref" href="C1.Schedule.StatusTypeEnum.html">StatusTypeEnum</a> value.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Schedule_Status__ctor_" data-uid="C1.Schedule.Status.#ctor*"></a>
<h4 id="C1_Schedule_Status__ctor_C1_Schedule_StatusTypeEnum_System_Globalization_CultureInfo_" data-uid="C1.Schedule.Status.#ctor(C1.Schedule.StatusTypeEnum,System.Globalization.CultureInfo)">Status(StatusTypeEnum, CultureInfo)</h4>
<div class="markdown level1 summary"><p>Creates a new instance of the <a class="xref" href="C1.Schedule.Status.html">Status</a> class
and initializes it with the specified type.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Status(StatusTypeEnum type, CultureInfo culture)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(type As StatusTypeEnum, culture As CultureInfo)</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.Schedule.StatusTypeEnum.html">StatusTypeEnum</a></td>
      <td><span class="parametername">type</span></td>
      <td><p>The <a class="xref" href="C1.Schedule.StatusTypeEnum.html">StatusTypeEnum</a> value.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.globalization.cultureinfo">CultureInfo</a></td>
      <td><span class="parametername">culture</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.globalization.cultureinfo">CultureInfo</a> value.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Schedule_Status__ctor_" data-uid="C1.Schedule.Status.#ctor*"></a>
<h4 id="C1_Schedule_Status__ctor_System_String_" data-uid="C1.Schedule.Status.#ctor(System.String)">Status(string)</h4>
<div class="markdown level1 summary"><p>Creates a new instance of the custom <a class="xref" href="C1.Schedule.Status.html">Status</a> object with the specified text.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Status(string text)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(text 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">text</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a> value.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Schedule_Status__ctor_" data-uid="C1.Schedule.Status.#ctor*"></a>
<h4 id="C1_Schedule_Status__ctor_System_String_System_String_" data-uid="C1.Schedule.Status.#ctor(System.String,System.String)">Status(string, string)</h4>
<div class="markdown level1 summary"><p>Creates the new custom <a class="xref" href="C1.Schedule.Status.html">Status</a> object with specified text and menu caption.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Status(string text, string menuCaption)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(text As String, menuCaption 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">text</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a> value.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">menuCaption</span></td>
      <td><p>The menu caption for displaying status in dialogs.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Schedule_Status__ctor_" data-uid="C1.Schedule.Status.#ctor*"></a>
<h4 id="C1_Schedule_Status__ctor_System_Drawing_Color_System_String_System_String_" data-uid="C1.Schedule.Status.#ctor(System.Drawing.Color,System.String,System.String)">Status(Color, string, string)</h4>
<div class="markdown level1 summary"><p>Creates the new custom <a class="xref" href="C1.Schedule.Status.html">Status</a> object with specified color,
text and menu caption.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Status(Color color, string text, string menuCaption)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(color As Color, text As String, menuCaption 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.drawing.color">Color</a></td>
      <td><span class="parametername">color</span></td>
      <td><p>The color which will be used for displaying status.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">text</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a> value.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">menuCaption</span></td>
      <td><p>The menu caption for displaying status in dialogs.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Schedule_Status__ctor_" data-uid="C1.Schedule.Status.#ctor*"></a>
<h4 id="C1_Schedule_Status__ctor_System_Drawing_Color_System_String_System_String_C1_Schedule_C1Brush_" data-uid="C1.Schedule.Status.#ctor(System.Drawing.Color,System.String,System.String,C1.Schedule.C1Brush)">Status(Color, string, string, C1Brush)</h4>
<div class="markdown level1 summary"><p>Creates the new custom <a class="xref" href="C1.Schedule.Status.html">Status</a> object with specified parameters.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Status(Color color, string text, string menuCaption, C1Brush brush)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(color As Color, text As String, menuCaption As String, brush As C1Brush)</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.drawing.color">Color</a></td>
      <td><span class="parametername">color</span></td>
      <td><p>The color which will be used for displaying status.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">text</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a> value.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">menuCaption</span></td>
      <td><p>The menu caption for displaying status in dialogs.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Schedule.C1Brush.html">C1Brush</a></td>
      <td><span class="parametername">brush</span></td>
      <td><p>The brush which will be used for displaying status.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Schedule_Status__ctor_" data-uid="C1.Schedule.Status.#ctor*"></a>
<h4 id="C1_Schedule_Status__ctor_System_Runtime_Serialization_SerializationInfo_System_Runtime_Serialization_StreamingContext_" data-uid="C1.Schedule.Status.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">Status(SerializationInfo, StreamingContext)</h4>
<div class="markdown level1 summary"><p>Special constructor for deserialization.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected Status(SerializationInfo info, StreamingContext context)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Sub New(info As SerializationInfo, context As StreamingContext)</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.runtime.serialization.serializationinfo">SerializationInfo</a></td>
      <td><span class="parametername">info</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.runtime.serialization.serializationinfo">SerializationInfo</a>.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.runtime.serialization.streamingcontext">StreamingContext</a></td>
      <td><span class="parametername">context</span></td>
      <td><p>The context information.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
