CoreTextSelectionUpdatingEventArgs Class

Definition

Provides data for the SelectionUpdating event.

public ref class CoreTextSelectionUpdatingEventArgs sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class CoreTextSelectionUpdatingEventArgs final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class CoreTextSelectionUpdatingEventArgs
Public NotInheritable Class CoreTextSelectionUpdatingEventArgs
Inheritance
Object Platform::Object IInspectable CoreTextSelectionUpdatingEventArgs
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 is passed as an argument to a handler for the SelectionUpdating event.

Properties

IsCanceled

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

Result

Gets or sets a value that indicates the result of handling the SelectionUpdating event. The default value is Succeeded but if you can't action the operation as the text input server expects then before returning from the event handler set the property to the appropriate value to indicate what has happened.

Selection

Gets a value that indicates the range of text that the text input server indicates should be selected. The server populates this property before raising the event.

Methods

GetDeferral()

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