TextSpanHelper.EndsBeforeEndOf(TextSpan, TextSpan) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Determines whether the first span ends before the end of the second span.
public:
static bool EndsBeforeEndOf(Microsoft::VisualStudio::TextManager::Interop::TextSpan span1, Microsoft::VisualStudio::TextManager::Interop::TextSpan span2);
public:
static bool EndsBeforeEndOf(Microsoft::VisualStudio::TextManager::Interop::TextSpan span1, Microsoft::VisualStudio::TextManager::Interop::TextSpan span2);
static bool EndsBeforeEndOf(Microsoft::VisualStudio::TextManager::Interop::TextSpan span1, Microsoft::VisualStudio::TextManager::Interop::TextSpan span2);
public static bool EndsBeforeEndOf (Microsoft.VisualStudio.TextManager.Interop.TextSpan span1, Microsoft.VisualStudio.TextManager.Interop.TextSpan span2);
static member EndsBeforeEndOf : Microsoft.VisualStudio.TextManager.Interop.TextSpan * Microsoft.VisualStudio.TextManager.Interop.TextSpan -> bool
Public Shared Function EndsBeforeEndOf (span1 As TextSpan, span2 As TextSpan) As Boolean
Parameters
Returns
Returns true
if the end of span1
is less than or equal to the end of span2
; otherwise, returns false
.
Remarks
This method compares only the end points of the spans. Therefore, this test does not mean that the two spans intersect, only that the end of the first span occurs at or before the end of the second span.