Aracılığıyla paylaş


StylusPointCollection.Explicit(StylusPointCollection to Point[]) Operatör

Tanım

bir StylusPointCollection nokta dizisine dönüştürür.

public:
 static explicit operator cli::array <System::Windows::Point> ^(System::Windows::Input::StylusPointCollection ^ stylusPoints);
public static explicit operator System.Windows.Point[] (System.Windows.Input.StylusPointCollection stylusPoints);
static member op_Explicit : System.Windows.Input.StylusPointCollection -> System.Windows.Point[]
Public Shared Narrowing Operator CType (stylusPoints As StylusPointCollection) As Point()

Parametreler

stylusPoints
StylusPointCollection

Nokta dizisine dönüştürülecek ekran kalemi noktası koleksiyonu.

Döndürülenler

Point[]

içindeki her StylusPointStylusPointCollectionbirine karşılık gelen noktaları içeren bir nokta dizisi.

Örnekler

Aşağıdaki örnekte kementle çevrili vuruşların nasıl silindiği gösterilmektedir. Örnekte adlı presenterbir InkPresenter olduğu varsayılır.

// Erase the selected strokes.
public void EraseStrokes(Stroke lasso)
{
    Point[] strokePoints = (Point[])lasso.StylusPoints;
    presenter.Strokes.Erase(strokePoints);
}
' Erase the selected strokes.
Public Overloads Sub EraseStrokes(ByVal lasso As Stroke)

    If lasso Is Nothing Then
        Return
    End If

    Dim strokePoints() As Point = CType(lasso.StylusPoints, Point())

    presenter.Strokes.Erase(strokePoints)

End Sub

Şunlara uygulanır