共用方式為


AutomationProperties.SetIsRequiredForForm(DependencyObject, Boolean) 方法

定義

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

適用於