ClassTextSnapshot
Class
Represents a snapshot of the text.
Definition
Namespace:Telerik.Windows.SyntaxEditor.Core.Text
Assembly:Telerik.Windows.SyntaxEditor.Core.dll
Syntax:
cs-api-definition
public class TextSnapshot
Inheritance: objectTextSnapshot
Properties
Length
Gets the length of the text.
LineCount
Gets the count of the lines.
Lines
Gets the lines.
Declaration
cs-api-definition
public IEnumerable<TextSnapshotLine> Lines { get; }
Property Value
TextDocument
Gets the text document.
Version
Gets the version of the snapshot.
Methods
GetLineFromLineNumber(int)
Gets the snapshot line number from the line number.
Declaration
cs-api-definition
public TextSnapshotLine GetLineFromLineNumber(int lineNumber)
Parameters
lineNumber
Returns
GetLineFromPosition(int)
Gets the snapshot line number from the given position.
Declaration
cs-api-definition
public TextSnapshotLine GetLineFromPosition(int position)
Parameters
position
Returns
GetLineNumberFromPosition(int)
Gets the line number from the given position.
GetText()
Gets the text of this snapshot instance.
GetText(Span)
Gets the text of the given span.