Straighten Method (IPolyLine)

Straighten Method (IPolyLine) | Send Feedback
See Also

VertexIndexStart
  Index corresponding to the vertex at which to start straightening the 2D PolyLine (see Remarks)

VertexIndexEnd
  Index corresponding to the vertex at which to end straightening the 2D PolyLine

Straightens the 2D PolyLine between the two specified vertices.

# Syntax

Visual Basic |
--- | ---
    Sub Straighten( _
       ByVal VertexIndexStart As System.Integer, _
       ByVal VertexIndexEnd As System.Integer _
    )

C# |
--- | ---
    void Straighten(
       System.int VertexIndexStart,
       System.int VertexIndexEnd
    )

JavaScript |
--- | ---
    Straighten(
       VertexIndexStart : Number,
       VertexIndexEnd : Number
    )

COM native C++ |
--- | ---
    HRESULT Straighten(
       LONG VertexIndexStart,
       LONG VertexIndexEnd
    )

C++ |
--- | ---
    DSRESULT Straighten(
       long VertexIndexStart,
       long VertexIndexEnd
    )

#### Parameters

VertexIndexStart
  Index corresponding to the vertex at which to start straightening the 2D PolyLine (see Remarks)
VertexIndexEnd
  Index corresponding to the vertex at which to end straightening the 2D PolyLine

# Remarks

Before calling this method, call IPolyLine::GetVerticesCount to get valid values for VertexIndexStart and VertexIndexEnd.

# See Also

####

IPolyLine Interface
IPolyLine Members
IPolyLine::Split Method
IPolyLine::Fit Method
IPolyLine::Spline Method

# Availability

DraftSight V1R3.0