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


IGpDescribeGeometry.Centroid Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geoprocessing > ESRI.ArcGIS.Geoprocessing > Interfaces > IG > IGpDescribeGeometry Interface > IGpDescribeGeometry.Centroid Property
ArcGIS Developer Help

IGpDescribeGeometry.Centroid Property

The centroid of the geometry object; returns label point if centroid is outside.

[Visual Basic .NET]
Public Function get_Centroid ( _
    [ByRef pInside As Object] _
) As String
[C#]
public string get_Centroid (
    ref object pInside
);
[C++]
HRESULT get_Centroid(
  Variant* pInside,
  System.String* Centroid
);
[C++]
Parameters
pInside [in, optional]

pInside is a parameter of type VARIANT* Centroid [out, retval]
Centroid is a parameter of type BSTR*

Product Availability

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

See Also

IGpDescribeGeometry Interface