แก้ไข

แชร์ผ่าน


AutomationElement.IsRequiredForFormProperty Field

Definition

Identifies the IsRequiredForForm property.

public: static initonly System::Windows::Automation::AutomationProperty ^ IsRequiredForFormProperty;
public static readonly System.Windows.Automation.AutomationProperty IsRequiredForFormProperty;
 staticval mutable IsRequiredForFormProperty : System.Windows.Automation.AutomationProperty
Public Shared ReadOnly IsRequiredForFormProperty As AutomationProperty 

Field Value

Examples

The following example retrieves the current value of the property. The default value is returned if the element does not provide one.

bool isRequired = (bool)
   autoElement.GetCurrentPropertyValue(AutomationElement.IsRequiredForFormProperty);
Dim isRequired As Boolean = _
    CBool(autoElement.GetCurrentPropertyValue(AutomationElement.IsRequiredForFormProperty))

Remarks

This identifier is used by UI Automation client applications. UI Automation providers should use the equivalent identifier in AutomationElementIdentifiers.

This property can also be retrieved from the Current or Cached properties.

The return value for this property is of type Boolean, and the default value is false.

Applies to

See also