Gets the span of the previous sibling syntactic element of the specified snapshot span.
Assembly: Microsoft.VisualStudio.Text.Logic (in Microsoft.VisualStudio.Text.Logic.dll)
If the specified span has zero length, then the behavior is the same as that of GetSpanOfEnclosing.
If the specified snapshot span covers multiple syntactic elements, then this method returns the span of the previous 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.
- 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.