PolylineExtensionCentroid2d Method |
Gets the Polyline centroid.
Namespace:
Gile.AutoCAD.R20.Geometry
Assembly:
GeometryExtensionsR20 (in GeometryExtensionsR20.dll) Version: 2.2.0.0 (2.2.0.0)
Syntaxpublic static Point2d Centroid2d(
this Polyline pline
)
<ExtensionAttribute>
Public Shared Function Centroid2d (
pline As Polyline
) As Point2d
public:
[ExtensionAttribute]
static Point2d Centroid2d(
Polyline^ pline
)
[<ExtensionAttribute>]
static member Centroid2d :
pline : Polyline -> Point2d
Parameters
- pline
- Type: Polyline
The instance to which this method applies.
Return Value
Type:
Point2dThe Polyline centroid (OCS coordinates).
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Polyline. 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. |
See Also