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


IGridLabel2.QueryTextExtent Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Carto)  

IGridLabel2.QueryTextExtent Method

Determines the extent of a label's text on the specified grid axis.

[Visual Basic .NET]
Public Sub QueryTextExtent ( _
    ByVal LabelValue As Double, _
    ByVal Location As IPoint, _
    ByVal axis As esriGridAxisEnum, _
    ByVal Display As IDisplay, _
    ByVal Extent As IEnvelope _
)
[C#]
public void QueryTextExtent (
    double LabelValue,
    IPoint Location,
    esriGridAxisEnum axis,
    IDisplay Display,
    IEnvelope Extent
);
[C++]
HRESULT QueryTextExtent(
  double LabelValue,
  IPoint* Location,
  esriGridAxisEnum axis,
  IDisplay* Display,
  IEnvelope* Extent
);
[C++]

Parameters LabelValue [in] LabelValue is a parameter of type double Location [in]
Location is a parameter of type IPoint axis [in]
axis is a parameter of type esriGridAxisEnum Display [in]
Display is a parameter of type IDisplay Extent
Extent is a parameter of type IEnvelope

Product Availability

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

See Also

IGridLabel2 Interface