AutomationElement.IsTextPatternAvailableProperty Champ
Définition
Identifie la propriété qui indique si le modèle de contrôle TextPattern est disponible sur ce AutomationElement.Identifies the property that indicates whether the TextPattern control pattern is available on this AutomationElement.
public: static initonly System::Windows::Automation::AutomationProperty ^ IsTextPatternAvailableProperty;
public static readonly System.Windows.Automation.AutomationProperty IsTextPatternAvailableProperty;
staticval mutable IsTextPatternAvailableProperty : System.Windows.Automation.AutomationProperty
Public Shared ReadOnly IsTextPatternAvailableProperty As AutomationProperty
Valeur de champ
Exemples
L’exemple suivant détermine si un modèle de contrôle spécifié est pris en charge par un AutomationElement .The following example ascertains whether a specified control pattern is supported by an AutomationElement.
// TODO Substitute the appropriate field for IsDockPatternAvailableProperty.
bool isPatternAvailable = (bool)
autoElement.GetCurrentPropertyValue(AutomationElement.IsDockPatternAvailableProperty);
' TODO Substitute the appropriate field for IsDockPatternAvailableProperty.
Dim isPatternAvailable As Boolean = _
CBool(autoElement.GetCurrentPropertyValue(AutomationElement.IsDockPatternAvailableProperty))
Remarques
Cet identificateur est utilisé par les applications clientes UI Automation.This identifier is used by UI Automation client applications. Les fournisseurs UI Automation doivent utiliser l’identificateur équivalent dans AutomationElementIdentifiers .UI Automation providers should use the equivalent identifier in AutomationElementIdentifiers.
Les valeurs de retour de la propriété sont de type Boolean .Return values of the property are of type Boolean. La valeur par défaut de la propriété est false
The default value for the property is false
.