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


IGeometryServer.GetLabelPoints Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IG > IGeometryServer Interface > IGeometryServer.GetLabelPoints Method
ArcGIS Developer Help

IGeometryServer.GetLabelPoints Method

Calculates an interior point for each polygon.

[Visual Basic .NET]
Public Function GetLabelPoints ( _
    ByVal pSR As ISpatialReference, _
    ByVal pInPolygons As IPolygonArray _
) As IPointArray
[C#]
public IPointArray GetLabelPoints (
    ISpatialReference pSR,
    IPolygonArray pInPolygons
);
[C++]
HRESULT GetLabelPoints(
  ISpatialReference* pSR,
  IPolygonArray* pInPolygons
);
[C++]
Parameters
pSR 

pSR is a parameter of type ISpatialReference* pInPolygons
pInPolygons is a parameter of type IPolygonArray*

Product Availability

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

Remarks

Generates one point geometry per input polygon. Each point is guaranteed to be inside its corresponding polygon. The ArcObjects IArea::LabelPoint property is used to generate the output points. All input geometries are assumed to be defined in the input spatial reference pSR. pSR cannot be nil.

See Also

IGeometryServer Interface