StylusDevice.Capture 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
스타일러스의 입력을 특정 요소에 바인딩합니다.
오버로드
| Name | Description |
|---|---|
| Capture(IInputElement) |
스타일러스의 입력을 지정된 요소에 바인딩합니다. |
| Capture(IInputElement, CaptureMode) |
스타일러스를 지정된 요소에 바인딩합니다. |
Capture(IInputElement)
스타일러스의 입력을 지정된 요소에 바인딩합니다.
public:
bool Capture(System::Windows::IInputElement ^ element);
public bool Capture(System.Windows.IInputElement element);
member this.Capture : System.Windows.IInputElement -> bool
Public Function Capture (element As IInputElement) As Boolean
매개 변수
- element
- IInputElement
스타일러스가 바인딩되는 요소입니다.
반품
true입력 요소가 성공적으로 캡처되면 이고, 그렇지 않으면 . false 기본값은 false입니다.
예외
element은 null입니다.
element 가 둘 다 UIElement 아니거나 FrameworkContentElement.
예제
다음 예제에서는 메서드를 보여 줍니다 Capture(IInputElement) .
// Bind stylus to tablet's input element
myStylusDevice.Capture(myStylusDevice.Target);
' Bind stylus to tablet's input element
myStylusDevice.Capture(myStylusDevice.Target)
적용 대상
Capture(IInputElement, CaptureMode)
스타일러스를 지정된 요소에 바인딩합니다.
public:
bool Capture(System::Windows::IInputElement ^ element, System::Windows::Input::CaptureMode captureMode);
public bool Capture(System.Windows.IInputElement element, System.Windows.Input.CaptureMode captureMode);
member this.Capture : System.Windows.IInputElement * System.Windows.Input.CaptureMode -> bool
Public Function Capture (element As IInputElement, captureMode As CaptureMode) As Boolean
매개 변수
- element
- IInputElement
스타일러스가 바인딩되는 요소입니다.
- captureMode
- CaptureMode
값 중 CaptureMode 하나입니다.
반품
true입력 요소가 성공적으로 캡처되면 이고, 그렇지 않으면 . false 기본값은 false입니다.
예외
element 또는 captureMode .입니다 null.
element 가 둘 다 UIElement 아니거나 FrameworkContentElement.
예제
다음 예제에서는 메서드를 보여 줍니다 Capture(IInputElement, CaptureMode) .
// Bind stylus to tablet's input element
// through entire subtree
myStylusDevice.Capture(myStylusDevice.Target, CaptureMode.SubTree);
' Bind stylus to tablet's input element
' through entire subtree
myStylusDevice.Capture(myStylusDevice.Target, CaptureMode.SubTree)