Method ReplaceDocument
- Namespace
- Alternet.Syntax.Parsers.Roslyn.CodeCompletion
- Assembly
- Alternet.Syntax.Parsers.Roslyn.v10.dll
ReplaceDocument(DocumentId, string)
Adds a new document or replaces existing document with specified settings.
public bool ReplaceDocument(DocumentId documentId, string text)
Parameters
documentIdDocumentIdId of the
Microsoft.CodeAnalysis.Document.textstringNew
Microsoft.CodeAnalysis.Documenttext.
Returns
- bool
True if document has been updated; otherwise false.
ReplaceDocument(DocumentId, SourceText)
Adds a new document or replaces existing document with specified settings.
public bool ReplaceDocument(DocumentId documentId, SourceText text)
Parameters
documentIdDocumentIdId of the
Microsoft.CodeAnalysis.Document.textSourceTextNew
Microsoft.CodeAnalysis.Documenttext.
Returns
- bool
True if document has been updated; otherwise false.