UnicodeEmoji Class
Provides emoji-related query methods for Unicode characters.
public static class UnicodeEmojiRemarks
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
| Name | Description |
|---|---|
| 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.csGets the emoji sequences of an emoji property of strings, such as RGI_Emoji_Flag_Sequence.
public static IReadOnlyList<string> GetSequences(UnicodeEmojiSequenceProperty property)Parameters
propertyUnicodeEmojiSequenceProperty- 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
ArgumentOutOfRangeExceptionpropertyis not a value ofUnicodeEmojiSequenceProperty.