Share via


StylusPoint.Explicit(StylusPoint to Point) Operatör

Tanım

Belirtilen StylusPoint öğesini bir Pointöğesine atar.

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

Parametreler

stylusPoint
StylusPoint

StylusPoint bir öğesine atanacakPoint.

Döndürülenler

ile Point aynı (x,y) koordinatları stylusPointiçeren bir.

Açıklamalar

Aşağıdaki örnek, her vuruşun başında bir daire çizmek için nesnesine Point nasıl StylusPoint atama yapılacağını gösterir. Bu örnekte adlı inkcanvas1 bir InkCanvas nesne olduğu ve StylusDown olayın örnekteki olay işleyicisine bağlı olduğu varsayılır.

       :::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":::

Şunlara uygulanır