Udostępnij za pośrednictwem


NewItemTypesAttribute.Types Property

Gets a list of Type objects that this attribute declares as being valid new item types.

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

Syntax

'Declaration
Public ReadOnly Property Types As IEnumerable(Of Type)
'Usage
Dim instance As NewItemTypesAttribute 
Dim value As IEnumerable(Of Type)

value = instance.Types
public IEnumerable<Type> Types { get; }
public:
property IEnumerable<Type^>^ Types {
    IEnumerable<Type^>^ get ();
}
public function get Types () : IEnumerable<Type>

Property Value

Type: System.Collections.Generic.IEnumerable<Type>
An enumeration of the types that this attribute guarantees to be valid new item types.

Remarks

The object returned by this property is guaranteed to be non-nulla null reference (Nothing in Visual Basic).

.NET Framework Security

See Also

Reference

NewItemTypesAttribute Class

NewItemTypesAttribute Members

Microsoft.Windows.Design.PropertyEditing Namespace

NewItemFactory

Other Resources

Property Editing Architecture

WPF Designer Extensibility