GdiExtensionMethodsTotalLineLength(PointF, Int32, Int32) Method |
Calculates the total length of a polyline.
Namespace: Altaxo.Graph.GdiAssembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax public static double TotalLineLength(
this PointF[] polyline,
int startIdx,
int count
)
Parameters
- polyline PointF
- The points of the polyline. Only points starting from startIdx with the number of points = count are considered to be part of the polyline.
- startIdx Int32
- Index of the first point of the polyline in array polyline.
- count Int32
- The number of points of the polyline. An exception is thrown if this argument is less than 2.
Return Value
DoubleThe total length of the polyline, from index
startIdx with number of points equal to
count.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
PointF. 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).
Exceptions See Also