Skip to main content

Codepoint Struct

Definition

Assembly:Avalonia.Base
Package:Avalonia
public struct Codepoint

Inheritance: ValueType -> Codepoint

Implements: IEquatable<Codepoint>

Constructors

NameDescription
CodepointCreates a new instance of Avalonia.Media.TextFormatting.Unicode.Codepoint with the specified value.

Codepoint Constructor

Creates a new instance of Avalonia.Media.TextFormatting.Unicode.Codepoint with the specified value.

public Codepoint(uint value)

Parameters

value uint

The codepoint value.

Methods

NameDescription
Equals (2 overloads)No summary available.
GetHashCodeNo summary available.
IsInRangeInclusiveReturns if cp is between lowerBound and upperBound, inclusive.
ReadAtNo summary available.
ToStringNo summary available.
TryGetPairedBracketNo summary available.

Equals overloads

Equals Method

public bool Equals(Avalonia.Media.TextFormatting.Unicode.Codepoint other)
Parameters

other Avalonia.Media.TextFormatting.Unicode.Codepoint

Returns

bool

Equals Method

public bool Equals(object obj)
Parameters

obj object

Returns

bool

GetHashCode Method

public int GetHashCode()

Returns

int

IsInRangeInclusive Method

Returns if cp is between lowerBound and upperBound, inclusive.

public bool IsInRangeInclusive(Avalonia.Media.TextFormatting.Unicode.Codepoint cp, uint lowerBound, uint upperBound)

Parameters

cp Avalonia.Media.TextFormatting.Unicode.Codepoint

lowerBound uint

upperBound uint

Returns

bool

ReadAt Method

public Avalonia.Media.TextFormatting.Unicode.Codepoint ReadAt(ReadOnlySpan<char> text, int index, int& count)

Parameters

text ReadOnlySpan<char>

index int

count int&

Returns

Avalonia.Media.TextFormatting.Unicode.Codepoint

ToString Method

public string ToString()

Returns

string

TryGetPairedBracket Method

public bool TryGetPairedBracket(Avalonia.Media.TextFormatting.Unicode.Codepoint& codepoint)

Parameters

codepoint Avalonia.Media.TextFormatting.Unicode.Codepoint&

Returns

bool

Properties

BiDiClass Property

Gets the Avalonia.Media.TextFormatting.Unicode.BidiClass.

public Avalonia.Media.TextFormatting.Unicode.BidiClass BiDiClass { get; set; }

EastAsianWidthClass Property

Gets the Avalonia.Media.TextFormatting.Unicode.Codepoint.EastAsianWidthClass.

public Avalonia.Media.TextFormatting.Unicode.EastAsianWidthClass EastAsianWidthClass { get; set; }

GeneralCategory Property

Gets the Avalonia.Media.TextFormatting.Unicode.GeneralCategory.

public Avalonia.Media.TextFormatting.Unicode.GeneralCategory GeneralCategory { get; set; }

GraphemeBreakClass Property

Gets the Avalonia.Media.TextFormatting.Unicode.Codepoint.GraphemeBreakClass.

public Avalonia.Media.TextFormatting.Unicode.GraphemeBreakClass GraphemeBreakClass { get; set; }

IsBreakChar Property

Determines whether this Avalonia.Media.TextFormatting.Unicode.Codepoint is a break char.

public bool IsBreakChar { get; set; }

Returns

true if [is break character]; otherwise, false.

IsEastAsian Property

Determines whether this Avalonia.Media.TextFormatting.Unicode.Codepoint is an east asian char.

public bool IsEastAsian { get; set; }

Returns

true if [is an east asian character]; otherwise, false.

IsWhiteSpace Property

Determines whether this Avalonia.Media.TextFormatting.Unicode.Codepoint is white space.

public bool IsWhiteSpace { get; set; }

Returns

true if [is whitespace]; otherwise, false.

LineBreakClass Property

Gets the Avalonia.Media.TextFormatting.Unicode.LineBreakClass.

public Avalonia.Media.TextFormatting.Unicode.LineBreakClass LineBreakClass { get; set; }

PairedBracketType Property

Gets the Avalonia.Media.TextFormatting.Unicode.BidiPairedBracketType.

public Avalonia.Media.TextFormatting.Unicode.BidiPairedBracketType PairedBracketType { get; set; }

ReplacementCodepoint Property

The replacement codepoint that is used for non supported values.

public Avalonia.Media.TextFormatting.Unicode.Codepoint ReplacementCodepoint { get; set; }

Script Property

Gets the Avalonia.Media.TextFormatting.Unicode.Script.

public Avalonia.Media.TextFormatting.Unicode.Script Script { get; set; }

Value Property

Get the codepoint's value.

public uint Value { get; set; }