MouseEventArgs.Buttons プロパティ

定義

マウス イベントが発生したときに押されるボタン: Left button=1、Right button=2、Middle (wheel) button=4、4 番目のボタン (通常は "Browser Back" button)=8、5 番目のボタン (通常は "Browser Forward" ボタン)=16。 2 つ以上のボタンが押された場合は、値の論理和を返します。 たとえば、左ボタンと右ボタンを押すと、3 (=1 | 2) が返されます。

public:
 property long Buttons { long get(); void set(long value); };
public long Buttons { get; set; }
member this.Buttons : int64 with get, set
Public Property Buttons As Long

プロパティ値

適用対象