New to Telerik UI for WPFStart a free 30-day trial

Represents a line from the snapshot.

Definition

Namespace:Telerik.Windows.SyntaxEditor.Core.Text

Assembly:Telerik.Windows.SyntaxEditor.Core.dll

Syntax:

C#
public class TextSnapshotLine

Inheritance: objectTextSnapshotLine

Properties

Gets the line number.

C#
public int LineNumber { get; }

Gets the snapshot of this line instance.

C#
public TextSnapshot Snapshot { get; }

Gets the span of this line instance.

C#
public Span Span { get; }

Methods

C#
public override bool Equals(object obj)
Parameters:objobjectReturns:

bool

Overrides: object.Equals(object)

C#
public override int GetHashCode()
Returns:

int

Overrides: object.GetHashCode()

Gets the text of this snapshot instance.

C#
public string GetText()
Returns:

string

Operators

Implementation of != operator.

C#
public static bool operator !=(TextSnapshotLine left, TextSnapshotLine right)
Parameters:leftTextSnapshotLinerightTextSnapshotLineReturns:

bool

Implementation of == operator.

C#
public static bool operator ==(TextSnapshotLine left, TextSnapshotLine right)
Parameters:leftTextSnapshotLinerightTextSnapshotLineReturns:

bool