NumericShaper.GetContextualShaper 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| GetContextualShaper(Ranges) |
回傳所提供 Unicode 範圍的上下文整形器。 |
| GetContextualShaper(Ranges, Int32) |
回傳所提供 Unicode 範圍的上下文整形器。 |
GetContextualShaper(Ranges)
回傳所提供 Unicode 範圍的上下文整形器。
[Android.Runtime.Register("getContextualShaper", "(I)Ljava/awt/font/NumericShaper;", "")]
public static Java.Awt.Font.NumericShaper? GetContextualShaper(Java.Awt.Font.Ranges ranges);
[<Android.Runtime.Register("getContextualShaper", "(I)Ljava/awt/font/NumericShaper;", "")>]
static member GetContextualShaper : Java.Awt.Font.Ranges -> Java.Awt.Font.NumericShaper
參數
- ranges
- Ranges
指定的 Unicode 範圍
傳回
指定範圍的整形器
- 屬性
備註
回傳所提供 Unicode 範圍的上下文整形器。 若拉丁語1(歐洲語)數字為上述文字範圍之一,則會轉換為對應前一文字範圍的十進位數字。 多個範圍會以或-將這些值組合起來表示,例如。 NumericShaper.ARABIC | NumericShaper.THAI shaper 假設起始上下文為 EUROPEAN,也就是說,如果在字串中任何強方向文字之前遇到 EUROPEAN 數字,則假設上下文是 EUROPEAN,因此數字不會被 shape。
Java 文件 java.awt.font.NumericShaper.getContextualShaper(int)。
此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。
適用於
GetContextualShaper(Ranges, Int32)
回傳所提供 Unicode 範圍的上下文整形器。
[Android.Runtime.Register("getContextualShaper", "(II)Ljava/awt/font/NumericShaper;", "")]
public static Java.Awt.Font.NumericShaper? GetContextualShaper(Java.Awt.Font.Ranges ranges, int defaultContext);
[<Android.Runtime.Register("getContextualShaper", "(II)Ljava/awt/font/NumericShaper;", "")>]
static member GetContextualShaper : Java.Awt.Font.Ranges * int -> Java.Awt.Font.NumericShaper
參數
- ranges
- Ranges
指定的 Unicode 範圍
- defaultContext
- Int32
起始上下文,例如 NumericShaper.EUROPEAN
傳回
一個針對指定 Unicode 範圍的 shaper。
- 屬性
備註
回傳所提供 Unicode 範圍的上下文整形器。 若拉丁語1(歐洲語)數字為上述文字範圍之一,則會轉換為對應前一文字範圍的十進位數字。 多個範圍可透過將這些值或-組合表示,例如。 NumericShaper.ARABIC | NumericShaper.THAI shaper 使用 defaultContext 作為起始上下文。
Java 文件 java.awt.font.NumericShaper.getContextualShaper(int, int)。
此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。