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

IArea.Centroid Property (ArcObjects .NET 10.7 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IA > IArea Interface > IArea.Centroid Property
ArcGIS Developer Help

IArea.Centroid Property

The center of gravity (centroid).

[Visual Basic .NET]
Public ReadOnly Property Centroid As IPoint
public IPoint Centroid {get;}
HRESULT get_Centroid(
  IPoint** Center
Center [out, retval]

Center is a parameter of type IPoint**

Product Availability

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


Returns the Centroid of the 2 (or 2.5) Dimensional figure.  The Centroid is the center of the weighted area.


The Centroid does not always occur inside the Area of the geometry.  The Centroid is not the same as the center of the geometry or the Envelope binding the geometry (but it may be if and only if that is also the center of the weighted area).


Centroid Example

See Also

IArea Interface | IArea.Centroid Property | IArea.QueryCentroid Method | IArea.LabelPoint Property | IArea.QueryLabelPoint Method

.NET Samples

Move a graphic along a path in ArcMap