SnapshotSpan.Overlap Method (Span)
Getss the overlap with the given span.
Namespace: Microsoft.VisualStudio.Text
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
Syntax
'Declaración
Public Function Overlap ( _
simpleSpan As Span _
) As Nullable(Of SnapshotSpan)
public Nullable<SnapshotSpan> Overlap(
Span simpleSpan
)
public:
Nullable<SnapshotSpan> Overlap(
Span simpleSpan
)
member Overlap :
simpleSpan:Span -> Nullable<SnapshotSpan>
public function Overlap(
simpleSpan : Span
) : Nullable<SnapshotSpan>
Parameters
- simpleSpan
Type: Microsoft.VisualStudio.Text.Span
The span to check.
Return Value
Type: System.Nullable<SnapshotSpan>
The overlap of the spans, or null if they do not overlap.
Remarks
Two spans overlap if they have positions in common and are not empty. Empty spans do not overlap with any other span.
.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.