Point. Explicit(StylusPoint to Point) Operator
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
A Point that contains the same (x,y) coordinates as
The following example demonstrates how to cast a StylusPoint to a Point object to draw a circle at the beginning of every stroke. 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 language="csharp" source="~/samples/snippets/csharp/VS_Snippets_Wpf/PacketSpy/CSharp/Window1.xaml.cs" id="Snippet13"::: :::code language="vb" source="~/samples/snippets/visualbasic/VS_Snippets_Wpf/PacketSpy/VisualBasic/Window1.xaml.vb" id="Snippet13":::