ProvideEditorExtensionAttribute.EditorFactoryNotify Propriété

Définition

Détermine si l'extension doit être inscrite avec une valeur de Registre EditorFactoryNotify, qui associe une extension de fichier à une fabrique d'éditeur spécifique.

public:
 property bool EditorFactoryNotify { bool get(); void set(bool value); };
public:
 property bool EditorFactoryNotify { bool get(); void set(bool value); };
public bool EditorFactoryNotify { get; set; }
member this.EditorFactoryNotify : bool with get, set
Public Property EditorFactoryNotify As Boolean

Valeur de propriété

Boolean

true si la valeur de Registre EditorFactoryNotify est créée, sinon false (valeur par défaut).

Exemples

L’exemple suivant associe l’extension de fichier. myext au GUID de l’éditeur de test, afin que le système de projet ouvre le fichier avec cet éditeur :

[ProvideEditorExtensionAttribute(typeof(TestEditorFactory), ".myext", 32,  
                    ProjectGuid = "{A2FE74E1-B743-11d0-AE1A-00A0C90FFFC3}",  
                    NameResourceID = 105,  
                    DefaultName = "Test Editor",  
                    EditorFactoryNotify = true)]]  

Remarques

Si cette propriété a la valeur true , les projets \<ProjectGuid > \Extensions \<ExtensionString > \EditorFactoryNotify valeur pointe vers la fabrique d’éditeur qui doit gérer le fichier. Le constructeur ProvideEditorExtensionAttribute affecte par défaut la valeur à false .

S’applique à