This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Display > ESRI.ArcGIS.Display > Interfaces > IT > ITextBackground Interface > ITextBackground.QueryBoundary Method (ArcObjects .NET 10.5 SDK) |
Queries for the boundary of the text background.
[Visual Basic .NET] Public Sub QueryBoundary ( _ ByVal hDC As Integer, _ ByVal transform As ITransformation, _ ByVal boundary As IPolygon _ )
[C#] public void QueryBoundary ( int hDC, ITransformation transform, IPolygon boundary );
[C++]
HRESULT QueryBoundary(
long hDC,
ITransformation* transform,
IPolygon* boundary
);
[C++]
Parameters hDC [in] hDC is a parameter of type long transform [in]
transform is a parameter of type ITransformation boundary [in]
boundary is a parameter of type IPolygon
Use the QueryBoundary method to find the shape of a callout. This method populates a Polygon with the boundary of the callout. For a LineCallout, this is the minimum bounding rectangle of the leader line and text background box. For a BalloonCallout, this is the shape of the balloon. For a MarkerTextBackground, this is the union of the bounding box of the Marker and the Text.