Region Struct
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.
Represents a region composed of one or more rectangles.
public value class Region : IEquatable<Microsoft::Maui::Controls::Region>
public struct Region : IEquatable<Microsoft.Maui.Controls.Region>
type Region = struct
Public Structure Region
Implements IEquatable(Of Region)
- Inheritance
-
Region
- Implements
Remarks
Currently, regions represent rectangles, or collections of rectangles, only.
Methods
| Name | Description |
|---|---|
| Contains(Double, Double) |
Determines whether the region contains the specified coordinates. |
| Contains(Point) |
Determines whether the region contains the specified point. |
| Deflate() |
Deflates the region by reversing any previous inflation. |
| Equals(Object) | |
| Equals(Region) | |
| FromLines(Double[], Double, Double, Double, Double) |
Creates a region from line heights and positions. |
| FromRectangles(IEnumerable<Rect>) | |
| GetHashCode() | |
| Inflate(Double, Double, Double, Double) |
Inflates the region by the specified amounts on each side. |
| Inflate(Double) |
Inflates the region uniformly by the specified size. |
Operators
| Name | Description |
|---|---|
| Equality(Region, Region) | |
| Inequality(Region, Region) | |