共用方式為


ITextSnapshot.Lines Property

Gets an enumerator for the set of lines in the snapshot.

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

Syntax

'宣告
ReadOnly Property Lines As IEnumerable(Of ITextSnapshotLine)
    Get
IEnumerable<ITextSnapshotLine> Lines { get; }
property IEnumerable<ITextSnapshotLine^>^ Lines {
    IEnumerable<ITextSnapshotLine^>^ get ();
}
abstract Lines : IEnumerable<ITextSnapshotLine>
function get Lines () : IEnumerable<ITextSnapshotLine>

Property Value

Type: System.Collections.Generic.IEnumerable<ITextSnapshotLine>
An IEnumerable<T> of type ITextSnapshotLine.

.NET Framework Security

See Also

Reference

ITextSnapshot Interface

Microsoft.VisualStudio.Text Namespace