Transforms a rectangle from device to world space or vice versa. Use the flags specified by esriDisplayTransformEnum.
[Visual Basic .NET] Public Sub TransformRect ( _ ByVal mapRect As IEnvelope, _ ByRef devRect As tagRECT, _ ByVal options As Integer _ )
[C#] public void TransformRect ( IEnvelope mapRect, ref tagRECT devRect, ref int options );
[C++]
HRESULT TransformRect(
IEnvelope* mapRect,
tagRECT* devRect,
long options
);
[C++]Parameters
mapRect [in]mapRect is a parameter of type IEnvelope
devRect [in, out]devRect is a parameter of type tagRECT
options [in] options is a parameter of type long
Product Availability
Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.
Remarks
TransformRect converts a rectangle from map units to device units or vice versa. Multiple options can be entered to control the direction of the transformation etc by added the values of constants from esriDisplayTransformationEnum. The values in esriDisplayTransformationEnum define the accepted values that can be used in the transformation.