SetSegmentAngle Method (IPolyLine)

SetSegmentAngle Method (IPolyLine) | Send Feedback
See Also

Success[out]
  True if the angle of the vertex is set, false if not

SegmentIndex
  Index of the vertex whose angle to set (see Remarks)

Angle
  Angle

Sets the angle at the specified vertex of this 2D PolyLine segment.

# Syntax

Visual Basic |
--- | ---
    Function SetSegmentAngle( _
       ByVal SegmentIndex As System.Integer, _
       ByVal Angle As System.Double _
    ) As System.Boolean

C# |
--- | ---
    System.bool SetSegmentAngle(
       System.int SegmentIndex,
       System.double Angle
    )

JavaScript |
--- | ---
    SetSegmentAngle(
       SegmentIndex : Number,
       Angle : Number
    ) : Boolean

COM native C++ |
--- | ---
    HRESULT SetSegmentAngle(
       LONG SegmentIndex,
       DOUBLE Angle,
       VARIANT_BOOL* Success
    )

C++ |
--- | ---
    DSRESULT SetSegmentAngle(
       long SegmentIndex,
       double Angle,
       bool* Success
    )

#### Parameters

SegmentIndex
  Index of the vertex whose angle to set (see Remarks)
Angle
  Angle
Success[out] or Return Value
  True if the angle of the vertex is set, false if not

# Remarks

SegmentIndex starts at 0. To determine a valid value for SegmentIndex, call IPolyLine::GetVerticesCount to get the number of vertices in the 2D PolyLine.

For this type of 2D PolyLine... | Number of vertices equals...
Closed | IPolyLine::GetVerticesCount
Open | IPolyLine::GetVerticesCount - 1

# See Also

####

IPolyLine Interface
IPolyLine Members
IPolyLine::GetSegmentAngle Method
IPolyLine::GetSegmentEndWidth Method
IPolyLine::GetSegmentStartWidth Method
IPolyLine::GetSegmentType Method
IPolyLine::SetSegmentEndWidth Method
IPolyLine::SetSegmentStartWidth Method

# Availability

DraftSight V1R1.1