DocumentFilter.FromDocumentType Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
FromDocumentType(DocumentType) |
Creates a DocumentFilter from a document type. |
FromDocumentType(DocumentTypeConfiguration) |
Creates a DocumentFilter from a document type. |
FromDocumentType(DocumentType)
Creates a DocumentFilter from a document type.
public static Microsoft.VisualStudio.Extensibility.DocumentFilter FromDocumentType (Microsoft.VisualStudio.Extensibility.Editor.DocumentType documentType);
static member FromDocumentType : Microsoft.VisualStudio.Extensibility.Editor.DocumentType -> Microsoft.VisualStudio.Extensibility.DocumentFilter
Public Shared Function FromDocumentType (documentType As DocumentType) As DocumentFilter
Parameters
- documentType
- DocumentType
The type of a document. Document type is frequently used to target specific languages.
Returns
The DocumentFilter.
Applies to
FromDocumentType(DocumentTypeConfiguration)
Creates a DocumentFilter from a document type.
public static Microsoft.VisualStudio.Extensibility.DocumentFilter FromDocumentType (Microsoft.VisualStudio.Extensibility.Editor.DocumentTypeConfiguration documentType);
static member FromDocumentType : Microsoft.VisualStudio.Extensibility.Editor.DocumentTypeConfiguration -> Microsoft.VisualStudio.Extensibility.DocumentFilter
Public Shared Function FromDocumentType (documentType As DocumentTypeConfiguration) As DocumentFilter
Parameters
- documentType
- DocumentTypeConfiguration
The type of a document. Document type is frequently used to target specific languages.
Returns
The DocumentFilter.