UnicodeEmoji Class

Provides emoji-related query methods for Unicode characters.

public static class UnicodeEmoji

Remarks

This class provides methods to check various emoji properties defined in Unicode Technical Standard #51. For more information, see: https://www.unicode.org/reports/tr51/

Methods

NameDescription
GetSequences(UnicodeEmojiSequenceProperty)Gets the emoji sequences of an emoji property of strings, such as RGI_Emoji_Flag_Sequence.
HasEmojiPresentation(int)Determines whether the specified code point has the Emoji_Presentation property.
HasEmojiPresentation(Rune)Determines whether the specified rune has the Emoji_Presentation property.
IsEmoji(int)Determines whether the specified code point has the Emoji property.
IsEmoji(Rune)Determines whether the specified rune has the Emoji property.
IsEmojiComponent(int)Determines whether the specified code point has the Emoji_Component property.
IsEmojiComponent(Rune)Determines whether the specified rune has the Emoji_Component property.
IsEmojiModifier(int)Determines whether the specified code point has the Emoji_Modifier property.
IsEmojiModifier(Rune)Determines whether the specified rune has the Emoji_Modifier property.
IsEmojiModifierBase(int)Determines whether the specified code point has the Emoji_Modifier_Base property.
IsEmojiModifierBase(Rune)Determines whether the specified rune has the Emoji_Modifier_Base property.
IsExtendedPictographic(int)Determines whether the specified code point has the Extended_Pictographic property.
IsExtendedPictographic(Rune)Determines whether the specified rune has the Extended_Pictographic property.

GetSequences(UnicodeEmojiSequenceProperty)

UnicodeEmoji.cs

Gets the emoji sequences of an emoji property of strings, such as RGI_Emoji_Flag_Sequence.

public static IReadOnlyList<string> GetSequences(UnicodeEmojiSequenceProperty property)

Parameters

property UnicodeEmojiSequenceProperty
The property.

Returns

IReadOnlyList<string> The sequences, in the order of the data files of UTS #51. The list is read-only, created once, and shared by all callers.

Exceptions

ArgumentOutOfRangeException
property is not a value of UnicodeEmojiSequenceProperty.

See also

HasEmojiPresentation overloads

HasEmojiPresentation(int)

UnicodeEmoji.cs

Determines whether the specified code point has the Emoji_Presentation property.

public static bool HasEmojiPresentation(int codePoint)
Parameters
codePoint int
The code point to check.
Returns

bool true if the code point has the Emoji_Presentation property; otherwise, false.

HasEmojiPresentation(Rune)

UnicodeEmoji.cs

Determines whether the specified rune has the Emoji_Presentation property.

public static bool HasEmojiPresentation(Rune rune)
Parameters
rune Rune
The rune to check.
Returns

bool true if the rune has the Emoji_Presentation property; otherwise, false.

IsEmoji overloads

IsEmoji(int)

UnicodeEmoji.cs

Determines whether the specified code point has the Emoji property.

public static bool IsEmoji(int codePoint)
Parameters
codePoint int
The code point to check.
Returns

bool true if the code point has the Emoji property; otherwise, false.

IsEmoji(Rune)

UnicodeEmoji.cs

Determines whether the specified rune has the Emoji property.

public static bool IsEmoji(Rune rune)
Parameters
rune Rune
The rune to check.
Returns

bool true if the rune has the Emoji property; otherwise, false.

IsEmojiComponent overloads

IsEmojiComponent(int)

UnicodeEmoji.cs

Determines whether the specified code point has the Emoji_Component property.

public static bool IsEmojiComponent(int codePoint)
Parameters
codePoint int
The code point to check.
Returns

bool true if the code point has the Emoji_Component property; otherwise, false.

IsEmojiComponent(Rune)

UnicodeEmoji.cs

Determines whether the specified rune has the Emoji_Component property.

public static bool IsEmojiComponent(Rune rune)
Parameters
rune Rune
The rune to check.
Returns

bool true if the rune has the Emoji_Component property; otherwise, false.

IsEmojiModifier overloads

IsEmojiModifier(int)

UnicodeEmoji.cs

Determines whether the specified code point has the Emoji_Modifier property.

public static bool IsEmojiModifier(int codePoint)
Parameters
codePoint int
The code point to check.
Returns

bool true if the code point has the Emoji_Modifier property; otherwise, false.

IsEmojiModifier(Rune)

UnicodeEmoji.cs

Determines whether the specified rune has the Emoji_Modifier property.

public static bool IsEmojiModifier(Rune rune)
Parameters
rune Rune
The rune to check.
Returns

bool true if the rune has the Emoji_Modifier property; otherwise, false.

IsEmojiModifierBase overloads

IsEmojiModifierBase(int)

UnicodeEmoji.cs

Determines whether the specified code point has the Emoji_Modifier_Base property.

public static bool IsEmojiModifierBase(int codePoint)
Parameters
codePoint int
The code point to check.
Returns

bool true if the code point has the Emoji_Modifier_Base property; otherwise, false.

IsEmojiModifierBase(Rune)

UnicodeEmoji.cs

Determines whether the specified rune has the Emoji_Modifier_Base property.

public static bool IsEmojiModifierBase(Rune rune)
Parameters
rune Rune
The rune to check.
Returns

bool true if the rune has the Emoji_Modifier_Base property; otherwise, false.

IsExtendedPictographic overloads

IsExtendedPictographic(int)

UnicodeEmoji.cs

Determines whether the specified code point has the Extended_Pictographic property.

public static bool IsExtendedPictographic(int codePoint)
Parameters
codePoint int
The code point to check.
Returns

bool true if the code point has the Extended_Pictographic property; otherwise, false.

IsExtendedPictographic(Rune)

UnicodeEmoji.cs

Determines whether the specified rune has the Extended_Pictographic property.

public static bool IsExtendedPictographic(Rune rune)
Parameters
rune Rune
The rune to check.
Returns

bool true if the rune has the Extended_Pictographic property; otherwise, false.