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
您要設定為父項目之項目的型別
- gestureData
型別:Microsoft.Windows.Design.Interaction.GestureData
筆勢資料,可用於判斷開始項目和搜尋的位置。
傳回值
型別:Microsoft.Windows.Design.Model.ModelItem
可接受型別為 childType 之項目的項目,如果找不到適合的父代則為 nullNull 參照 (即 Visual Basic 中的 Nothing)。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。
請參閱
參考
Microsoft.Windows.Design.Model 命名空間