Keyboard.SetShifted(Boolean) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
更新基本实现中记录的 Shift 键的存储 Shift 状态和状态。
[Android.Runtime.Register("setShifted", "(Z)Z", "GetSetShifted_ZHandler")]
public virtual bool SetShifted(bool shiftState);
[<Android.Runtime.Register("setShifted", "(Z)Z", "GetSetShifted_ZHandler")>]
abstract member SetShifted : bool -> bool
override this.SetShifted : bool -> bool
参数
- shiftState
- Boolean
要设置的 Shift 状态:true for on;false for off。
返回
在基本实现中,如果存储的 Shift 状态已更改,则为 true;否则为 false。
- 特性
注解
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。