CompareInfo.IsSortable CompareInfo.IsSortable CompareInfo.IsSortable CompareInfo.IsSortable Method

Definition

Indicates whether a specified Unicode character or string is sortable.

Overloads

IsSortable(String) IsSortable(String) IsSortable(String) IsSortable(String)

Indicates whether a specified Unicode string is sortable.

IsSortable(Char) IsSortable(Char) IsSortable(Char) IsSortable(Char)

Indicates whether a specified Unicode character is sortable.

IsSortable(String) IsSortable(String) IsSortable(String) IsSortable(String)

Indicates whether a specified Unicode string is sortable.

public:
 static bool IsSortable(System::String ^ text);
[System.Runtime.InteropServices.ComVisible(false)]
public static bool IsSortable (string text);
static member IsSortable : string -> bool
Public Shared Function IsSortable (text As String) As Boolean

Parameters

text
String String String String

A string of zero or more Unicode characters.

Returns

true if the str parameter is not an empty string ("") and all the Unicode characters in str are sortable; otherwise, false.

Exceptions

Remarks

Each Unicode character in the str parameter is represented by one or more UTF-16 encoded Char objects. The str parameter is sortable if each Unicode character is defined in an internal CompareInfo class sort table, and is not a private use or unpaired high or low surrogate character.

IsSortable(Char) IsSortable(Char) IsSortable(Char) IsSortable(Char)

Indicates whether a specified Unicode character is sortable.

public:
 static bool IsSortable(char ch);
[System.Runtime.InteropServices.ComVisible(false)]
public static bool IsSortable (char ch);
static member IsSortable : char -> bool
Public Shared Function IsSortable (ch As Char) As Boolean

Parameters

ch
Char Char Char Char

A Unicode character.

Returns

true if the ch parameter is sortable; otherwise, false.

Remarks

The ch parameter is sortable if it is a Unicode character that is defined in an internal CompareInfo class sort table, and is not a private use or unpaired high or low surrogate character.

Applies to