Udostępnij za pośrednictwem


Workspace.OnDocumentTextChanged Method

Definition

Overloads

OnDocumentTextChanged(Document)

Override this method to act immediately when the text of a document has changed, as opposed to waiting for the corresponding workspace changed event to fire asynchronously.

OnDocumentTextChanged(DocumentId, SourceText, PreservationMode)

Call this method when the text of a document is updated in the host environment.

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

Override this method to act immediately when the text of a document has changed, as opposed to waiting for the corresponding workspace changed event to fire asynchronously.

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)

Parameters

document
Document

Applies to

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

Call this method when the text of a document is updated in the host environment.

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)

Parameters

documentId
DocumentId
newText
SourceText

Applies to