CoreTextTextRequest Class

Definition

Represents information about a TextRequested event.

public ref class CoreTextTextRequest sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class CoreTextTextRequest final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class CoreTextTextRequest
Public NotInheritable Class CoreTextTextRequest
Inheritance
Object Platform::Object IInspectable CoreTextTextRequest
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Remarks

An object of this type can be obtained from the CoreTextTextRequestedEventArgs.Request property inside a handler for the CoreTextEditContext.TextRequested event handler.

Properties

IsCanceled

Gets a value that indicates whether the text request operation is canceled.

Range

Gets a value that indicates the range of text being requested by the text input server. The server populates this property before raising the event.

Text

Gets or sets the text that the text input server is requesting. The application should set the text being requested before returning from the event handler.

Methods

GetDeferral()

Requests that the text request operation be delayed. Call this method if your text input control is hosted on a worker thread rather than on the UI thread.

Applies to