Workspace.OnDocumentTextChanged 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
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
- mode
- PreservationMode