UIBezierPath.SetLineDash Method

Definition

Overloads

SetLineDash(nfloat[], nfloat)

Sets line stroking pattern for the path.

SetLineDash(nfloat[], nint, nint, nfloat)

Sets the dash pattern for the line.

SetLineDash(nfloat[], nfloat)

Sets line stroking pattern for the path.

public void SetLineDash (nfloat[] values, nfloat phase);
member this.SetLineDash : nfloat[] * nfloat -> unit

Parameters

values
nfloat[]

An array of lenghts that alternate between the solid portion and the gap portion, measured in points.

phase
nfloat

Point at which the pattern starts to get rendered (counting from the origin).

Remarks

This can be used from a background thread.

Applies to

SetLineDash(nfloat[], nint, nint, nfloat)

Sets the dash pattern for the line.

public void SetLineDash (nfloat[] values, nint offset, nint count, nfloat phase);
member this.SetLineDash : nfloat[] * nint * nint * nfloat -> unit

Parameters

values
nfloat[]

An array of lenghts that alternate between the solid portion and the gap portion, measured in points.

offset
System.System.IntPtr System.nativeint

Offset into the values to start rendering from.

count
System.System.IntPtr System.nativeint

Number of items in the array to consider.

phase
nfloat

Point at which the pattern starts to get rendered (counting from the origin).

Remarks

This variation of the method allows a segment of the "values" array to be specified via the offset and count parameters.

This can be used from a background thread.

Applies to