HandledMouseEventArgs.Handled 속성

정의

컨트롤의 부모 컨테이너로 이 이벤트를 전달해야 하는지 여부를 가져오거나 설정합니다.

public:
 property bool Handled { bool get(); void set(bool value); };
public bool Handled { get; set; }
member this.Handled : bool with get, set
Public Property Handled As Boolean

속성 값

Boolean

마우스 이벤트가 부모 컨트롤로 이동해야 하면true이고, 그렇지 않으면 false입니다.

예제

다음 코드 예제에는 마우스 휠 이벤트를 사용자 지정 컨트롤에서 처리 된 것으로 표시 하는 방법을 보여 줍니다.

Public Class MouseWheelControl
    Sub New()
        ' Add initialization code for the control here. 
    End Sub

    Protected Sub MouseWheelControl_MouseWheel(ByVal sender As Object, ByVal e As MouseEventArgs) Handles Me.MouseWheel
        Dim Hme As HandledMouseEventArgs = e
        Hme.Handled = True
        ' Perform custom mouse wheel action here. 
    End Sub
End Class

적용 대상