共用方式為


TextViewExtensions.TryGetTextViewLineContainingBufferPosition Method

Definition

public:
[System::Runtime::CompilerServices::Extension]
 static bool TryGetTextViewLineContainingBufferPosition(Microsoft::VisualStudio::Text::Editor::ITextView ^ textView, Microsoft::VisualStudio::Text::SnapshotPoint bufferPosition, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Text::Formatting::ITextViewLine ^ % textViewLine);
public static bool TryGetTextViewLineContainingBufferPosition (this Microsoft.VisualStudio.Text.Editor.ITextView textView, Microsoft.VisualStudio.Text.SnapshotPoint bufferPosition, out Microsoft.VisualStudio.Text.Formatting.ITextViewLine textViewLine);
static member TryGetTextViewLineContainingBufferPosition : Microsoft.VisualStudio.Text.Editor.ITextView * Microsoft.VisualStudio.Text.SnapshotPoint * ITextViewLine -> bool
<Extension()>
Public Function TryGetTextViewLineContainingBufferPosition (textView As ITextView, bufferPosition As SnapshotPoint, ByRef textViewLine As ITextViewLine) As Boolean

Parameters

textView
ITextView
bufferPosition
SnapshotPoint
textViewLine
ITextViewLine

Returns

Applies to