Sdílet prostřednictvím


Region Struct

Definition

Represents a visual region in a Xamarin.Forms UI.

public struct Region
type Region = struct
Inheritance
System.ValueType
Region

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.

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.

Inflate(Double, Double, Double, Double)

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

Inflate(Double)

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

Applies to