Workspace.ApplyDocumentTextChanged(DocumentId, SourceText) 方法

定义

调用此方法以更改文档的文本。

重写此方法以实现更改文档文本的功能。

protected:
 virtual void ApplyDocumentTextChanged(Microsoft::CodeAnalysis::DocumentId ^ id, Microsoft::CodeAnalysis::Text::SourceText ^ text);
protected virtual void ApplyDocumentTextChanged (Microsoft.CodeAnalysis.DocumentId id, Microsoft.CodeAnalysis.Text.SourceText text);
abstract member ApplyDocumentTextChanged : Microsoft.CodeAnalysis.DocumentId * Microsoft.CodeAnalysis.Text.SourceText -> unit
override this.ApplyDocumentTextChanged : Microsoft.CodeAnalysis.DocumentId * Microsoft.CodeAnalysis.Text.SourceText -> unit
Protected Overridable Sub ApplyDocumentTextChanged (id As DocumentId, text As SourceText)

参数

text
SourceText

适用于