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


IMensuration.GetCentroid Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (DataSourcesRaster)  

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