Share via


Source.TrimSpan Method

Adjusts the given span to skip leading and trailing whitespace.

Namespace:  Microsoft.VisualStudio.Package
Assemblies:   Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
  Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)

Syntax

‘선언
Public Sub TrimSpan ( _
    ByRef span As TextSpan _
)
‘사용 방법
Dim instance As Source
Dim span As TextSpan

instance.TrimSpan(span)
public void TrimSpan(
    ref TextSpan span
)
public:
void TrimSpan(
    TextSpan% span
)
member TrimSpan : 
        span:TextSpan byref -> unit 
public function TrimSpan(
    span : TextSpan
)

Parameters

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.

.NET Framework Security

See Also

Reference

Source Class

Source Members

Microsoft.VisualStudio.Package Namespace