共用方式為


Workspace.OnDocumentTextChanged 方法

定義

多載

OnDocumentTextChanged(Document)

覆寫這個方法,以在檔文字變更時立即採取行動,而不是等待對應的工作區變更事件以非同步方式引發。

OnDocumentTextChanged(DocumentId, SourceText, PreservationMode)

在主環境中更新檔的文字時,呼叫這個方法。

OnDocumentTextChanged(Document)

Source:
Workspace.cs
Source:
Workspace.cs
Source:
Workspace.cs
Source:
Workspace.cs
Source:
Workspace.cs
Source:
Workspace.cs
Source:
Workspace.cs
Source:
Workspace.cs
Source:
Workspace.cs
Source:
Workspace.cs
Source:
Workspace.cs
Source:
Workspace.cs
Source:
Workspace.cs
Source:
Workspace.cs
Source:
Workspace.cs
Source:
Workspace.cs
Source:
Workspace.cs
Source:
Workspace.cs
Source:
Workspace.cs
Source:
Workspace.cs
Source:
Workspace.cs
Source:
Workspace.cs
Source:
Workspace.cs

覆寫這個方法,以在檔文字變更時立即採取行動,而不是等待對應的工作區變更事件以非同步方式引發。

protected:
 virtual void OnDocumentTextChanged(Microsoft::CodeAnalysis::Document ^ document);
protected virtual void OnDocumentTextChanged (Microsoft.CodeAnalysis.Document document);
abstract member OnDocumentTextChanged : Microsoft.CodeAnalysis.Document -> unit
override this.OnDocumentTextChanged : Microsoft.CodeAnalysis.Document -> unit
Protected Overridable Sub OnDocumentTextChanged (document As Document)

參數

document
Document

適用於

OnDocumentTextChanged(DocumentId, SourceText, PreservationMode)

Source:
Workspace.cs
Source:
Workspace.cs
Source:
Workspace.cs
Source:
Workspace.cs
Source:
Workspace.cs
Source:
Workspace.cs
Source:
Workspace.cs
Source:
Workspace.cs
Source:
Workspace.cs
Source:
Workspace.cs
Source:
Workspace.cs
Source:
Workspace.cs
Source:
Workspace.cs
Source:
Workspace.cs
Source:
Workspace.cs
Source:
Workspace.cs
Source:
Workspace.cs
Source:
Workspace.cs
Source:
Workspace.cs
Source:
Workspace.cs
Source:
Workspace.cs
Source:
Workspace.cs
Source:
Workspace.cs

在主環境中更新檔的文字時,呼叫這個方法。

protected public:
 void OnDocumentTextChanged(Microsoft::CodeAnalysis::DocumentId ^ documentId, Microsoft::CodeAnalysis::Text::SourceText ^ newText, Microsoft::CodeAnalysis::PreservationMode mode);
protected internal void OnDocumentTextChanged (Microsoft.CodeAnalysis.DocumentId documentId, Microsoft.CodeAnalysis.Text.SourceText newText, Microsoft.CodeAnalysis.PreservationMode mode);
member this.OnDocumentTextChanged : Microsoft.CodeAnalysis.DocumentId * Microsoft.CodeAnalysis.Text.SourceText * Microsoft.CodeAnalysis.PreservationMode -> unit
Protected Friend Sub OnDocumentTextChanged (documentId As DocumentId, newText As SourceText, mode As PreservationMode)

參數

documentId
DocumentId
newText
SourceText

適用於