Share via


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
System.Double[]

The list of line heights to use.

maxWidth
System.Double

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

startX
System.Double

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

endX
System.Double

The width of the last line.

startY
System.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