RectF Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
RectF() |
Create a new empty RectF. |
RectF(Rect) |
Create a new empty RectF. |
RectF(RectF) |
Create a new rectangle, initialized with the values in the specified rectangle (which is left unmodified). |
RectF(IntPtr, JniHandleOwnership) |
A constructor used when creating managed representations of JNI objects; called by the runtime. |
RectF(Single, Single, Single, Single) |
Create a new rectangle with the specified coordinates. |
RectF()
Create a new empty RectF.
[Android.Runtime.Register(".ctor", "()V", "")]
public RectF ();
- Attributes
Remarks
Create a new empty RectF. All coordinates are initialized to 0.
Java documentation for android.graphics.RectF.RectF()
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
RectF(Rect)
Create a new empty RectF.
[Android.Runtime.Register(".ctor", "(Landroid/graphics/Rect;)V", "")]
public RectF (Android.Graphics.Rect? r);
[<Android.Runtime.Register(".ctor", "(Landroid/graphics/Rect;)V", "")>]
new Android.Graphics.RectF : Android.Graphics.Rect -> Android.Graphics.RectF
Parameters
- r
- Rect
- Attributes
Remarks
Java documentation for android.graphics.RectF.RectF()
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
RectF(RectF)
Create a new rectangle, initialized with the values in the specified rectangle (which is left unmodified).
[Android.Runtime.Register(".ctor", "(Landroid/graphics/RectF;)V", "")]
public RectF (Android.Graphics.RectF? r);
[<Android.Runtime.Register(".ctor", "(Landroid/graphics/RectF;)V", "")>]
new Android.Graphics.RectF : Android.Graphics.RectF -> Android.Graphics.RectF
Parameters
- r
- RectF
The rectangle whose coordinates are copied into the new rectangle.
- Attributes
Remarks
Create a new rectangle, initialized with the values in the specified rectangle (which is left unmodified).
Java documentation for android.graphics.RectF.RectF(android.graphics.RectF)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
RectF(IntPtr, JniHandleOwnership)
A constructor used when creating managed representations of JNI objects; called by the runtime.
protected RectF (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Graphics.RectF : nativeint * Android.Runtime.JniHandleOwnership -> Android.Graphics.RectF
Parameters
- transfer
- JniHandleOwnership
A JniHandleOwnershipindicating how to handle javaReference
Remarks
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
RectF(Single, Single, Single, Single)
Create a new rectangle with the specified coordinates.
[Android.Runtime.Register(".ctor", "(FFFF)V", "")]
public RectF (float left, float top, float right, float bottom);
[<Android.Runtime.Register(".ctor", "(FFFF)V", "")>]
new Android.Graphics.RectF : single * single * single * single -> Android.Graphics.RectF
Parameters
- left
- Single
The X coordinate of the left side of the rectangle
- top
- Single
The Y coordinate of the top of the rectangle
- right
- Single
The X coordinate of the right side of the rectangle
- bottom
- Single
The Y coordinate of the bottom of the rectangle
- Attributes
Remarks
Create a new rectangle with the specified coordinates. Note: no range checking is performed, so the caller must ensure that left <= right and top <= bottom.
Java documentation for android.graphics.RectF.RectF(float, float, float, float)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.