語言

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。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於