←Select platform

InflateSize Method

Summary
Expands the rectangle by using the specified size, in all directions.
Syntax
C#
C++/CLI
Java
Python
public void InflateSize( 
   LeadSizeD size 
) 
public void inflateSize( 
   LeadSizeD size 
); 
public: 
void InflateSize(  
   LeadSizeD size 
)  
def InflateSize(self,size): 

Parameters

size
Specifies the amount to expand the rectangle. The LeadSizeD structure's Width property specifies the amount to increase the rectangle's Left and Right properties. The LeadSizeD structure's Height property specifies the amount to increase the rectangle's Top and Bottom properties.

Remarks

The Width of the resulting rectangle is increased by twice the Width of the specified LeadSizeD structure, because both the left and right sides of the rectangle are inflated. Likewise, the Height of the resulting rectangle is increased by twice the Height of the specified LeadSizeD structure.

You cannot change the values of the Empty rectangle.

Requirements

Target Platforms

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

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