Share via


Stroke.GetEraseResult Yöntem

Tanım

öğesinin bir bölümü silindikten sonra geçerli Stroke segmentleri Stroke döndürür.

Aşırı Yüklemeler

GetEraseResult(IEnumerable<Point>)

Geçerlinin Stroke belirtilen sınırların dışında olan kesimlerini döndürür.

GetEraseResult(Rect)

Geçerlinin Stroke belirtilen dikdörtgenin dışında olan kesimlerini döndürür.

GetEraseResult(IEnumerable<Point>, StylusShape)

Belirtilen StylusShapekullanılarak belirlenen yol tarafından parçalandıktan sonra geçerlinin Stroke kesimlerini döndürür.

GetEraseResult(IEnumerable<Point>)

Geçerlinin Stroke belirtilen sınırların dışında olan kesimlerini döndürür.

public:
 System::Windows::Ink::StrokeCollection ^ GetEraseResult(System::Collections::Generic::IEnumerable<System::Windows::Point> ^ lassoPoints);
public System.Windows.Ink.StrokeCollection GetEraseResult (System.Collections.Generic.IEnumerable<System.Windows.Point> lassoPoints);
member this.GetEraseResult : seq<System.Windows.Point> -> System.Windows.Ink.StrokeCollection
Public Function GetEraseResult (lassoPoints As IEnumerable(Of Point)) As StrokeCollection

Parametreler

lassoPoints
IEnumerable<Point>

Silinecek alanı belirten tür Point dizisi.

Döndürülenler

StrokeCollection Belirtilen sınırların dışında olan geçerli Stroke segmentleri içeren bir.

Örnekler

Aşağıdaki örnek, belirtilen sınırların içindeki mürekkepleri kaldırır.

Point[] myPoints = new Point[] {
    new Point(100, 100),
    new Point(200, 100),
    new Point(200, 200),
    new Point(100, 200)};

StrokeCollection eraseResults = aStroke.GetEraseResult(myPoints);

// inkCanvas1 is the InkCanvas on which we update the strokes
inkCanvas1.Strokes.Remove(aStroke);
inkCanvas1.Strokes.Add(eraseResults);
Dim myPoints() As System.Windows.Point = _
              {New System.Windows.Point(100, 100), _
               New System.Windows.Point(200, 100), _
               New System.Windows.Point(200, 200), _
               New System.Windows.Point(100, 200)}

Dim eraseResults As StrokeCollection = aStroke.GetEraseResult(myPoints)

' inkCanvas1 is the InkCanvas on which we update the strokes
inkCanvas1.Strokes.Remove(aStroke)
inkCanvas1.Strokes.Add(eraseResults)

Açıklamalar

yöntemi, GetEraseResult öğesinin dışındaki lassoPointskesimlerini temsil eden vuruşlar Stroke içeren bir StrokeCollection döndürür. GetEraseResult özgün Strokeöğesini değiştirmez.

yöntemi, GetClipResult kement oluşturmak için içindeki lassoPoints ilk ve son noktaları bağlar.

Şunlara uygulanır

GetEraseResult(Rect)

Geçerlinin Stroke belirtilen dikdörtgenin dışında olan kesimlerini döndürür.

public:
 System::Windows::Ink::StrokeCollection ^ GetEraseResult(System::Windows::Rect bounds);
public System.Windows.Ink.StrokeCollection GetEraseResult (System.Windows.Rect bounds);
member this.GetEraseResult : System.Windows.Rect -> System.Windows.Ink.StrokeCollection
Public Function GetEraseResult (bounds As Rect) As StrokeCollection

Parametreler

bounds
Rect

Rect Silinecek alanı belirten bir.

Döndürülenler

StrokeCollection Belirtilen Rectsınırların dışında olan geçerli Stroke segmentleri içeren bir .

Örnekler

Aşağıdaki örnek, belirtilen sınırların içindeki mürekkepleri kaldırır.

Rect myRect = new Rect(100, 100, 100, 100);

StrokeCollection eraseResults = aStroke.GetEraseResult(myRect);

// inkCanvas1 is the InkCanvas on which we update the strokes
inkCanvas1.Strokes.Remove(aStroke);
inkCanvas1.Strokes.Add(eraseResults);
Dim myRect As New Rect(100, 100, 100, 100)

Dim eraseResults As StrokeCollection = aStroke.GetEraseResult(myRect)

' inkCanvas1 is the InkCanvas on which we update the strokes
inkCanvas1.Strokes.Remove(aStroke)
inkCanvas1.Strokes.Add(eraseResults)

Açıklamalar

yöntemi, GetEraseResult öğesinin dışındaki boundskesimlerini temsil eden vuruşlar Stroke içeren bir StrokeCollection döndürür. GetEraseResult özgün Strokeöğesini değiştirmez.

Şunlara uygulanır

GetEraseResult(IEnumerable<Point>, StylusShape)

Belirtilen StylusShapekullanılarak belirlenen yol tarafından parçalandıktan sonra geçerlinin Stroke kesimlerini döndürür.

public:
 System::Windows::Ink::StrokeCollection ^ GetEraseResult(System::Collections::Generic::IEnumerable<System::Windows::Point> ^ eraserPath, System::Windows::Ink::StylusShape ^ eraserShape);
public System.Windows.Ink.StrokeCollection GetEraseResult (System.Collections.Generic.IEnumerable<System.Windows.Point> eraserPath, System.Windows.Ink.StylusShape eraserShape);
member this.GetEraseResult : seq<System.Windows.Point> * System.Windows.Ink.StylusShape -> System.Windows.Ink.StrokeCollection
Public Function GetEraseResult (eraserPath As IEnumerable(Of Point), eraserShape As StylusShape) As StrokeCollection

Parametreler

eraserPath
IEnumerable<Point>

türünü kesen Strokeyolu belirten bir diziPoint.

eraserShape
StylusShape

StylusShape Silginin şeklini belirten bir.

Döndürülenler

StrokeCollection Belirtilen yol tarafından parçalandıktan sonra geçerli Stroke segmentlerin kopyalarını içeren bir.

Örnekler

Aşağıdaki örnekte, belirtilen bir yol ile kesişen milenkın nasıl silindiğini gösterilmektedir.

Point[] myPoints = new Point[] {
    new Point(100, 100),
    new	Point(200, 100),
    new	Point(200, 200),
    new	Point(100, 200)};

EllipseStylusShape myStylus = new EllipseStylusShape(5.0, 5.0, 0.0);

StrokeCollection eraseResults = aStroke.GetEraseResult(myPoints, myStylus);

// inkCanvas1 is the InkCanvas on which we update the strokes
inkCanvas1.Strokes.Remove(aStroke);
inkCanvas1.Strokes.Add(eraseResults);
Dim myPoints() As System.Windows.Point = _
                      {New System.Windows.Point(100, 100), _
                       New System.Windows.Point(200, 100), _
                       New System.Windows.Point(200, 200), _
                       New System.Windows.Point(100, 200)}

Dim myStylus As New EllipseStylusShape(5.0, 5.0, 0.0)

Dim eraseResults As StrokeCollection = aStroke.GetEraseResult(myPoints, myStylus)

' inkCanvas1 is the InkCanvas on which we update the strokes
inkCanvas1.Strokes.Remove(aStroke)
inkCanvas1.Strokes.Add(eraseResults)

Açıklamalar

yöntemi, GetEraseResult vuruşu birlikte eraserPath test etmek için kullanır eraserShape ve kesilen kesimleri temsil eden bir StrokeCollection döndürür. GetEraseResult özgün Strokeöğesini değiştirmez.

Şunlara uygulanır