TextMapItem
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:
public class TextMapItem
Inheritance: objectTextMapItem
Constructors
Initializes a mapping for a layout span within the text map.
public TextMapItem(int index, SpanLayoutBox spanBox, int length)
The span's offset in the mapped text. This can be negative for the first span when mapping begins partway through it.
spanBoxSpanLayoutBoxThe first layout span represented by the mapped text segment.
lengthintThe 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.
public int Index { get; set; }
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.
public int Length { get; set; }
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.
public SpanLayoutBox SpanBox { get; set; }