Språk

AutomationElement.IsRequiredForFormProperty Fält

Definition

Identifierar egenskapen IsRequiredForForm .

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 

Fältvärde

Exempel

I följande exempel hämtas det aktuella värdet för egenskapen. Standardvärdet returneras om elementet inte tillhandahåller något.

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

Kommentarer

Den här identifieraren används av UI Automation klientprogram. UI Automation providers bör använda motsvarande identifierare i AutomationElementIdentifiers.

Den här egenskapen kan också hämtas från Current egenskaperna eller Cached .

Returvärdet för den här egenskapen är av typen Booleanoch standardvärdet är false.

Gäller för

Se även