Region Struct

Definition

Represents a visual region in a Microsoft.Maui.Controls UI.

public value class Region
public value class Region : IEquatable<Microsoft::Maui::Controls::Region>
public struct Region
public struct Region : IEquatable<Microsoft.Maui.Controls.Region>
type Region = struct
Public Structure Region
Public Structure Region
Implements IEquatable(Of Region)
Inheritance
Region
Implements

Remarks

Currently, regions represent rectangles, or collections of rectangles, only.

Methods

Contains(Double, Double)

Returns true if the point that is represented by the specified coordinates is inside the region. Otherwise, returns false.

Contains(Point)

Returns true if the specified point is inside the region. Otherwise, returns false.

Deflate()

Returns a region shrunk by the values in the most recent inflation, or does nothing if there has not been a previous inflation.

Equals(Object)
Equals(Region)
FromLines(Double[], Double, Double, Double, Double)

Creates and returns a region that detects points inside a collection of rectangles created from the lines that are specified by the provided data.

FromRectangles(IEnumerable<Rect>)
GetHashCode()
Inflate(Double)

Returns a region that is expanded by or has all of its subregions expanded by the specified size.

Inflate(Double, Double, Double, Double)

Returns a region that is expanded by or has all of its subregions expanded by the specified values.

Operators

Equality(Region, Region)
Inequality(Region, Region)

Applies to