Freigeben über


Source.TrimSpan(TextSpan) Method

Definition

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.

Applies to