This document is archived and information here might be outdated.  Recommended version.


IMensuration.GetCentroid Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > DataSourcesRaster > ESRI.ArcGIS.DataSourcesRaster > Interfaces > IM > IMensuration Interface > IMensuration.GetCentroid Method
ArcGIS Developer Help

IMensuration.GetCentroid Method

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**

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

See Also

IMensuration Interface