Region.Set Method
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
| Name | Description |
|---|---|
| Set(Int32, Int32, Int32, Int32) |
Set the region to the specified rectangle |
| Set(Region) |
Set the region to the specified region. |
| Set(Rect) |
Set the region to the specified rectangle |
Set(Int32, Int32, Int32, Int32)
Set the region to the specified rectangle
[Android.Runtime.Register("set", "(IIII)Z", "GetSet_IIIIHandler")]
public virtual bool Set(int left, int top, int right, int bottom);
[<Android.Runtime.Register("set", "(IIII)Z", "GetSet_IIIIHandler")>]
abstract member Set : int * int * int * int -> bool
override this.Set : int * int * int * int -> bool
Parameters
- left
- Int32
The inclusive left edge of the replacement rectangle.
- top
- Int32
The inclusive top edge of the replacement rectangle.
- right
- Int32
The exclusive right edge of the replacement rectangle.
- bottom
- Int32
The exclusive bottom edge of the replacement rectangle.
Returns
true if the resulting region is nonempty; otherwise, false.
- Attributes
Remarks
Set the region to the specified rectangle
Java documentation for android.graphics.Region.set(int, int, int, int).
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
Set(Region)
Set the region to the specified region.
[Android.Runtime.Register("set", "(Landroid/graphics/Region;)Z", "GetSet_Landroid_graphics_Region_Handler")]
public virtual bool Set(Android.Graphics.Region region);
[<Android.Runtime.Register("set", "(Landroid/graphics/Region;)Z", "GetSet_Landroid_graphics_Region_Handler")>]
abstract member Set : Android.Graphics.Region -> bool
override this.Set : Android.Graphics.Region -> bool
Parameters
- region
- Region
The region whose coverage replaces this region.
Returns
The Android 16 base implementation returns true after copying, even if the copied region is empty.
- Attributes
Remarks
Set the region to the specified region.
Java documentation for android.graphics.Region.set(android.graphics.Region).
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
Set(Rect)
Set the region to the specified rectangle
[Android.Runtime.Register("set", "(Landroid/graphics/Rect;)Z", "GetSet_Landroid_graphics_Rect_Handler")]
public virtual bool Set(Android.Graphics.Rect r);
[<Android.Runtime.Register("set", "(Landroid/graphics/Rect;)Z", "GetSet_Landroid_graphics_Rect_Handler")>]
abstract member Set : Android.Graphics.Rect -> bool
override this.Set : Android.Graphics.Rect -> bool
Parameters
- r
- Rect
The rectangle whose integer coverage replaces this region.
Returns
true if the resulting region is nonempty; otherwise, false.
- Attributes
Remarks
Set the region to the specified rectangle
Java documentation for android.graphics.Region.set(android.graphics.Rect).
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.