IEditorFormatMapService, interface
Recherche une carte de mise en forme pour un rôle de vue donné.
Espace de noms : Microsoft.VisualStudio.Text.Classification
Assembly : Microsoft.VisualStudio.Text.UI.Wpf (dans Microsoft.VisualStudio.Text.UI.Wpf.dll)
Syntaxe
'Déclaration
Public Interface IEditorFormatMapService
public interface IEditorFormatMapService
public interface class IEditorFormatMapService
type IEditorFormatMapService = interface end
public interface IEditorFormatMapService
Méthodes
Nom | Description | |
---|---|---|
GetEditorFormatMap(String) | Obtient une IEditorFormatMap pour une catégorie d'apparence donnée. | |
GetEditorFormatMap(ITextView) | Obtient une IEditorFormatMap appropriée pour une vue de texte donnée.Cet objet est susceptible d'être partagé entre plusieurs vues de texte. |
Début
Notes
C'est un composant MEF, et doit être importée comme suit :
[Import]
internal IEditorFormatMapService editorMaps = null;
Exemples
Pour obtenir un exemple de la façon d'utiliser ce service, consultez Procédure pas - à - pas : personnaliser l'affichage de texte.