IProjectionSnapshot2.GetMatchingSnapshotInClosure Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetMatchingSnapshotInClosure(ITextBuffer) |
Computes the snapshot of |
GetMatchingSnapshotInClosure(Predicate<ITextBuffer>) |
For each snapshot in the source closure of this snapshot, call the |
GetMatchingSnapshotInClosure(ITextBuffer)
Computes the snapshot of targetBuffer
that is a contributor to this snapshot. If
targetBuffer
is not in the source closure of this snapshot, return null.
public:
Microsoft::VisualStudio::Text::ITextSnapshot ^ GetMatchingSnapshotInClosure(Microsoft::VisualStudio::Text::ITextBuffer ^ targetBuffer);
public:
Microsoft::VisualStudio::Text::ITextSnapshot ^ GetMatchingSnapshotInClosure(Microsoft::VisualStudio::Text::ITextBuffer ^ targetBuffer);
Microsoft::VisualStudio::Text::ITextSnapshot GetMatchingSnapshotInClosure(Microsoft::VisualStudio::Text::ITextBuffer const & targetBuffer);
public Microsoft.VisualStudio.Text.ITextSnapshot GetMatchingSnapshotInClosure (Microsoft.VisualStudio.Text.ITextBuffer targetBuffer);
abstract member GetMatchingSnapshotInClosure : Microsoft.VisualStudio.Text.ITextBuffer -> Microsoft.VisualStudio.Text.ITextSnapshot
Public Function GetMatchingSnapshotInClosure (targetBuffer As ITextBuffer) As ITextSnapshot
Parameters
- targetBuffer
- ITextBuffer
The target buffer.
Returns
The resulting text snapshot.
Exceptions
if targetBuffer
is null.
Applies to
GetMatchingSnapshotInClosure(Predicate<ITextBuffer>)
For each snapshot in the source closure of this snapshot, call the match
predicate on the
corresponding text buffer, and return the first source snapshot for which it returns true. The order in which the
source snapshots are visited is undefined.
public:
Microsoft::VisualStudio::Text::ITextSnapshot ^ GetMatchingSnapshotInClosure(Predicate<Microsoft::VisualStudio::Text::ITextBuffer ^> ^ match);
public Microsoft.VisualStudio.Text.ITextSnapshot GetMatchingSnapshotInClosure (Predicate<Microsoft.VisualStudio.Text.ITextBuffer> match);
abstract member GetMatchingSnapshotInClosure : Predicate<Microsoft.VisualStudio.Text.ITextBuffer> -> Microsoft.VisualStudio.Text.ITextSnapshot
Public Function GetMatchingSnapshotInClosure (match As Predicate(Of ITextBuffer)) As ITextSnapshot
Parameters
- match
- Predicate<ITextBuffer>
The predicate for matching.
Returns
The resulting text snapshot.
Exceptions
if match
is null.