共用方式為


NewItemTypesAttribute.Types 屬性

取得 Type 物件清單,而這個屬性會將這些物件宣告為有效的新項目型別。

命名空間:  Microsoft.Windows.Design.PropertyEditing
組件:  Microsoft.Windows.Design.Interaction (在 Microsoft.Windows.Design.Interaction.dll 中)

語法

'宣告
Public ReadOnly Property Types As IEnumerable(Of Type)
    Get
public IEnumerable<Type> Types { get; }
public:
property IEnumerable<Type^>^ Types {
    IEnumerable<Type^>^ get ();
}
member Types : IEnumerable<Type>
function get Types () : IEnumerable<Type>

屬性值

型別:System.Collections.Generic.IEnumerable<Type>
這個屬性保證成為有效之新項目型別的型別列舉。

備註

這個屬性傳回的物件保證不是 nullNull 參照 (即 Visual Basic 中的 Nothing)。

.NET Framework 安全性

請參閱

參考

NewItemTypesAttribute 類別

Microsoft.Windows.Design.PropertyEditing 命名空間

NewItemFactory

其他資源

屬性編輯架構

WPF 設計工具擴充性