Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Looks up a format map for a given view role.
Namespace: Microsoft.VisualStudio.Text.Classification
Assembly: Microsoft.VisualStudio.Text.UI.Wpf (in Microsoft.VisualStudio.Text.UI.Wpf.dll)
Syntax
'Declaration
Public Interface IEditorFormatMapService
public interface IEditorFormatMapService
public interface class IEditorFormatMapService
type IEditorFormatMapService = interface end
public interface IEditorFormatMapService
Methods
| Name | Description | |
|---|---|---|
![]() |
GetEditorFormatMap(String) | Get a IEditorFormatMap for a given appearance category. |
![]() |
GetEditorFormatMap(ITextView) | Gets an IEditorFormatMap appropriate for a given text view. This object is likely to be shared among several text views. |
Top
Remarks
This is a MEF component part, and should be imported as follows:
[Import]
internal IEditorFormatMapService editorMaps = null;
Examples
For an example of how to use this service, see Walkthrough: Customizing the Text View.
.gif)