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


IGeometryServer.GetLabelPoints Method (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (Geometry)  

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