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


IGpDescribeGeometry.Centroid Property (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (Geoprocessing)  

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