Compartilhar via


TextDocument.TryGetText(SourceText) Método

Definição

Obtenha o texto atual do documento se ele já estiver carregado e disponível.

public:
 bool TryGetText([Runtime::InteropServices::Out] Microsoft::CodeAnalysis::Text::SourceText ^ % text);
public bool TryGetText (out Microsoft.CodeAnalysis.Text.SourceText text);
public bool TryGetText (out Microsoft.CodeAnalysis.Text.SourceText? text);
member this.TryGetText : SourceText -> bool
Public Function TryGetText (ByRef text As SourceText) As Boolean

Parâmetros

text
SourceText

Retornos

Aplica-se a