Udostępnij za pośrednictwem


Metoda Source.CommentLines —

Komentarze zakresu źródła przy użyciu linii komentarze.

Przestrzeń nazw:  Microsoft.VisualStudio.Package
Zestawy:   Microsoft.VisualStudio.Package.LanguageService.10.0 (w Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
  Microsoft.VisualStudio.Package.LanguageService (w Microsoft.VisualStudio.Package.LanguageService.dll)
  Microsoft.VisualStudio.Package.LanguageService.11.0 (w Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.9.0 (w Microsoft.VisualStudio.Package.LanguageService.9.0.dll)

Składnia

'Deklaracja
Public Overridable Function CommentLines ( _
    span As TextSpan, _
    lineComment As String _
) As TextSpan
public virtual TextSpan CommentLines(
    TextSpan span,
    string lineComment
)

Parametry

  • lineComment
    Typ: System.String
    Ciąg, który określa wiersz komentarza znaku lub znaków.

Wartość zwracana

Typ: Microsoft.VisualStudio.TextManager.Interop.TextSpan
Zwraca TextSpan obiekt obejmujący cały blok komentarze z przydatnymi tym komentarz dodanego wiersza start ciąg.

Uwagi

Wszystkie wiersze w prefaces span z ciągu wiersza komentarza.

Metody podstawowej pomija wiodące w każdym wierszu przed wstawieniem ciąg wiersza komentarza.Metoda ta jest zwykle wywoływana z CommentSpan metody.

Zabezpieczenia programu .NET Framework

Zobacz też

Informacje

Source Klasa

Przestrzeń nazw Microsoft.VisualStudio.Package