語言

KeyboardNavigation.SetAcceptsReturn(DependencyObject, Boolean) 方法

定義

設定指定元素附加屬性的值 AcceptsReturn 。

public:
 static void SetAcceptsReturn(System::Windows::DependencyObject ^ element, bool enabled);
public static void SetAcceptsReturn(System.Windows.DependencyObject element, bool enabled);
static member SetAcceptsReturn : System.Windows.DependencyObject * bool -> unit
Public Shared Sub SetAcceptsReturn (element As DependencyObject, enabled As Boolean)

參數

element
DependencyObject

要將附加屬性寫入的元素。

enabled
Boolean

要設定的房產價值。

例外狀況

element 是 null。

適用於

另請參閱