Region.CreateRectangle (Double, Double, Boolean) Method

Creates a rectangular region.
Public Shared Function CreateRectangle( _ 
ByVal width As Double, _ 
ByVal height As Double, _ 
Optional ByVal centered As Boolean = false _ 
) As Region
This language is not supported or no code example is available.
public static Region CreateRectangle( 
double width
double height
bool centered = false 
)
This language is not supported or no code example is available.

Parameters

width
double

Width

height
double

Height

centered
bool

When true, the rectangle is built centered on the origin.

Return Value

Region

.NET Framework

Supported in: 4.5, 4.6, 4.7

In this article

Definition