Region.CreateRectangle (Double, Double, Double, Double, Double, Boolean) Method
Creates a rectangular region by position.
Public Shared Function CreateRectangle( _
ByVal x As Double, _
ByVal y As Double, _
ByVal width As Double, _
ByVal height As Double, _
Optional ByVal angle As Double = 0, _
Optional ByVal centered As Boolean = false _
) As Region
This language is not supported or no code example is available.
This language is not supported or no code example is available.
Parameters
-
x
-
double
Position along the plane X axis
-
y
-
double
Position along the plane Y axis
-
width
-
double
Width
-
height
-
double
Height
-
angle
-
double
Rotation angle in radians
-
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