Click or drag to resize

GdiExtensionMethodsExpandToInclude Method

Expands the rectangle r, so that is contains the point p.

Namespace: Altaxo.Graph.Gdi
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static RectangleF ExpandToInclude(
	this RectangleF r,
	PointF p
)

Parameters

r  RectangleF
The rectangle to expand.
p  PointF
The point that should be contained in this rectangle.

Return Value

RectangleF
The new rectangle that now contains the point p.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type RectangleF. 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