Partilhar via


ITextSnapshot.LineCount Property

Gets the number of lines in the snapshot.

Namespace:  Microsoft.VisualStudio.Text
Assembly:  Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)

Syntax

'Declaração
ReadOnly Property LineCount As Integer
int LineCount { get; }
property int LineCount {
    int get ();
}
abstract LineCount : int
function get LineCount () : int

Property Value

Type: System.Int32
The number of lines.

Remarks

A snapshot in which Length is zero is considered to have one line.

.NET Framework Security

See Also

Reference

ITextSnapshot Interface

Microsoft.VisualStudio.Text Namespace