AutomationProperties.GetItemType(DependencyObject) 方法

定义

获取指定 ItemTypeDependencyObject 附加属性。

public:
 static System::String ^ GetItemType(System::Windows::DependencyObject ^ element);
public static string GetItemType (System.Windows.DependencyObject element);
static member GetItemType : System.Windows.DependencyObject -> string
Public Shared Function GetItemType (element As DependencyObject) As String

参数

element
DependencyObject

要检查的 DependencyObject

返回

给定元素的 ItemType

适用于

另请参阅