语言

Paint.VerticalTextFlag 字段

定义

注意

This constant will be removed in the future version. Use Android.Graphics.PaintFlags enum directly instead of this field.

控制要以垂直方向写入的文本的平面

[Android.Runtime.Register("VERTICAL_TEXT_FLAG", ApiSince=36)]
[System.Obsolete("This constant will be removed in the future version. Use Android.Graphics.PaintFlags enum directly instead of this field.", true)]
public const Android.Graphics.PaintFlags VerticalTextFlag = 4096;
[<Android.Runtime.Register("VERTICAL_TEXT_FLAG", ApiSince=36)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Graphics.PaintFlags enum directly instead of this field.", true)>]
val mutable VerticalTextFlag : Android.Graphics.PaintFlags

字段值

Value = 4096
特性

注解

控制要以垂直方向写入的文本的平面

此标志用于告知基础文本布局引擎文本是垂直方向的。 通过启用此标志,文本度量、绘图和调整 API 适用于垂直文本布局。 例如, Canvas#drawText(String, float, float, Paint) 从上到下绘制文本。 Paint#measureText(String) 返回垂直前进,而不是水平前进。 TextRunShaper 垂直形状文本和报告垂直布局的字形 ID。

不要设置此标志进行设置 android.text.Layout。 该 android.text.Layout 类及其子类仅用于水平文本,不适用于垂直文本。

Java文档android.graphics.Paint.VERTICAL_TEXT_FLAG。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于