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


IGridLabel2.QueryTextExtent Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IG > IGridLabel2 Interface > IGridLabel2.QueryTextExtent Method
ArcGIS Developer Help

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