Source.TrimSpan(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.
Adjusts the given span to skip leading and trailing whitespace.
public:
void TrimSpan(Microsoft::VisualStudio::TextManager::Interop::TextSpan % span);
public:
void TrimSpan(Microsoft::VisualStudio::TextManager::Interop::TextSpan & span);
void TrimSpan(Microsoft::VisualStudio::TextManager::Interop::TextSpan & span);
public void TrimSpan (ref Microsoft.VisualStudio.TextManager.Interop.TextSpan span);
member this.TrimSpan : TextSpan -> unit
Public Sub TrimSpan (ByRef span As TextSpan)
Parameters
- span
- TextSpan
[in, out] A TextSpan object representing the span to modify. Returns the adjusted span.
Remarks
This method examines the given span and adjusts the start and end points to skip all whitespace from the beginning and the end of the span, returning the extent of the modified span. This is used primarily by the UncommentSpan method before uncommenting a block comment.