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


IGpDescribeGeometry.Centroid Property (ArcObjects .NET 10.5 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#]

Optional Values

pInside   To indicate that this parameter is undefined, first define a variable object Missing=Type.Missing; then pass this in as ref Missing.
[C++]
HRESULT get_Centroid(
  VARIANT* pInside,
  BSTR* Centroid
);
[C++]

Parameters pInside [optional] pInside is a parameter of type VARIANT
To indicate this parameter is undefined pass a reference to a VARIANT with type VT_ERROR and scode value of DISP_E_PARAMNOTFOUND. 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