ITextStructureNavigator.GetSpanOfNextSibling Method
Gets the span of the next sibling syntactic element of the specified snapshot span.
Namespace: Microsoft.VisualStudio.Text.Operations
Assembly: Microsoft.VisualStudio.Text.Logic (in Microsoft.VisualStudio.Text.Logic.dll)
Syntax
‘선언
Function GetSpanOfNextSibling ( _
activeSpan As SnapshotSpan _
) As SnapshotSpan
SnapshotSpan GetSpanOfNextSibling(
SnapshotSpan activeSpan
)
SnapshotSpan GetSpanOfNextSibling(
SnapshotSpan activeSpan
)
abstract GetSpanOfNextSibling :
activeSpan:SnapshotSpan -> SnapshotSpan
function GetSpanOfNextSibling(
activeSpan : SnapshotSpan
) : SnapshotSpan
Parameters
- activeSpan
Type: Microsoft.VisualStudio.Text.SnapshotSpan
The SnapshotSpan from which to get the span of the next sibling syntactic element.
Return Value
Type: Microsoft.VisualStudio.Text.SnapshotSpan
A SnapshotSpan that represents the next sibling syntactic element.
Remarks
If the snapshot span has zero length, then the behavior is the same as that of GetSpanOfEnclosing.
If the given active span covers multiple syntactic elements, then this method returns the span of the next sibling element.
If the specified snapshot span covers a syntactic element that does not have a sibling element, then the behavior is the same as that of GetSpanOfEnclosing.
.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.