Span.Overlap Method
Gets the overlap with the specified span.
Namespace: Microsoft.VisualStudio.Text
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
Syntax
声明
Public Function Overlap ( _
span As Span _
) As Nullable(Of Span)
public Nullable<Span> Overlap(
Span span
)
public:
Nullable<Span> Overlap(
Span span
)
member Overlap :
span:Span -> Nullable<Span>
public function Overlap(
span : Span
) : Nullable<Span>
Parameters
- span
Type: Microsoft.VisualStudio.Text.Span
The span.
Return Value
Type: System.Nullable<Span>
The overlap of the spans, or nulla null reference (Nothing in Visual Basic) if they do not overlap.
Remarks
Two spans overlap if they have positions in common and neither is 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.