See also:
NTier Windows Forms Framework Home
NTier Framework API reference
Assembly: NTier.Design (in NTier.Design.dll) Version: 1.0.0.0
NTier Windows Forms Framework Home
NTier Framework API reference
An editor for selecting a Type object in a designer using NTier intellisense.
To use this editor:
- Apply [Editor(typeof(TypeValueIntellisenseEditor))] to the property this editor is applied to.
- Apply [TypeConverter(DTypeTypeConverter)] to the property this editor is applied to, if the property's return type is Type and not String.
- Apply [DesignerSerializer(typeof(DTypeFixCodeDomSerializer), typeof(CodeDomSerializer))]
to the class that contains the property this editor is applied to, if you need the Type
object serialized to the component.
- Apply [TypeValueIntellisenseEditorSubtypeFilterAttribute(typeof(Type1), typeof(Type2)..)]
to the property this editor is applied to if you want to filter out which types you want
to include in the auto-list. The types are a list of base types or interfaces for which the
auto-list is generated for.
Types are populated into the auto list by using:
- EnvDTE.Reference classes are used to determine the references for the current projects.
- The ITypeResolutionService, if available is used for types outside the current solution.
If ITypeResolutionService isn't available, normal .net types are loaded directly, which
will cause assemblies to be loaded.
- EnvDTE is used to get type information for types within the current solution. Normal .net
types are not used in this case because the developer may have uncompiled changes.
Namespace: NTier.ComponentModel.Design- Apply [Editor(typeof(TypeValueIntellisenseEditor))] to the property this editor is applied to.
- Apply [TypeConverter(DTypeTypeConverter)] to the property this editor is applied to, if the property's return type is Type and not String.
- Apply [DesignerSerializer(typeof(DTypeFixCodeDomSerializer), typeof(CodeDomSerializer))]
to the class that contains the property this editor is applied to, if you need the Type
object serialized to the component.
- Apply [TypeValueIntellisenseEditorSubtypeFilterAttribute(typeof(Type1), typeof(Type2)..)]
to the property this editor is applied to if you want to filter out which types you want
to include in the auto-list. The types are a list of base types or interfaces for which the
auto-list is generated for.
Types are populated into the auto list by using:
- EnvDTE.Reference classes are used to determine the references for the current projects.
- The ITypeResolutionService, if available is used for types outside the current solution.
If ITypeResolutionService isn't available, normal .net types are loaded directly, which
will cause assemblies to be loaded.
- EnvDTE is used to get type information for types within the current solution. Normal .net
types are not used in this case because the developer may have uncompiled changes.
Assembly: NTier.Design (in NTier.Design.dll) Version: 1.0.0.0
Syntax
C# |
---|
public class TypeValueIntellisenseEditor : UITypeEditorWithAutoList |
Visual Basic |
---|
Public Class TypeValueIntellisenseEditor Inherits UITypeEditorWithAutoList |
Visual C++ |
---|
public ref class TypeValueIntellisenseEditor : public UITypeEditorWithAutoList |
Inheritance Hierarchy
System..::..Object
System.Drawing.Design..::..UITypeEditor
NTier.Design..::..UITypeEditorWithAutoList
NTier.ComponentModel.Design..::..TypeValueIntellisenseEditor
System.Drawing.Design..::..UITypeEditor
NTier.Design..::..UITypeEditorWithAutoList
NTier.ComponentModel.Design..::..TypeValueIntellisenseEditor