TextBoxSelectionChangingEventArgs 类

定义

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

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

注解

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

属性

Cancel

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

SelectionLength

获取文本选择的长度。

SelectionStart

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

适用于