Mouse.WheelExists Özellik

Tanım

Boolean Farenin kaydırma tekerleği olup olmadığını gösteren bir alır.

public:
 property bool WheelExists { bool get(); };
public bool WheelExists { get; }
member this.WheelExists : bool
Public ReadOnly Property WheelExists As Boolean

Özellik Değeri

Farenin kaydırma tekerleği varsa değeri True olan boole değeri; aksi takdirde False.

Özel durumlar

Bilgisayarda yüklü fare yok.

Örnekler

Bu örnekte, farenin My.Computer.Mouse.WheelExists kaydırma tekerleği olup olmadığını ve fare tekerleği döndürüldüğünde ne kadar kaydırma yapılacağını belirlemek için özelliği kullanılır.

If My.Computer.Mouse.WheelExists Then
    Dim lines As Integer = My.Computer.Mouse.WheelScrollLines
    If lines > 0 Then
        MsgBox("Application scrolls " &
            lines & " line(s) for each wheel turn.")
    Else
        MsgBox("Application scrolls " &
            (-lines) & " page(s) for each wheel turn.")
    End If
Else
    MsgBox("Mouse has no scroll wheel.")
End If

Açıklamalar

özelliği özelliğine My.Computer.Mouse.WheelExistsMouseWheelPresent benzer işlevler sağlar.

Özelliğe erişmeye My.Computer.Mouse.WheelExists çalışmadan önce özelliğin WheelScrollLines değerini denetlemeniz gerekir; bu da farenin kaydırma tekerleği yoksa bir özel durum oluşturur.

özelliği, My.Computer.Mouse.WheelExists kodu çalıştıran bilgisayar hakkında bilgi sağlar.

Proje Türüne Göre Kullanılabilirlik

Proje türü Mevcut
Windows Uygulaması Yes
Sınıf Kitaplığı Yes
Konsol Uygulaması Yes
Windows Denetim Kitaplığı Yes
Web Denetim Kitaplığı No
Windows Hizmeti Yes
Web Sitesi No

Şunlara uygulanır

Ayrıca bkz.