Freigeben über


SnapshotPoint.GetContainingLine Method

Gets the ITextSnapshotLine containing this snapshot point.

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

Syntax

'Declaration
Public Function GetContainingLine As ITextSnapshotLine
public ITextSnapshotLine GetContainingLine()
public:
ITextSnapshotLine^ GetContainingLine()
member GetContainingLine : unit -> ITextSnapshotLine
public function GetContainingLine() : ITextSnapshotLine

Return Value

Type: Microsoft.VisualStudio.Text.ITextSnapshotLine
The ITextSnapshotLine.

.NET Framework Security

See Also

Reference

SnapshotPoint Structure

Microsoft.VisualStudio.Text Namespace