# C1.C1Preview.RenderLine.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_C1Preview_RenderLine__ctor_" data-uid="C1.C1Preview.RenderLine.#ctor*">RenderLine Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_C1Preview_RenderLine__ctor_" data-uid="C1.C1Preview.RenderLine.#ctor*"></a>
<h4 id="C1_C1Preview_RenderLine__ctor" data-uid="C1.C1Preview.RenderLine.#ctor">RenderLine()</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.C1Preview.RenderLine.html">RenderLine</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public RenderLine()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New()</code></pre>
</div>


<a id="C1_C1Preview_RenderLine__ctor_" data-uid="C1.C1Preview.RenderLine.#ctor*"></a>
<h4 id="C1_C1Preview_RenderLine__ctor_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_Unit_C1_C1Preview_LineDef_" data-uid="C1.C1Preview.RenderLine.#ctor(C1.C1Preview.Unit,C1.C1Preview.Unit,C1.C1Preview.Unit,C1.C1Preview.Unit,C1.C1Preview.LineDef)">RenderLine(Unit, Unit, Unit, Unit, LineDef)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.C1Preview.RenderLine.html">RenderLine</a> class,
assigning the coordinates of the two points that the line connects.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public RenderLine(Unit x1, Unit y1, Unit x2, Unit y2, LineDef shapeLine)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(x1 As Unit, y1 As Unit, x2 As Unit, y2 As Unit, shapeLine As LineDef)</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.C1Preview.Unit.html">Unit</a></td>
      <td><span class="parametername">x1</span></td>
      <td><p>The <b>X</b> coordinate of the first of the two points that the line connects.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.C1Preview.Unit.html">Unit</a></td>
      <td><span class="parametername">y1</span></td>
      <td><p>The <b>Y</b> coordinate of the first of the two points that the line connects.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.C1Preview.Unit.html">Unit</a></td>
      <td><span class="parametername">x2</span></td>
      <td><p>The <b>X</b> coordinate of the second of the two points that the line connects.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.C1Preview.Unit.html">Unit</a></td>
      <td><span class="parametername">y2</span></td>
      <td><p>The <b>Y</b> coordinate of the second of the two points that the line connects.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.C1Preview.LineDef.html">LineDef</a></td>
      <td><span class="parametername">shapeLine</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
