共用方式為


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

適用於