This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > DataSourcesRaster > ESRI.ArcGIS.DataSourcesRaster > Interfaces > IM > IMensuration Interface > IMensuration.GetCentroid Method (ArcObjects .NET 10.4 SDK) |
Gets the coordinates of the centroid of a polygon and the associated error covariance matrix.
[Visual Basic .NET] Public Sub GetCentroid ( _ ByVal pPolygon As IPolygon, _ ByRef ppPointMeasurement As IPointMeasurement _ )
[C#] public void GetCentroid ( IPolygon pPolygon, ref IPointMeasurement ppPointMeasurement );
[C++]
HRESULT GetCentroid(
IPolygon* pPolygon,
IPointMeasurement** ppPointMeasurement
);
[C++]
Parameters pPolygon [in]
pPolygon is a parameter of type IPolygon ppPointMeasurement [out]
ppPointMeasurement is a parameter of type IPointMeasurement