共用方式為


ModelItem.IsItemOfType 方法 (TypeIdentifier)

取得值,這個值表示這個項目是否屬於指定的型別,或者實作指定的介面。

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

語法

'宣告
Public Overridable Function IsItemOfType ( _
    typeIdentifier As TypeIdentifier _
) As Boolean
public virtual bool IsItemOfType(
    TypeIdentifier typeIdentifier
)
public:
virtual bool IsItemOfType(
    TypeIdentifier typeIdentifier
)
abstract IsItemOfType : 
        typeIdentifier:TypeIdentifier -> bool 
override IsItemOfType : 
        typeIdentifier:TypeIdentifier -> bool 
public function IsItemOfType(
    typeIdentifier : TypeIdentifier
) : boolean

參數

傳回值

型別:System.Boolean
如果此項目屬於指定型別,或是此項目實作了指定的介面,則為 true,否則為 false。

.NET Framework 安全性

請參閱

參考

ModelItem 類別

IsItemOfType 多載

Microsoft.Windows.Design.Model 命名空間

其他資源

WPF 設計工具擴充性架構

編輯模型架構