Aracılığıyla paylaş


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 bir 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, My.Computer.Mouse.WheelExists özelliğine MouseWheelPresent benzer işlevler sağlar.

Özelliğe erişmeye WheelScrollLines çalışmadan önce özelliğin My.Computer.Mouse.WheelExists değerini denetlemeniz gerekir. Bu, 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ü Kullanılabilir
Windows Uygulaması Evet
Sınıf Kitaplığı Evet
Konsol Uygulaması Evet
Windows Denetim Kitaplığı Evet
Web Denetim Kitaplığı No
Windows Hizmeti Evet
Web Sitesi No

Şunlara uygulanır

Ayrıca bkz.