MouseEventArgs.Button 属性
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
触发鼠标事件时按下的按钮编号:左按钮=0,中间按钮=1 ((如果存在) ,右侧按钮=2)。 对于配置为左手使用的鼠标,其中按钮操作被反转,从右到左读取值。
public:
property long Button { long get(); void set(long value); };
C#
public long Button { get; set; }
member this.Button : int64 with get, set
Public Property Button As Long
产品 | 版本 |
---|---|
ASP.NET Core | 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0 |