CodeFixContext.TextDocument Property

Definition

TextDocument corresponding to the Span to fix. This property should be used instead of Document property by code fixes that support non-source documents by providing a non-default value for DocumentKinds

public Microsoft.CodeAnalysis.TextDocument TextDocument { get; }

Property Value

Applies to

Product Versions
Roslyn 4.5.0, 4.6.0, 4.7.0, 4.8.0, 4.9.2, 4.12.2, 4.13.0