VirtualSnapshotSpan.Overlap Method
Returns the overlap with the specified virtual span.
Namespace: Microsoft.VisualStudio.Text
Assembly: Microsoft.VisualStudio.Text.Logic (in Microsoft.VisualStudio.Text.Logic.dll)
Syntax
'宣言
Public Function Overlap ( _
virtualSpan As VirtualSnapshotSpan _
) As Nullable(Of VirtualSnapshotSpan)
public Nullable<VirtualSnapshotSpan> Overlap(
VirtualSnapshotSpan virtualSpan
)
public:
Nullable<VirtualSnapshotSpan> Overlap(
VirtualSnapshotSpan virtualSpan
)
member Overlap :
virtualSpan:VirtualSnapshotSpan -> Nullable<VirtualSnapshotSpan>
public function Overlap(
virtualSpan : VirtualSnapshotSpan
) : Nullable<VirtualSnapshotSpan>
Parameters
- virtualSpan
Type: Microsoft.VisualStudio.Text.VirtualSnapshotSpan
The virtual span.
Return Value
Type: System.Nullable<VirtualSnapshotSpan>
The overlap of the spans, or nulla null reference (Nothing in Visual Basic) if the spans do not overlap.
.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.