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