Centroid Method

The geometric centroid.

Namespace:  System.Spatial
Assembly:  System.Spatial (in System.Spatial.dll)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function Centroid ( _
    operand As GeometricSurface _
) As GeometricPoint
'Usage
Dim operand As GeometricSurface
Dim returnValue As GeometricPoint

returnValue = operand.Centroid()
public static GeometricPoint Centroid(
    this GeometricSurface operand
)
[ExtensionAttribute]
public:
static GeometricPoint^ Centroid(
    GeometricSurface^ operand
)
static member Centroid : 
        operand:GeometricSurface -> GeometricPoint 
public static function Centroid(
    operand : GeometricSurface
) : GeometricPoint

Parameters

Return Value

Type: System.Spatial..::..GeometricPoint
The operation result.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type GeometricSurface. When you use instance method syntax to call this method, omit the first parameter. For more information, see https://msdn.microsoft.com/en-us/library/bb384936(v=vs.103) or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.103).

See Also

Reference

GeometryOperationsExtensions Class

System.Spatial Namespace