共用方式為


ModelItem.IsItemOfType 方法 (Type)

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

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

語法

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

參數

  • type
    型別:System.Type
    要測試的型別或介面。

傳回值

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

.NET Framework 安全性

請參閱

參考

ModelItem 類別

IsItemOfType 多載

Microsoft.Windows.Design.Model 命名空間

其他資源

WPF 設計工具擴充性架構

編輯模型架構