This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Geoprocessing > ESRI.ArcGIS.Geoprocessing > Interfaces > IG > IGpDescribeGeometry Interface > IGpDescribeGeometry.Centroid Property (ArcObjects .NET 10.4 SDK) |
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 );
Optional Values
[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