Mouse.WheelExists 속성
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
마우스에 Boolean 스크롤 휠이 있는지를 나타내는 값을 가져옵니다.
public:
property bool WheelExists { bool get(); };
public bool WheelExists { get; }
member this.WheelExists : bool
Public ReadOnly Property WheelExists As Boolean
속성 값
마우스에 스크롤 휠이 있는 경우 값 True 이 있는 부울입니다. 그렇지 않으면 False.
예외
컴퓨터에 마우스가 설치되어 있지 않습니다.
예제
다음은 이 속성을 사용하여 My.Computer.Mouse.WheelExists 마우스에 스크롤 휠이 있는지 여부와 마우스 휠을 회전할 때 스크롤할 양을 결정하는 예제입니다.
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
설명
속성은 My.Computer.Mouse.WheelExists 속성과 유사한 MouseWheelPresent 기능을 제공합니다.
속성에 액세스 WheelScrollLines 하기 전에 속성 값을 My.Computer.Mouse.WheelExists 확인해야 합니다. 이 속성은 마우스에 스크롤 휠이 없는 경우 예외를 throw합니다.
이 속성은 My.Computer.Mouse.WheelExists 코드를 실행하는 컴퓨터에 대한 정보를 제공합니다.
프로젝트 유형별 가용성
| 프로젝트 형식 | 사용 가능 |
|---|---|
| Windows 애플리케이션 | 예 |
| 클래스 라이브러리 | 예 |
| 콘솔 애플리케이션 | 예 |
| Windows 컨트롤 라이브러리 | 예 |
| 웹 제어 라이브러리 | No |
| Windows 서비스 | 예 |
| 웹 사이트 | No |