UnicodeBlock Class
Represents a Unicode block (named range of code points).
public sealed class UnicodeBlock : IEquatable<UnicodeBlock>- Implements
Properties
| Name | Description |
|---|---|
| Name | Gets the name of the block. |
| Range | Gets the range of code points in this block. |
Name
UnicodeBlock.csRange
UnicodeBlock.csGets the range of code points in this block.
public UnicodeRange Range { get; }Property value
UnicodeRange The range of code points in this block. For UnicodeBlocks.Unknown, whose code points are the gaps between the defined blocks, the range is the whole code space (U+0000..U+10FFFF): use UnicodeBlock.Contains to test whether a code point is in the block.
Methods
| Name | Description |
|---|---|
| Contains(int) | Determines whether the specified code point is in this block. |
| Contains(Rune) | Determines whether the specified rune is in this block. |
| Equals(UnicodeBlock?) | |
| Equals(object?) | |
| GetHashCode() | |
| ToString() |
Contains overloads
Contains(int)
UnicodeBlock.csDetermines whether the specified code point is in this block.
Parameters
codePointint- The code point to check.
Returns
bool true if the code point is in the block; otherwise, false.
Remarks
UnicodeBlocks.Unknown contains the code points, from U+0000 to U+10FFFF, that are in no defined block.
Contains(Rune)
UnicodeBlock.csDetermines whether the specified rune is in this block.
Parameters
runeRune- The rune to check.
Returns
bool true if the rune is in the block; otherwise, false.
Remarks
UnicodeBlocks.Unknown contains the code points that are in no defined block.
Equals overloads
Equals(UnicodeBlock?)
UnicodeBlock.cspublic bool Equals(UnicodeBlock? other)No documentation is available.