Sdílet prostřednictvím


Character.GetDirectionality Method

Definition

Overloads

GetDirectionality(Int32)

Returns the Unicode directionality property for the given character (Unicode code point).

GetDirectionality(Char)

Returns the Unicode directionality property for the given character.

GetDirectionality(Int32)

Returns the Unicode directionality property for the given character (Unicode code point).

[Android.Runtime.Register("getDirectionality", "(I)B", "")]
public static sbyte GetDirectionality (int codePoint);
[<Android.Runtime.Register("getDirectionality", "(I)B", "")>]
static member GetDirectionality : int -> sbyte

Parameters

codePoint
Int32

the character (Unicode code point) for which the directionality property is requested.

Returns

the directionality property of the character.

Attributes

Remarks

Returns the Unicode directionality property for the given character (Unicode code point). Character directionality is used to calculate the visual ordering of text. The directionality value of undefined character is #DIRECTIONALITY_UNDEFINED.

Added in 1.5.

Java documentation for java.lang.Character.getDirectionality(int).

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

GetDirectionality(Char)

Returns the Unicode directionality property for the given character.

[Android.Runtime.Register("getDirectionality", "(C)B", "")]
public static sbyte GetDirectionality (char ch);
[<Android.Runtime.Register("getDirectionality", "(C)B", "")>]
static member GetDirectionality : char -> sbyte

Parameters

ch
Char

char for which the directionality property is requested.

Returns

the directionality property of the char value.

Attributes

Remarks

Returns the Unicode directionality property for the given character. Character directionality is used to calculate the visual ordering of text. The directionality value of undefined char values is DIRECTIONALITY_UNDEFINED.

<b>Note:</b> This method cannot handle supplementary characters. To support all Unicode characters, including supplementary characters, use the #getDirectionality(int) method.

Added in 1.4.

Java documentation for java.lang.Character.getDirectionality(char).

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