Udostępnij za pośrednictwem


NewItemTypesAttribute.FactoryType Property

Gets or sets the factory type associated with this attribute.

Namespace:  Microsoft.Windows.Design.PropertyEditing
Assembly:  Microsoft.Windows.Design (in Microsoft.Windows.Design.dll)

Syntax

'Declaration
Public Property FactoryType As Type
'Usage
Dim instance As NewItemTypesAttribute 
Dim value As Type 

value = instance.FactoryType

instance.FactoryType = value
public Type FactoryType { get; set; }
public:
property Type^ FactoryType {
    Type^ get ();
    void set (Type^ value);
}
public function get FactoryType () : Type 
public function set FactoryType (value : Type)

Property Value

Type: System.Type
A Type object that represents the type associated with this attribute.

Exceptions

Exception Condition
ArgumentException

type does not derive from NewItemFactory.

ArgumentNullException

type is nulla null reference (Nothing in Visual Basic).

Remarks

The Type object is guaranteed to derive from NewItemFactory.

.NET Framework Security

See Also

Reference

NewItemTypesAttribute Class

NewItemTypesAttribute Members

Microsoft.Windows.Design.PropertyEditing Namespace

NewItemFactory

Other Resources

Property Editing Architecture

WPF Designer Extensibility