共用方式為


Paint.ElegantTextHeight Property

Definition

Get the elegant metrics flag. -or- Set the paint's elegant height metrics flag.

public virtual bool ElegantTextHeight { [Android.Runtime.Register("isElegantTextHeight", "()Z", "GetIsElegantTextHeightHandler")] get; [Android.Runtime.Register("setElegantTextHeight", "(Z)V", "GetSetElegantTextHeight_ZHandler")] set; }
[<get: Android.Runtime.Register("isElegantTextHeight", "()Z", "GetIsElegantTextHeightHandler")>]
[<set: Android.Runtime.Register("setElegantTextHeight", "(Z)V", "GetSetElegantTextHeight_ZHandler")>]
member this.ElegantTextHeight : bool with get, set

Property Value

true if elegant metrics are enabled for text drawing.

Attributes

Remarks

Property getter documentation:

Get the elegant metrics flag.

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

Property setter documentation:

Set the paint's elegant height metrics flag. This setting selects font variants that have not been compacted to fit Latin-based vertical metrics, and also increases top and bottom bounds to provide more space.

Java documentation for android.graphics.Paint.setElegantTextHeight(boolean).

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