Udostępnij za pośrednictwem


NumericShaper.Ranges Property

Definition

Returns an int that ORs together the values for all the ranges that will be shaped.

public Java.Awt.Font.Ranges Ranges { [Android.Runtime.Register("getRanges", "()I", "")] get; }
[<get: Android.Runtime.Register("getRanges", "()I", "")>]
member this.Ranges : Java.Awt.Font.Ranges

Property Value

the values for all the ranges to be shaped.

Attributes

Remarks

Returns an int that ORs together the values for all the ranges that will be shaped.

For example, to check if a shaper shapes to Arabic, you would use the following: <blockquote> if ((shaper.getRanges() & shaper.ARABIC) != 0) &#123; ...</blockquote>

Note that this method supports only the bit mask-based ranges. Call #getRangeSet() for the enum-based ranges.

Java documentation for java.awt.font.NumericShaper.getRanges().

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