UiaRaiseActiveTextPositionChangedEvent function (uiautomationcoreapi.h)
Called by a provider to notify the Microsoft UI Automation core that the position within a text control has programmatically changed.
Syntax
HRESULT UiaRaiseActiveTextPositionChangedEvent(
[in] IRawElementProviderSimple *provider,
[in, optional] ITextRangeProvider *textRange
);
Parameters
[in] provider
Type: IRawElementProviderSimple*
The provider node where the position change within the text occurred.
[in, optional] textRange
Type: ITextRangeProvider*
The text range change that occurred, if applicable.
Return value
Type: HRESULT
If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 8.1 [desktop apps | UWP apps] |
Minimum supported server | Windows Server 2012 R2 [desktop apps | UWP apps] |
Target Platform | Windows |
Header | uiautomationcoreapi.h |
Library | Uiautomationcore.lib |
DLL | Uiautomationcore.dll |
See also
IUIAutomation6::AddActiveTextPositionChangedEventHandler, IUIAutomation6::RemoveActiveTextPositionChangedEventHandler, IUIAutomationEventHandlerGroup::AddActiveTextPositionChangedEventHandler