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


IArea.QueryLabelPoint Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Geometry)  

IArea.QueryLabelPoint Method

Copies to the input point a point guaranteed to be inside this area.

[Visual Basic .NET]
Public Sub QueryLabelPoint ( _
    ByVal LabelPoint As IPoint _
)
[C#]
public void QueryLabelPoint (
    IPoint LabelPoint
);
[C++]
HRESULT QueryLabelPoint(
  IPoint* LabelPoint
);
[C++]

Parameters LabelPoint
LabelPoint is a parameter of type IPoint

Product Availability

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

Description

Queries the Label Point of the object.  The Label Point is the point at which the label is located.  The Label Point is always located within the Area of the object. You must instantiate the point before calling QueryLabelPoint. For example,

Dim pPoint as IPoint
Set pPoint=New Point

Remarks

Note: The output geometry must be co-created prior to the query. The output geometry is not co-created by the method; it is populated. This can be used in performance critical situations. For example, creating the geometry only once outside a loop and use the query method could improve performance.

See Also

IArea Interface | IArea.LabelPoint Property | IArea.QueryLabelPoint Method | IArea.Centroid Property | IArea.QueryCentroid Method