为指定的子级类型查找可行的父级。
命名空间:  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 命名空间