API Documentation > CorelDRAW > 2025-v26 > Rect > IVGRect
Rect.ChangeContext method
Translates the rectangle coordinates from the context of the source document into that of the destination
Syntax:
Function ChangeContext(ByVal SrcDoc As Document, ByVal DestDoc As Document) As Rect
Parameters:
Name Type Description
SrcDoc
DestDoc
Remarks:
The ChangeContext method translates the coordinates of a bounding box from the context of the source document to that of the target document.