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