←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#
VB
C++
Java
public static LeadRectD OffsetRect( 
   LeadRectD rect, 
   double offsetX, 
   double offsetY 
) 
Public Shared Function OffsetRect( _ 
   ByVal rect As LeadRectD, _ 
   ByVal offsetX As Double, _ 
   ByVal offsetY As Double _ 
) As LeadRectD 
public static LeadRectD offsetRect(LeadRectD rect, double offsetX, double offsetY) 
public: 
static LeadRectD OffsetRect(  
   LeadRectD rect, 
   double offsetX, 
   double 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 21.0.2021.7.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

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