IProjectionSnapshot.GetMatchingSnapshot Method
Gets the snapshot of the specified text buffer that corresponds to this snapshot.
Namespace: Microsoft.VisualStudio.Text.Projection
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
Syntax
'Declaration
Function GetMatchingSnapshot ( _
textBuffer As ITextBuffer _
) As ITextSnapshot
ITextSnapshot GetMatchingSnapshot(
ITextBuffer textBuffer
)
ITextSnapshot^ GetMatchingSnapshot(
ITextBuffer^ textBuffer
)
abstract GetMatchingSnapshot :
textBuffer:ITextBuffer -> ITextSnapshot
function GetMatchingSnapshot(
textBuffer : ITextBuffer
) : ITextSnapshot
Parameters
- textBuffer
Type: Microsoft.VisualStudio.Text.ITextBuffer
The text buffer.
Return Value
Type: Microsoft.VisualStudio.Text.ITextSnapshot
The snapshot of the text buffer, or nulla null reference (Nothing in Visual Basic) if textBuffer is not a text buffer of this projection buffer.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | textBuffer 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.