TextSpanHelper.IsSameSpan(TextSpan, TextSpan) Method

Definition

Determines whether two spans are the same.

public:
 static bool IsSameSpan(Microsoft::VisualStudio::TextManager::Interop::TextSpan span1, Microsoft::VisualStudio::TextManager::Interop::TextSpan span2);
public:
 static bool IsSameSpan(Microsoft::VisualStudio::TextManager::Interop::TextSpan span1, Microsoft::VisualStudio::TextManager::Interop::TextSpan span2);
 static bool IsSameSpan(Microsoft::VisualStudio::TextManager::Interop::TextSpan span1, Microsoft::VisualStudio::TextManager::Interop::TextSpan span2);
public static bool IsSameSpan (Microsoft.VisualStudio.TextManager.Interop.TextSpan span1, Microsoft.VisualStudio.TextManager.Interop.TextSpan span2);
static member IsSameSpan : Microsoft.VisualStudio.TextManager.Interop.TextSpan * Microsoft.VisualStudio.TextManager.Interop.TextSpan -> bool
Public Shared Function IsSameSpan (span1 As TextSpan, span2 As TextSpan) As Boolean

Parameters

span1
TextSpan

[in] The first TextSpan object.

span2
TextSpan

[in] The second TextSpan object.

Returns

Returns true if the start of span1 equals the start of span2 and the end of span1 equals the end of span2; otherwise, returns false.

Applies to