ITextEditProvider::GetActiveComposition method (uiautomationcore.h)

Returns the active composition.

Syntax

HRESULT GetActiveComposition(
  [out, retval] ITextRangeProvider **pRetVal
);

Parameters

[out, retval] pRetVal

Type: ITextRangeProvider**

Pointer to the range of the current conversion (none if there is no conversion).

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

Follow the guidance given in TextEdit Control Pattern that describes how to implement this method and how to raise the related notification events.

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 uiautomationcore.h (include UIAutomation.h)

See also

Conceptual

ITextEditProvider

ITextProvider

Reference

TextEdit Control Pattern

UI Automation Providers Overview

UiaRaiseTextEditTextChangedEvent