StylusPoint.Explicit(StylusPoint to Point) 연산자

정의

지정된 StylusPointPoint로 캐스팅합니다.Casts the specified StylusPoint to a Point.

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입니다.The StylusPoint to cast to a Point.

반환

Point

stylusPoint와 동일한 (x,y) 좌표가 들어 있는 Point입니다.A Point that contains the same (x,y) coordinates as stylusPoint.

설명

다음 예에서는 캐스팅 하는 방법에 설명를 StylusPointPoint 모든 스트로크 시작 부분에 원을 그리려면 개체입니다.The following example demonstrates how to cast a StylusPoint to a Point object to draw a circle at the beginning of every stroke. 이 예제에서는 있다고 가정를 InkCanvas 라는 개체 inkcanvas1 하 고는 StylusDown 예제의 이벤트 처리기에 연결 된 이벤트입니다.This example assumes that there is an InkCanvas object called inkcanvas1 and that the StylusDown event is connected to the event handler in the example.

       [!code-csharp[PacketSpy#13](~/samples/snippets/csharp/VS_Snippets_Wpf/PacketSpy/CSharp/Window1.xaml.cs#13)]
       [!code-vb[PacketSpy#13](~/samples/snippets/visualbasic/VS_Snippets_Wpf/PacketSpy/VisualBasic/Window1.xaml.vb#13)]

적용 대상