| Visual Basic | |
|---|---|
Function SetSegmentStartWidth( _ ByVal SegmentIndex As System.Integer, _ ByVal StartWidth As System.Double _ ) As System.Boolean | |
| C# | |
|---|---|
System.bool SetSegmentStartWidth( System.int SegmentIndex, System.double StartWidth ) | |
| JavaScript | |
|---|---|
SetSegmentStartWidth( SegmentIndex : Number, StartWidth : Number ) : Boolean | |
| COM native C++ | |
|---|---|
HRESULT SetSegmentStartWidth( LONG SegmentIndex, DOUBLE StartWidth, VARIANT_BOOL* Success ) | |
| C++ | |
|---|---|
DSRESULT SetSegmentStartWidth( long SegmentIndex, double StartWidth, bool* Success ) | |
Parameters
- SegmentIndex
- Index of the vertex of the segment (see Remarks)
- StartWidth
- Start width at the specified vertex
- Success[out] or Return Value
- True if the start width is set, false if not
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 |
Same width for its entire length
| To set 2D PolyLine's... | Use... |
| Start width only | IPolyLine::SetSegmentStartWidth |
| End width only | Same width for its entire length |
| Same width for its entire length | IPolyLine::GlobalWidth instead of using IPolyLine::SetSegmentStartWidth and IPolyLine::SetSegmentEndWidth |
IPolyLine Interface
IPolyLine Members
IPolyLine::GetSegmentEndWidth Method
IPolyLine::SetSegmentAngle Method
IPolyLine::GetSegmentAngle Method
IPolyLine::GetSegmentType Method
IPolyLine::SetSegmentAngle Method
IPolyLine::SetSegmentEndWidth Method
IPolyLine Members
IPolyLine::GetSegmentEndWidth Method
IPolyLine::SetSegmentAngle Method
IPolyLine::GetSegmentAngle Method
IPolyLine::GetSegmentType Method
IPolyLine::SetSegmentAngle Method
IPolyLine::SetSegmentEndWidth Method
DraftSight V1R1.1
Syntax