←Select platform

Inflate(double,double) Method

Summary

Inflates a LogicalRectangle structure by the specified amount.

Syntax

C#
VB
C++
public void Inflate( 
   double x, 
   double y 
) 
  
Public Overloads Sub Inflate( _ 
   ByVal x As Double, _ 
   ByVal y As Double _ 
)  
public: 
void Inflate(  
   double x, 
   double y 
)  

Parameters

x
The amount to inflate this LogicalRectangle horizontally.

y
The amount to inflate this LogicalRectangle vertically.

Remarks

This method inflates this rectangle, not a copy of it. The inflation along an axis is in two directions (minus direction and plus direction). For example, if a 150 by 150 rectangle is inflated by 50 in the x-axis, the resulting rectangle will be 250 units long (the original 150, the 50 in the minus direction, and the 50 in the plus direction) maintaining the rectangle's geometric center. If either x or y is negative, the Rectangle structure is deflated in the corresponding direction.

Requirements

Target Platforms

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Forms Assembly