Compartilhar via


Paint.StrokeWidth Property

Definition

Return the width for stroking. -or- Set the width for stroking.

public virtual float StrokeWidth { [Android.Runtime.Register("getStrokeWidth", "()F", "GetGetStrokeWidthHandler")] get; [Android.Runtime.Register("setStrokeWidth", "(F)V", "GetSetStrokeWidth_FHandler")] set; }
[<get: Android.Runtime.Register("getStrokeWidth", "()F", "GetGetStrokeWidthHandler")>]
[<set: Android.Runtime.Register("setStrokeWidth", "(F)V", "GetSetStrokeWidth_FHandler")>]
member this.StrokeWidth : single with get, set

Property Value

the paint's stroke width, used whenever the paint's style is Stroke or StrokeAndFill.

Attributes

Remarks

Property getter documentation:

Return the width for stroking. <p /> A value of 0 strokes in hairline mode. Hairlines always draws a single pixel independent of the canvas's matrix.

Java documentation for android.graphics.Paint.getStrokeWidth().

Property setter documentation:

Set the width for stroking. Pass 0 to stroke in hairline mode. Hairlines always draws a single pixel independent of the canvas's matrix.

Java documentation for android.graphics.Paint.setStrokeWidth(float).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to