Region.FromLines(Double[], Double, Double, Double, Double) Method

Definition

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

public static Xamarin.Forms.Region FromLines (double[] lineHeights, double maxWidth, double startX, double endX, double startY);
static member FromLines : double[] * double * double * double * double -> Xamarin.Forms.Region

Parameters

lineHeights
Double[]

The list of line heights to use.

maxWidth
Double

The width of a line that spans the rectangle that encloses the region.

startX
Double

The starting X value on the first line, equivalent to an indent.

endX
Double

The width of the last line.

startY
Double

The top of the region.

Returns

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

Applies to