Share via


ModelParent.FindParent 方法 (Type, GestureData)

為指定的子系型別尋找適合的父代。

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

語法

'宣告
Public Shared Function FindParent ( _
    childType As Type, _
    gestureData As GestureData _
) As ModelItem
public static ModelItem FindParent(
    Type childType,
    GestureData gestureData
)
public:
static ModelItem^ FindParent(
    Type^ childType, 
    GestureData^ gestureData
)
static member FindParent : 
        childType:Type * 
        gestureData:GestureData -> ModelItem 
public static function FindParent(
    childType : Type, 
    gestureData : GestureData
) : ModelItem

參數

  • childType
    型別:System.Type
    您要設定為父項目之項目的型別

傳回值

型別:Microsoft.Windows.Design.Model.ModelItem
可接受型別為 childType 之項目的項目,如果找不到適合的父代則為 nullNull 參照 (即 Visual Basic 中的 Nothing)。

.NET Framework 安全性

請參閱

參考

ModelParent 類別

FindParent 多載

Microsoft.Windows.Design.Model 命名空間

其他資源

WPF 設計工具擴充性架構