Dela via


CoreTextSelectionUpdatingEventArgs.IsCanceled Property

Definition

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

public:
 property bool IsCanceled { bool get(); };
bool IsCanceled();
public bool IsCanceled { get; }
var boolean = coreTextSelectionUpdatingEventArgs.isCanceled;
Public ReadOnly Property IsCanceled As Boolean

Property Value

Boolean

bool

true if the selection update operation is canceled; otherwise, false.

Examples

// Notify Windows that the deferred operation is beginning 
if (!args.IsCanceled)
{
    // Perform deferred operation
    // …

    // Notify Windows that the deferred operation is complete
    deferral.Complete();
}

Remarks

If the app defers the operation, it is possible for it to be canceled before the app responds to it. For this reason, you should read this property, only once, immediately before responding to a deferred operation.

Note

The "getter" for the IsCanceled property notifies Windows that the app is beginning the deferred operation. You should consider reading this property as a required step before you perform the deferred operation. Use the pattern shown in the example when reading IsCanceled.

Applies to