Share via


KeyboardNavigation.GetAcceptsReturn(DependencyObject) 方法

定义

获取指定元素的 AcceptsReturn 附加属性值。

public:
 static bool GetAcceptsReturn(System::Windows::DependencyObject ^ element);
[System.Windows.AttachedPropertyBrowsableForType(typeof(System.Windows.DependencyObject))]
public static bool GetAcceptsReturn (System.Windows.DependencyObject element);
[<System.Windows.AttachedPropertyBrowsableForType(typeof(System.Windows.DependencyObject))>]
static member GetAcceptsReturn : System.Windows.DependencyObject -> bool
Public Shared Function GetAcceptsReturn (element As DependencyObject) As Boolean

参数

element
DependencyObject

从中读取附加属性的元素。

返回

AcceptsReturn 属性的值。

属性

例外

elementnull

适用于

另请参阅