StylusPointCollection.Explicit(StylusPointCollection to Point[]) 연산자

정의

StylusPointCollection을 점 배열로 변환합니다.

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()

매개 변수

stylusPoints
StylusPointCollection

점 배열로 변환할 스타일러스 지점 컬렉션입니다.

반환

Point[]

StylusPoint의 각 StylusPointCollection에 해당하는 지점이 들어 있는 점 배열입니다.

예제

다음 예제에서는 올가미도 둘러싸인 스트로크를 지우는 방법을 보여 줍니다. 이 예제에서는 있다는 것을 가정를 InkPresenter 호출 presenter합니다.

// 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

적용 대상