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


IDisplayTransformation.TransformRect Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Display > ESRI.ArcGIS.Display > Interfaces > ID > IDisplayTransformation Interface > IDisplayTransformation.TransformRect Method
ArcGIS Developer Help

IDisplayTransformation.TransformRect Method

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.

See Also

IDisplayTransformation Interface