Megosztás a következőn keresztül:


View.TextAlignment Property

Definition

Return the resolved text alignment. -or- Set the text alignment.

public virtual Android.Views.TextAlignment TextAlignment { [Android.Runtime.Register("getTextAlignment", "()I", "GetGetTextAlignmentHandler")] get; [Android.Runtime.Register("setTextAlignment", "(I)V", "GetSetTextAlignment_IHandler")] set; }
[<get: Android.Runtime.Register("getTextAlignment", "()I", "GetGetTextAlignmentHandler")>]
[<set: Android.Runtime.Register("setTextAlignment", "(I)V", "GetSetTextAlignment_IHandler")>]
member this.TextAlignment : Android.Views.TextAlignment with get, set

Property Value

the resolved text alignment. Returns one of:

        <code data-dev-comment-type="c">#TEXT_ALIGNMENT_GRAVITY</code>,
        <code data-dev-comment-type="c">#TEXT_ALIGNMENT_CENTER</code>,
        <code data-dev-comment-type="c">#TEXT_ALIGNMENT_TEXT_START</code>,
        <code data-dev-comment-type="c">#TEXT_ALIGNMENT_TEXT_END</code>,
        <code data-dev-comment-type="c">#TEXT_ALIGNMENT_VIEW_START</code>,
        <code data-dev-comment-type="c">#TEXT_ALIGNMENT_VIEW_END</code>
Attributes

Remarks

Property getter documentation:

Return the resolved text alignment.

Java documentation for android.view.View.getTextAlignment().

Property setter documentation:

Set the text alignment.

Java documentation for android.view.View.setTextAlignment(int).

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