AutomationPeer.IsRequiredForForm 方法

定義

取得值,這個值表示與此對等個體關聯的項目在表單上是否為必填項。Gets a value that indicates whether the element that is associated with this peer must be completed on a form.

public:
 bool IsRequiredForForm();
public bool IsRequiredForForm ();
member this.IsRequiredForForm : unit -> bool
Public Function IsRequiredForForm () As Boolean

傳回

Boolean

如果項目為必填項則為 true,否則為 falsetrue if the element must be completed; otherwise, false.

例外狀況

目前正在公開呼叫此方法。A public call to this method is currently in progress.

適用於

另請參閱