IProjectionSnapshot2.GetMatchingSnapshotInClosure Method (ITextBuffer)
Computes the snapshot of the targetBuffer that is a contributor to this snapshot. If targetBuffer is not in the source closure of this snapshot, return null.
Namespace: Microsoft.VisualStudio.Text.Projection
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
Syntax
'Declaration
Function GetMatchingSnapshotInClosure ( _
targetBuffer As ITextBuffer _
) As ITextSnapshot
ITextSnapshot GetMatchingSnapshotInClosure(
ITextBuffer targetBuffer
)
ITextSnapshot^ GetMatchingSnapshotInClosure(
ITextBuffer^ targetBuffer
)
abstract GetMatchingSnapshotInClosure :
targetBuffer:ITextBuffer -> ITextSnapshot
function GetMatchingSnapshotInClosure(
targetBuffer : ITextBuffer
) : ITextSnapshot
Parameters
targetBuffer
Type: Microsoft.VisualStudio.Text.ITextBufferThe target buffer.
Return Value
Type: Microsoft.VisualStudio.Text.ITextSnapshot
The resulting text snapshot.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | If targetBuffer is nulla null reference (Nothing in Visual Basic). |
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
IProjectionSnapshot2 Interface