Condividi tramite


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

'Dichiarazione
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

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

See Also

Reference

Span Structure

Microsoft.VisualStudio.Text Namespace