IEditorOptionsFactoryService, interface

Représente un service qui obtient l'élément IEditorOptions pour une portée spécifiée ou pour la portée globale.

Espace de noms :  Microsoft.VisualStudio.Text.Editor
Assembly :  Microsoft.VisualStudio.Text.Logic (dans Microsoft.VisualStudio.Text.Logic.dll)

Syntaxe

'Déclaration
Public Interface IEditorOptionsFactoryService
public interface IEditorOptionsFactoryService
public interface class IEditorOptionsFactoryService
type IEditorOptionsFactoryService =  interface end
public interface IEditorOptionsFactoryService

Le type IEditorOptionsFactoryService expose les membres suivants.

Propriétés

  Nom Description
Propriété publique GlobalOptions Obtient l'élément IEditorOptions global.

Début

Méthodes

  Nom Description
Méthode publique CreateOptions Crée une nouvelle instance de l'élément IEditorOptions qui n'est liée à aucune portée particulière.
Méthode publique GetOptions Obtient IEditorOptions pour IPropertyOwner.Les propriétés appartiennent aux mémoires tampons et aux vues.Crée de nouvelles options pour la portée si aucune n'a été créée précédemment.

Début

Notes

C'est un composant MEF, et doit être importée comme suit :

[Import] IEditorOptionsFactoryService factory = null;

Voir aussi

Référence

Microsoft.VisualStudio.Text.Editor, espace de noms