Click or drag to resize

RectExtensionsInflate Method

Inflate the specified rectangle by a rectangle, keeping the center invariant.

Namespace:  Ptv.XServer.Controls.Map.Tools
Assembly:  Ptv.XServer.Controls.Map (in Ptv.XServer.Controls.Map.dll) Version: 1.7.10.0
Syntax
public static Rect Inflate(
	this Rect rect,
	double factor
)

Parameters

rect
Type: System.WindowsRect
Rectangle (top less than bottom!!!) to inflate.
factor
Type: SystemDouble
Values higher than 1 inflate the rectangle, values between 0 and 1 shrink it. Negative values are not recommended.

Return Value

Type: Rect
Inflated/shrunken rectangle.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Rect. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also