UnicodeBlock Class

Represents a Unicode block (named range of code points).

public sealed class UnicodeBlock : IEquatable<UnicodeBlock>
Implements

Properties

NameDescription
NameGets the name of the block.
RangeGets the range of code points in this block.

Gets the name of the block.

public string Name { get; }

Property value

string

Gets 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

NameDescription
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.cs

Determines whether the specified code point is in this block.

public bool Contains(int codePoint)
Parameters
codePoint int
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.cs

Determines whether the specified rune is in this block.

public bool Contains(Rune rune)
Parameters
rune Rune
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.cs
public bool Equals(UnicodeBlock? other)
Parameters
other UnicodeBlock?
Returns

bool

No documentation is available.

Equals(object?)

UnicodeBlock.cs
public override bool Equals(object? obj)
Parameters
obj object?
Returns

bool

No documentation is available.

GetHashCode()

UnicodeBlock.cs
public override int GetHashCode()

Returns

int

No documentation is available.

ToString()

UnicodeBlock.cs
public override string ToString()

Returns

string

No documentation is available.