←Select platform

OffsetRect Method

Summary
Returns a rectangle that is offset from the specified rectangle by using the specified horizontal and vertical amounts.
Syntax
C#
C++/CLI
Java
Python
public static LeadRectD OffsetRect( 
   LeadRectD rect, 
   double offsetX, 
   double offsetY 
) 
public static LeadRectD offsetRect( 
   LeadRectD rect, 
   double offsetX, 
   double offsetY 
); 
public: 
static LeadRectD OffsetRect(  
   LeadRectD rect, 
   double offsetX, 
   double offsetY 
)  
def OffsetRect(self,rect,offsetX,offsetY): 

Parameters

rect
The rectangle to move.

offsetX
The amount to move the rectangle horizontally.

offsetY
The amount to move the rectangle vertically.

Return Value

The resulting rectangle.

Requirements

Target Platforms

Help Version 22.0.2023.5.16
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

Leadtools Assembly

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.