# C1.Schedule.BaseObject.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Schedule_BaseObject__ctor_" data-uid="C1.Schedule.BaseObject.#ctor*">BaseObject Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Schedule_BaseObject__ctor_" data-uid="C1.Schedule.BaseObject.#ctor*"></a>
<h4 id="C1_Schedule_BaseObject__ctor" data-uid="C1.Schedule.BaseObject.#ctor">BaseObject()</h4>
<div class="markdown level1 summary"><p>Creates the new <a class="xref" href="C1.Schedule.BaseObject.html">BaseObject</a> object with default settings.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public BaseObject()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New()</code></pre>
</div>


<a id="C1_Schedule_BaseObject__ctor_" data-uid="C1.Schedule.BaseObject.#ctor*"></a>
<h4 id="C1_Schedule_BaseObject__ctor_System_String_" data-uid="C1.Schedule.BaseObject.#ctor(System.String)">BaseObject(string)</h4>
<div class="markdown level1 summary"><p>Creates the new <a class="xref" href="C1.Schedule.BaseObject.html">BaseObject</a> object with 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 BaseObject(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_BaseObject__ctor_" data-uid="C1.Schedule.BaseObject.#ctor*"></a>
<h4 id="C1_Schedule_BaseObject__ctor_System_String_System_String_" data-uid="C1.Schedule.BaseObject.#ctor(System.String,System.String)">BaseObject(string, string)</h4>
<div class="markdown level1 summary"><p>Creates the new <a class="xref" href="C1.Schedule.BaseObject.html">BaseObject</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 BaseObject(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 <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a> value.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Schedule_BaseObject__ctor_" data-uid="C1.Schedule.BaseObject.#ctor*"></a>
<h4 id="C1_Schedule_BaseObject__ctor_System_Drawing_Color_System_String_System_String_" data-uid="C1.Schedule.BaseObject.#ctor(System.Drawing.Color,System.String,System.String)">BaseObject(Color, string, string)</h4>
<div class="markdown level1 summary"><p>Creates the new <a class="xref" href="C1.Schedule.BaseObject.html">BaseObject</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 BaseObject(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 <a class="xref" href="C1.Schedule.BaseObject.Color.html#C1_Schedule_BaseObject_Color">Color</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">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 <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a> value.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Schedule_BaseObject__ctor_" data-uid="C1.Schedule.BaseObject.#ctor*"></a>
<h4 id="C1_Schedule_BaseObject__ctor_System_Drawing_Color_System_String_System_String_C1_Schedule_C1Brush_" data-uid="C1.Schedule.BaseObject.#ctor(System.Drawing.Color,System.String,System.String,C1.Schedule.C1Brush)">BaseObject(Color, string, string, C1Brush)</h4>
<div class="markdown level1 summary"><p>Creates the new <a class="xref" href="C1.Schedule.BaseObject.html">BaseObject</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 BaseObject(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 <a class="xref" href="C1.Schedule.BaseObject.Color.html#C1_Schedule_BaseObject_Color">Color</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">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 <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a> value.</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 <a class="xref" href="C1.Schedule.BaseObject.Brush.html#C1_Schedule_BaseObject_Brush">Brush</a> object.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Schedule_BaseObject__ctor_" data-uid="C1.Schedule.BaseObject.#ctor*"></a>
<h4 id="C1_Schedule_BaseObject__ctor_System_Runtime_Serialization_SerializationInfo_System_Runtime_Serialization_StreamingContext_" data-uid="C1.Schedule.BaseObject.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">BaseObject(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 BaseObject(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>
