TextBoxSelectionChangingEventArgs 类

定义

提供 TextBox.SelectionChanging 事件的事件数据。

public ref class TextBoxSelectionChangingEventArgs sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 458752)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class TextBoxSelectionChangingEventArgs final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 458752)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class TextBoxSelectionChangingEventArgs
Public NotInheritable Class TextBoxSelectionChangingEventArgs
继承
Object Platform::Object IInspectable TextBoxSelectionChangingEventArgs
属性

Windows 要求

设备系列
Windows 10, version 1809 (在 10.0.17763.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v7.0 中引入)

注解

此类的实例作为参数传递给 SelectionChanging 事件处理程序。

属性

Cancel

获取或设置一个值,该值指示是否应取消选择操作。

SelectionLength

获取文本选择的长度。

SelectionStart

获取文本选择的起始索引。

适用于