Skip to main content

Grapheme Struct

Definition

Assembly:Avalonia.Base
Package:Avalonia

Represents the smallest unit of a writing system of any given language.

public struct Grapheme

Inheritance: ValueType -> Grapheme

Constructors

NameDescription
GraphemeNo summary available.

Grapheme Constructor

public Grapheme(Avalonia.Media.TextFormatting.Unicode.Codepoint firstCodepoint, int offset, int length)

Parameters

firstCodepoint Avalonia.Media.TextFormatting.Unicode.Codepoint

offset int

length int

Properties

NameDescription
FirstCodepointThe first Avalonia.Media.TextFormatting.Unicode.Codepoint of the grapheme cluster.
LengthGets the length of this grapheme, in code units.
OffsetGets the starting code unit offset of this grapheme inside its containing text.

FirstCodepoint Property

The first Avalonia.Media.TextFormatting.Unicode.Codepoint of the grapheme cluster.

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

Length Property

Gets the length of this grapheme, in code units.

public int Length { get; set; }

Offset Property

Gets the starting code unit offset of this grapheme inside its containing text.

public int Offset { get; set; }