WordSegment Struct
Definition
Represents a segment between two Unicode word boundaries.
public struct WordSegment
Constructors
| Name | Description |
|---|---|
| WordSegment | Initializes a new instance of the Avalonia.Media.TextFormatting.Unicode.WordSegment struct. |
WordSegment Constructor
Initializes a new instance of the Avalonia.Media.TextFormatting.Unicode.WordSegment struct.
public WordSegment(int offset, int length, int codepointOffset, int codepointLength)
Parameters
offset int
The segment offset in UTF-16 code units.
length int
The segment length in UTF-16 code units.
codepointOffset int
The segment offset in Unicode code points.
codepointLength int
The segment length in Unicode code points.
Properties
| Name | Description |
|---|---|
| CodepointLength | Gets the segment length in Unicode code points. |
| CodepointOffset | Gets the segment offset in Unicode code points. |
| Length | Gets the segment length in UTF-16 code units. |
| Offset | Gets the segment offset in UTF-16 code units. |
CodepointLength Property
Gets the segment length in Unicode code points.
public int CodepointLength { get; set; }
CodepointOffset Property
Gets the segment offset in Unicode code points.
public int CodepointOffset { get; set; }
Length Property
Gets the segment length in UTF-16 code units.
public int Length { get; set; }
Offset Property
Gets the segment offset in UTF-16 code units.
public int Offset { get; set; }