AutomationProperties.SetIsRequiredForForm(DependencyObject, Boolean) 方法

定义

设置指定 DependencyObjectAutomationProperties.IsRequiredForForm 附加属性的值。

public:
 static void SetIsRequiredForForm(DependencyObject ^ element, bool value);
 static void SetIsRequiredForForm(DependencyObject const& element, bool const& value);
public static void SetIsRequiredForForm(DependencyObject element, bool value);
function setIsRequiredForForm(element, value)
Public Shared Sub SetIsRequiredForForm (element As DependencyObject, value As Boolean)

参数

element
DependencyObject

要为其设置 属性的 DependencyObject

value
Boolean

bool

如果 指定需要在窗体上填写元素,则为 true;否则为 false

适用于