Polyline2dExtensionGetLineSegmentAt Method |
Gets the linear 3D segment at specified index.
Namespace:
Gile.AutoCAD.R20.Geometry
Assembly:
GeometryExtensionsR20 (in GeometryExtensionsR20.dll) Version: 2.2.0.0 (2.2.0.0)
Syntaxpublic static LineSegment3d GetLineSegmentAt(
this Polyline2d pline,
int index
)
<ExtensionAttribute>
Public Shared Function GetLineSegmentAt (
pline As Polyline2d,
index As Integer
) As LineSegment3d
public:
[ExtensionAttribute]
static LineSegment3d^ GetLineSegmentAt(
Polyline2d^ pline,
int index
)
[<ExtensionAttribute>]
static member GetLineSegmentAt :
pline : Polyline2d *
index : int -> LineSegment3d
Parameters
- pline
- Type: Polyline2d
The instance to which this method applies. - index
- Type: SystemInt32
The segment index.
Return Value
Type:
LineSegment3dAn instance of LineSegment3d (WCS coordinates).
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Polyline2d. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
ExceptionsException | Condition |
---|
ArgumentNullException | ArgumentException is thrown if pline is null. |
ArgumentOutOfRangeException |
ArgumentOutOfRangeException if index is out of the indices range. |
See Also