IEditorFormatMapService-Schnittstelle
Sucht eine Formatierungszuordnung für eine angegebene Ansichtsrolle.
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
Methoden
Name | Beschreibung | |
---|---|---|
GetEditorFormatMap(String) | Ruft eine IEditorFormatMap für eine angegebene Kategorie Darstellung ab. | |
GetEditorFormatMap(ITextView) | Ruft eine passende IEditorFormatMap für eine angegebene Textansicht ab.Dieses Objekt wird wahrscheinlich von verschiedenen Textansichten gemeinsam verwendet. |
Zum Seitenanfang
Hinweise
Dies ist ein MEF-Komponenten-Teil importiert werden, und es sollte wie folgt aussehen:
[Import]
internal IEditorFormatMapService editorMaps = null;
Beispiele
Ein Beispiel für die Verwendung dieses Dienstes finden Sie unter Exemplarische Vorgehensweise: Die Text-Ansicht anpassenverwendet.