StylusPoint.Explicit(StylusPoint to Point) 연산자

정의

지정된 StylusPointPoint로 캐스팅합니다.

public:
 static explicit operator System::Windows::Point(System::Windows::Input::StylusPoint stylusPoint);
public static explicit operator System.Windows.Point (System.Windows.Input.StylusPoint stylusPoint);
static member op_Explicit : System.Windows.Input.StylusPoint -> System.Windows.Point
Public Shared Narrowing Operator CType (stylusPoint As StylusPoint) As Point

매개 변수

stylusPoint
StylusPoint

StylusPoint로 캐스팅할 Point입니다.

반환

stylusPoint와 동일한 (x,y) 좌표가 들어 있는 Point입니다.

설명

다음 예에서는 캐스팅 하는 방법에 설명를 StylusPointPoint 모든 스트로크 시작 부분에 원을 그리려면 개체입니다. 이 예제에서는 있다고 가정를 InkCanvas 라는 개체 inkcanvas1 하 고는 StylusDown 예제의 이벤트 처리기에 연결 된 이벤트입니다.

       :::code language="csharp" source="~/snippets/csharp/System.Windows.Input/StylusDevice/GetStylusPoints/Window1.xaml.cs" id="Snippet13":::
       :::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/PacketSpy/VisualBasic/Window1.xaml.vb" id="Snippet13":::

적용 대상