Freigeben über


AutomationTextRange Klasse

Definition

Bietet Zugriff auf eine Spanne von Fortlaufendtext in einem Container, der die IUIAutomationTextPattern-Schnittstelle unterstützt.

public ref class AutomationTextRange sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.UI.UIAutomation.UIAutomationContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class AutomationTextRange final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.UI.UIAutomation.UIAutomationContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class AutomationTextRange
Public NotInheritable Class AutomationTextRange
Vererbung
Object Platform::Object IInspectable AutomationTextRange
Attribute

Windows-Anforderungen

Gerätefamilie
Windows 10, version 2104 (eingeführt in 10.0.20348.0)
API contract
Windows.UI.UIAutomation.UIAutomationContract (eingeführt in v1.0)

Hinweise

Clientanwendungen können dieses Objekt verwenden, um eingebettete Objekte aus der Textspanne auszuwählen, zu vergleichen und abzurufen. Es werden zwei Endpunkte verfügbar gemacht, die den Anfang und das Ende der Textspanne trennen. Getrennte Textspannen werden durch eine IUIAutomationTextRangeArray-Schnittstelle dargestellt.

Gilt für: