Dela via


CoreTextSelectionRequest Class

Definition

Represents information about a SelectionRequested event.

public ref class CoreTextSelectionRequest sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class CoreTextSelectionRequest final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class CoreTextSelectionRequest
Public NotInheritable Class CoreTextSelectionRequest
Inheritance
Object Platform::Object IInspectable CoreTextSelectionRequest
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 CoreTextSelectionRequestedEventArgs.Request property inside a handler for the CoreTextEditContext.SelectionRequested event handler.

Properties

IsCanceled

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

Selection

Gets or sets the selection range that the text input server is requesting. The application should set the current range of selection before returning from the event handler.

Methods

GetDeferral()

Requests that the selection 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