# GrapeCity.Spreadsheet.Drawing.IShapeNodes.SetSegmentType

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Spreadsheet_Drawing_IShapeNodes_SetSegmentType_" data-uid="GrapeCity.Spreadsheet.Drawing.IShapeNodes.SetSegmentType*">SetSegmentType Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Spreadsheet_Drawing_IShapeNodes_SetSegmentType_" data-uid="GrapeCity.Spreadsheet.Drawing.IShapeNodes.SetSegmentType*"></a>
<h4 id="GrapeCity_Spreadsheet_Drawing_IShapeNodes_SetSegmentType_System_Int32_GrapeCity_Spreadsheet_Drawing_SegmentType_" data-uid="GrapeCity.Spreadsheet.Drawing.IShapeNodes.SetSegmentType(System.Int32,GrapeCity.Spreadsheet.Drawing.SegmentType)">SetSegmentType(int, SegmentType)</h4>
<div class="markdown level1 summary"><p>Sets the segment type of the segment that follows the node specified by <code class="paramref">index</code>.
If the node is a control point for a curved segment, this method sets the segment type for that curve.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">void SetSegmentType(int index, SegmentType segmentType)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Sub SetSegmentType(index As Integer, segmentType As SegmentType)</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">index</span></td>
      <td><p>The node whose segment type is to be set.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Spreadsheet.Drawing.SegmentType.html">SegmentType</a></td>
      <td><span class="parametername">segmentType</span></td>
      <td><p>Specifies if the segment is straight or curved.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_Spreadsheet_Drawing_IShapeNodes_SetSegmentType_System_Int32_GrapeCity_Spreadsheet_Drawing_SegmentType__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>Note that this may affect the total number of nodes by inserting or deleting adjacent nodes.</p>
</div>
</div>
