AutomationProperties.SetIsRequiredForForm(DependencyObject, Boolean) 方法

定义

设置指定 DependencyObjectIsRequiredForForm 附加属性。

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

参数

element
DependencyObject

要在其上设置属性的 DependencyObject

value
Boolean

要设置的值;如果需要在窗体上填出该元素,则为 true,否则为 false

适用于

另请参阅