KeyboardInputBuffer 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
提供对文本缓冲区的访问,该缓冲区用于将用户输入聚合到手机上的软件输入面板键盘。
public ref class KeyboardInputBuffer sealed
/// [Windows.Foundation.Metadata.Activatable(65536, Windows.Phone.PhoneInternalContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Phone.PhoneInternalContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class KeyboardInputBuffer final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Phone.PhoneInternalContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Activatable(65536, "Windows.Phone.PhoneInternalContract")]
class KeyboardInputBuffer final
[Windows.Foundation.Metadata.Activatable(65536, typeof(Windows.Phone.PhoneInternalContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Phone.PhoneInternalContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class KeyboardInputBuffer
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Phone.PhoneInternalContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Activatable(65536, "Windows.Phone.PhoneInternalContract")]
public sealed class KeyboardInputBuffer
Public NotInheritable Class KeyboardInputBuffer
- 继承
- 属性
Windows 要求
| 设备系列 |
Windows Mobile Extension SDK (在 10.0.10240.0 中引入)
|
| API contract |
Windows.Phone.PhoneInternalContract (在 v1.0 中引入)
|
注解
Windows Phone 8
此 API 仅在本机应用中受支持。
构造函数
| KeyboardInputBuffer() |
初始化 KeyboardInputBuffer 类的新实例。 |
属性
| InputScope |
获取或设置输入范围,该范围确定手机上软件输入面板键盘上显示的键集 |
| SelectionLength |
获取输入缓冲区中当前所选内容中的字符数。 |
| SelectionStart |
获取输入缓冲区中所选文本的起始位置。 |
| Text |
获取或设置输入缓冲区的内容。 |
方法
| Select(UInt32, UInt32) |
选择输入缓冲区中的文本范围。 |
| SelectFromTap(UInt32) |
选择一个文本范围,就像用户点击输入缓冲区中的指定字符一样。 |
事件
| SelectionChanged |
当输入缓冲区中的文本选择发生更改时发生。 |
| TextChanged |
当输入缓冲区中的内容发生更改时发生。 |