Share via


ProvideEditorFactoryAttribute 类

定义

此属性声明 VSPackage 提供编辑器工厂。

public ref class ProvideEditorFactoryAttribute sealed : Microsoft::VisualStudio::Shell::RegistrationAttribute
public ref class ProvideEditorFactoryAttribute sealed : Microsoft::VisualStudio::Shell::RegistrationAttribute
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=true)]
public sealed class ProvideEditorFactoryAttribute : Microsoft.VisualStudio.Shell.RegistrationAttribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=true)>]
type ProvideEditorFactoryAttribute = class
    inherit RegistrationAttribute
Public NotInheritable Class ProvideEditorFactoryAttribute
Inherits RegistrationAttribute
继承
ProvideEditorFactoryAttribute
属性

注解

多个编辑器工厂可以与同一 VSPackage 相关联。

构造函数

ProvideEditorFactoryAttribute(Type, Int16)

此构造函数创建一个新 ProvideEditorFactoryAttribute 对象。

ProvideEditorFactoryAttribute(Type, Int16, Boolean)

此属性声明 VSPackage 提供编辑器工厂。

属性

CommonPhysicalViewAttributes

获取或设置编辑器支持的物理视图的默认值 __VSPHYSICALVIEWATTRIBUTES 。 未在 PhysicalViewAttributes 子键中列出的任何物理视图都使用这些属性。

DeferUntilIntellisenseIsReady

此属性声明 VSPackage 提供编辑器工厂。

FactoryType

获取编辑器工厂类型。

NameResourceID

获取资源 ID。

TrustLevel

获取或设置编辑器的信任级别。

TypeId

重写 TypeID 属性,使 RegistrationAttribute 派生类能够与 System.ComponentModel.TypeDescriptor.GetAttributes 一起使用 (...) 。仅当派生自此属性的属性需要对可应用于类的实例使用更好的控件时,它才必须重写此属性。

(继承自 RegistrationAttribute)

方法

GetPackageRegKeyPath(Guid)

获取相对于 VSPackage 的应用程序) 注册表根目录 (注册表路径。

(继承自 RegistrationAttribute)
Register(RegistrationAttribute+RegistrationContext)

调用以便向给定的上下文注册此属性。

Unregister(RegistrationAttribute+RegistrationContext)

调用 以在给定上下文中取消注册此属性。

适用于