GetSegmentStartWidth Method (IPolyLine) Send Feedback
See Also 
Success[out]
True if the start width is returned, false if not
SegmentIndex
Index of the vertex of the segment (see Remarks)
StartWidth[out]
Start width at the specified vertex
Gets the start width of the specified 2D PolyLine segment.

Syntax

Visual Basic 
Function GetSegmentStartWidth( _
   ByVal SegmentIndex As System.Integer, _
   ByRef StartWidth As System.Double _
) As System.Boolean
C# 
System.bool GetSegmentStartWidth( 
   System.int SegmentIndex,
   out System.double StartWidth
)
JavaScript 
GetSegmentStartWidth( 
   SegmentIndex : Number
) : {
   StartWidth : Number,
   Success : Boolean
}
COM native C++ 
HRESULT GetSegmentStartWidth( 
   LONG SegmentIndex,
   DOUBLE* StartWidth,
   VARIANT_BOOL* Success
) 
C++ 
DSRESULT GetSegmentStartWidth( 
   long SegmentIndex,
   double* StartWidth,
   bool* Success
) 

Parameters

SegmentIndex
Index of the vertex of the segment (see Remarks)
StartWidth[out]
Start width at the specified vertex
Success[out] or Return Value
True if the start width is returned, 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

Availability

DraftSight V1R1.1