共用方式為


Paint.TextAlign Property

Definition

Return the paint's Align value for drawing text. -or- Set the paint's text alignment.

public virtual Android.Graphics.Paint.Align? TextAlign { [Android.Runtime.Register("getTextAlign", "()Landroid/graphics/Paint$Align;", "GetGetTextAlignHandler")] get; [Android.Runtime.Register("setTextAlign", "(Landroid/graphics/Paint$Align;)V", "GetSetTextAlign_Landroid_graphics_Paint_Align_Handler")] set; }
[<get: Android.Runtime.Register("getTextAlign", "()Landroid/graphics/Paint$Align;", "GetGetTextAlignHandler")>]
[<set: Android.Runtime.Register("setTextAlign", "(Landroid/graphics/Paint$Align;)V", "GetSetTextAlign_Landroid_graphics_Paint_Align_Handler")>]
member this.TextAlign : Android.Graphics.Paint.Align with get, set

Property Value

the paint's Align value for drawing text.

Attributes

Remarks

Property getter documentation:

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

Property setter documentation:

Java documentation for android.graphics.Paint.setTextAlign(android.graphics.Align).

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