New to Telerik UI for WinForms? Start a free 30-day trial

Maps a text segment to its starting layout span and offset in the flattened text used by DocumentTextMap.

Definition

Namespace:Telerik.WinForms.Documents.TextSearch

Assembly:Telerik.WinControls.RichTextEditor.dll

Syntax:

C#
public class TextMapItem

Inheritance: objectTextMapItem

Constructors

Initializes a mapping for a layout span within the text map.

C#
public TextMapItem(int index, SpanLayoutBox spanBox, int length)
Parameters:indexint

The span's offset in the mapped text. This can be negative for the first span when mapping begins partway through it.

spanBoxSpanLayoutBox

The first layout span represented by the mapped text segment.

lengthint

The number of characters in the text segment, which can extend across adjacent layout spans and include leading characters before a partial-span start.

Properties

Gets or sets the span's offset in the flattened text used by the map.

C#
public int Index { get; set; }
Property Value:

The offset, which can be negative for the first span when the map starts inside that span.

Gets or sets the number of characters in the mapped text segment.

C#
public int Length { get; set; }
Property Value:

The mapped character count, which can cover adjacent layout spans and include leading characters before a partial-span start.

Gets or sets the first layout span represented by this mapped text segment.

C#
public SpanLayoutBox SpanBox { get; set; }